index.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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>Store</title>
  8. <style>
  9. body {
  10. overflow: hidden;
  11. box-sizing: border-box;
  12. }
  13. #logo {
  14. display: flex;
  15. width: 100px;
  16. margin: auto;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <header style="background-color: lightgray;">
  22. <a>
  23. <img src="images/logo.png" alt="logo" id="logo">
  24. </a>
  25. </header>
  26. <div class="wrapper">
  27. <hr>
  28. <select id="product">
  29. <option value="beer" id="pivo1">Beer</option>
  30. <option value="chips" id="chips1">Chips</option>
  31. <option value="smoke" id="sigi1">Smoke</option>
  32. </select>
  33. <input type="number" id="number" placeholder="Enter the amount...">
  34. <button id="button">Buy</button>
  35. </div>
  36. <div class="availability">
  37. <h1>Goods:</h1>
  38. <div style="display: flex; justify-content:space-around;">
  39. <div class="pivo2">
  40. <img src="images/beer.png" alt="" style="max-height: 200px; max-width: 200px">
  41. <h2 style="text-align: center">Beer: <span id="pivo"></span></h2>
  42. <h2 style="text-align: center">Price: <span id="pivoK"></span></h2>
  43. </div>
  44. <div class="chips2">
  45. <img src="images/chips.png" alt="" style="max-height: 200px; max-width: 200px">
  46. <h2 style="text-align: center">Chips: <span id="chips"></span></h2>
  47. <h2 style="text-align: center">Price: <span id="chipsK"></span></h2>
  48. </div>
  49. <div class="sigi2">
  50. <img src="images/smoke.png" alt="" style="max-height: 200px; max-width: 200px">
  51. <h2 style="text-align: center">Smoke: <span id="sigi"></span></h2>
  52. <h2 style="text-align: center">Price: <span id="sigiK"></span></h2>
  53. </div>
  54. </div>
  55. </div>
  56. <hr>
  57. <div style="display: flex; justify-content:space-between;">
  58. <div class="cashbox">
  59. <h2>Paydesk: <span id="kassa"></span></h2>
  60. <img src="images/cash-machine.png" alt="" style="height: 100px">
  61. </div>
  62. <div class="wallet">
  63. <h2>Cash: <span id="money"></span></h2>
  64. <img src="images/wallet.png" alt="" style="height: 100px; margin-left: auto; display: block">
  65. </div>
  66. <script src="index.js"></script>
  67. </div>
  68. </body>
  69. </html>