index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <style>
  2. body {
  3. background-color: rgb(237,237,237);
  4. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  5. }
  6. h2 {
  7. margin: 0;
  8. }
  9. p {
  10. margin: 0;
  11. }
  12. header {
  13. background-color: rgb(237,237,237);
  14. display: flex;
  15. width: 100%;
  16. height: auto;
  17. position: fixed;
  18. top: 0px;
  19. left: 0px;
  20. padding-bottom: 40px;
  21. }
  22. footer {
  23. background-color: rgb(220,220,220);
  24. display: flex;
  25. flex-direction: column;
  26. }
  27. #header-img {
  28. width: 100%;
  29. height: 100%;
  30. max-width: 300px;
  31. margin: 0 auto 0 0;
  32. }
  33. #nav-bar {
  34. position: fixed;
  35. top: 0px;
  36. right: 0px;
  37. margin: 0 0 0 auto;
  38. display: flex;
  39. flex-direction: row;
  40. }
  41. ul {
  42. display: flex;
  43. flex-direction: row;
  44. list-style: none;
  45. }
  46. .nav-link {
  47. text-decoration: none;
  48. color: black;
  49. margin: auto 20px auto 20px;
  50. }
  51. #Login {
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. margin-top: 100px;
  56. }
  57. #form {
  58. display: flex;
  59. flex-direction: column;
  60. margin: auto;
  61. align-items: center;
  62. }
  63. .btn {
  64. background-color: rgb(255, 208, 0);
  65. color: black;
  66. font-weight: bold;
  67. border:none;
  68. font-size: 18px;
  69. padding: 8px 20px 8px 20px;
  70. }
  71. #email {
  72. border: none;
  73. width: 300px;
  74. height: 28px;
  75. padding: 6px;
  76. border-radius: 2px;
  77. }
  78. .form-margin {
  79. margin-top: 20px;
  80. margin-bottom: 20px;
  81. }
  82. #features {
  83. margin: auto;
  84. }
  85. #HowItWorks {
  86. display: flex;
  87. margin: 20px auto 40px auto;
  88. }
  89. #video {
  90. background-color: aquamarine;
  91. width: 800px;
  92. height: 600px;
  93. margin-left: auto;
  94. margin-right: auto;
  95. }
  96. .features-title {
  97. font-size: 20px;
  98. font-weight: bolder;
  99. }
  100. .features-item {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. margin: auto;
  105. }
  106. .icon {
  107. width: 30px;
  108. height: auto;
  109. margin: 60px;
  110. }
  111. #Pricing {
  112. background-color: blue;
  113. width: 940px;
  114. display: grid;
  115. grid-template-columns: 1fr 1fr 1fr;
  116. column-gap: 20px;
  117. margin: 40px auto 40px auto;
  118. }
  119. .priceItem {
  120. height: 300px;
  121. background-color: aquamarine;
  122. border-radius: 4px;
  123. border: black;
  124. }
  125. @media (max-width: 940px) {
  126. #Pricing {
  127. background-color: blue;
  128. width: 100%;
  129. display: grid;
  130. grid-template-columns: 1fr 1fr 1fr;
  131. column-gap: 20px;
  132. margin: 40px auto 40px auto;
  133. }
  134. }
  135. @media (max-width: 800px) {
  136. header {
  137. display: flex;
  138. flex-direction: column;
  139. align-items: center;
  140. }
  141. ul {
  142. display: flex;
  143. flex-direction: column;
  144. list-style: none;
  145. align-items: center;
  146. }
  147. #header-img {
  148. width: 100%;
  149. height: 100%;
  150. max-width: 300px;
  151. margin: auto;
  152. }
  153. #nav-bar {
  154. margin: auto;
  155. }
  156. .href-text {
  157. text-decoration: none;
  158. color: black;
  159. margin: auto 40px auto auto;
  160. }
  161. }
  162. </style>
  163. <header id="header">
  164. <img id="header-img" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png">
  165. <nav id="nav-bar" class="nav-link">
  166. <ul>
  167. <li><a href="#features" class="nav-link">Features</a></li>
  168. <li><a href="#HowItWorks" class="nav-link">How It Works</a></li>
  169. <li><a href="#Pricing" class="nav-link">Pricing</a></li>
  170. </ul>
  171. </nav>
  172. </header>
  173. <main>
  174. <section id="login">
  175. <h2>Handcrafted, home-made masterpieces</h2>
  176. <form id="form" action="https://www.freecodecamp.com/email-submit">
  177. <input id="email" type="email" name="email" placeholder="Enter your email address" class="form-margin" required>
  178. <input id="submit" type="submit" value="GET STARTED" class="btn">
  179. </form>
  180. </section>
  181. <section id="features">
  182. <div class="features-item">
  183. <div class="features-icon">
  184. <img src="./img/icon.png" class="icon">
  185. </div>
  186. <div class="features-desc">
  187. <h2>Premium Materials</h2>
  188. <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  189. </div>
  190. </div>
  191. <div class="features-item">
  192. <div class="features-icon">
  193. <img src="./img/icon.png" class="icon">
  194. </div>
  195. <div class="features-desc">
  196. <h2>Premium Materials</h2>
  197. <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  198. </div>
  199. </div>
  200. <div class="features-item">
  201. <div class="features-icon">
  202. <img src="./img/icon.png" class="icon">
  203. </div>
  204. <div class="features-desc">
  205. <h2>Premium Materials</h2>
  206. <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  207. </div>
  208. </div>
  209. </section>
  210. <section id="HowItWorks">
  211. <iframe id="video" src="https://www.bilibili.com/video/BV1Y54y1r7Cg?from=search&seid=3208808148645764628" frameborder="0"></iframe>
  212. </section>
  213. <section id="Pricing">
  214. <div class="priceItem">
  215. </div>
  216. <div class="priceItem">
  217. </div>
  218. <div class="priceItem">
  219. </div>
  220. </section>
  221. </main>
  222. <footer>
  223. <p>Copyright 2016, Original Trombones</p>
  224. <p>Copyright 2016, Original Trombones</p>
  225. </footer>