summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 6d05087a9c9244bab7cc3aef15878d00302e7573 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap"
      rel="stylesheet"
    />
    <script src="https://cdn.tailwindcss.com"></script>

    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"
    />

    <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>

    <title>Document</title>
  </head>
  <body class="w-screen flex flex-col bg-stone-100 source-code-pro-500">
    <div class="flex justify-between bg-teal-100 h-8 m-2 rounded-xl">
      <div class="w-1/3 flex content-center">
        <a href="https://yetsam.ru" class="mx-auto hover:text-fuchsia-400"
          >yetsam.ru</a
        >
      </div>
      <ul class="topmenu px-8">
        <li>
          <a href="#" class="underline hover:decoration-fuchsia-400">Сервисы</a> 
          <ul class="submenu bg-teal-50 border-2 border-fuchsia-200 border-dashed rounded-lg">
            <li><a href="#">WireGuard Админка</a></li>
            <li><a href="#">cGit</a></li>
          </ul>
        </li>
      </ul>
    </div>
    <div class="flex justify-around">
      <div class="mx-auto text-2xl border-4 border-fuchsia-200 border-dashed p-2">
        <p>Привет, меня зовут Стас</p>
        <p>Я вычислил тебя по ip: {{client_geo['query']}}</p>

        {% if 'city' in client_geo %}
        <p>{{client_geo['country']}}</p>
        <p>{{client_geo['city']}}</p>
        {% endif %}
      </div>

      <div class="swiper">
        <div class="swiper-wrapper">
          <div class="swiper-slide">Slide 1</div>
          <div class="swiper-slide">Slide 2</div>
          <div class="swiper-slide">Slide 3</div>
        </div>

        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
      </div>
    </div>

    <script>
      const swiper = new Swiper(".swiper", {
        direction: "horizontal",
        loop: true,

        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev",
        },
      });
    </script>
    <style>
      .swiper {
        width: 600px;
        height: 300px;
      }
      .source-code-pro-500 {
        font-family: "Source Code Pro", monospace;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
      }

      .topmenu > li {
        display: inline-block;
        position: relative;
      }
      .topmenu > li:last-child {
        margin-right: 0;
      }
      .submenu {
        position: absolute;
        z-index: 10;
        display: none;
      }
      ul li:hover .submenu {
        display: block;
      }
    </style>
  </body>
</html>