summaryrefslogtreecommitdiff
path: root/client/index.html
blob: 8c433ab0859653d923956923c7a0edf0c59a885a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>File Share</title>
    <link rel="stylesheet" href="assets/styles.css" />
  </head>

  <body>
    <div id="root">
      <div class="header">
        <h2 class="header__title">File Share</h2>
      </div>
      <form id="upload__form" style="display: none">
        <div class="upload__container">
          <div class="upload__input__overlay">
            <p class="upload__input__overlay__text">
              Choose a file or drag it here
            </p>
          </div>
          <input type="file" class="upload__input" name="file" />
          <div
            class="upload__progress"
            id="upload__progress"
            style="display: none"
          >
            <div class="upload__progress__fill" id="progress__fill"></div>
          </div>
          <button type="submit" class="upload__button" id="upload__btn">
            Upload
          </button>
        </div>
      </form>
      <div class="file__details" id="file__details" style="display: none">
        <p class="file__details__text" id="file__name"></p>
        <p class="file__details__text" id="file__size"></p>
        <div class="file__details__button__container">
          <button class="download__button" id="download__btn">Download</button>
          <button class="download__button" id="copy__btn">Copy Link</button>
        </div>
      </div>
      <div class="upload__result" id="upload__result">Error Placeholder</div>
    </div>

    <script src="assets/index.js"></script>
  </body>
</html>