full-code-gql.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Shop</title>
  8. <style>
  9. body {
  10. font-family: system-ui;
  11. padding: 0;
  12. }
  13. header {
  14. height: 50px;
  15. display: flex;
  16. align-items: center;
  17. justify-content: space-around;
  18. }
  19. header a {
  20. margin: 5px 10px;
  21. border: 1px solid grey;
  22. padding: 5px 10px;
  23. }
  24. a {
  25. text-decoration: none;
  26. color: black;
  27. padding: 5px 10px;
  28. transition-property: transform, border-radius;
  29. transition-duration: .5s;
  30. }
  31. .cat {
  32. color: grey;
  33. }
  34. img {
  35. max-width: 150px;
  36. }
  37. #userBox {
  38. display: flex;
  39. align-items: baseline;
  40. flex-direction: row-reverse;
  41. }
  42. #authBox {
  43. display: flex;
  44. min-width: 150px;
  45. justify-content: space-between;
  46. }
  47. aside {
  48. display: flex;
  49. flex-direction: column;
  50. margin-right: 150px;
  51. }
  52. aside > a {
  53. margin-bottom: 15px;
  54. }
  55. #mainContainer {
  56. display: flex;
  57. }
  58. button, .loginBtn {
  59. margin: 5px 10px;
  60. border: 1px solid #FB8F1D;
  61. padding: 5px 10px;
  62. background-color: sandybrown;
  63. color: white;
  64. font-size: 16px;
  65. font-family: system-ui;
  66. }
  67. .showMore, #userBox > a {
  68. margin: 5px 10px;
  69. border: 1px solid #FB8F1D;
  70. padding: 5px 10px;
  71. }
  72. a:hover {
  73. transform: translateY(5px);
  74. box-shadow: 0 0 11px sandybrown;
  75. border-radius: 8px;
  76. animation-delay: .5s;
  77. }
  78. .card {
  79. padding: 15px 20px;
  80. margin: 35px;
  81. border: 1px solid lightgrey;
  82. border-radius: 20px;
  83. display: flex;
  84. transition-property: transform;
  85. transition-duration: .5s;
  86. width: 400px;
  87. justify-content: space-between;
  88. }
  89. .card:hover {
  90. transform: translateX(10px);
  91. }
  92. button:hover {
  93. color: #FB8F1D;
  94. background-color: white;
  95. box-shadow: 0 0 11px sandybrown;
  96. }
  97. </style>
  98. </head>
  99. <body>
  100. <header>
  101. <a href="">Main</a>
  102. <a id="cartIcon" href="#/cart">
  103. Cart
  104. <span id="cartCounter"></span>
  105. </a>
  106. <div id="userBox"></div>
  107. <div id="authBox"></div>
  108. </div>
  109. </header>
  110. <div id='mainContainer'>
  111. <aside id='aside'>
  112. </aside>
  113. <main id='main'>
  114. <h3>Welcome to our shop! Let's find something for you :)</h3>
  115. </main>
  116. </div>
  117. </div>
  118. <script src='index.js'></script>
  119. </body>
  120. </html>