index.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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-div {
  23. background-color: rgb(220,220,220);
  24. display: flex;
  25. flex-direction: column;
  26. width: 1000px;
  27. height: auto;
  28. margin: auto;
  29. }
  30. .footer-nav-bar {
  31. text-decoration: none;
  32. margin: 0px 0px 0px auto;
  33. }
  34. .footer-copyright {
  35. color: rgb(120,120,120);
  36. margin: 0 10px 20px auto;
  37. }
  38. #header-img {
  39. width: 100%;
  40. height: 100%;
  41. max-width: 300px;
  42. margin: 0 auto 0 0;
  43. }
  44. #nav-bar {
  45. position: fixed;
  46. top: 0px;
  47. right: 0px;
  48. margin: 0 0 0 auto;
  49. display: flex;
  50. flex-direction: row;
  51. }
  52. ul {
  53. display: flex;
  54. flex-direction: row;
  55. list-style: none;
  56. }
  57. .nav-link {
  58. text-decoration: none;
  59. color: black;
  60. margin: auto 20px auto 20px;
  61. }
  62. .footer-nav-link {
  63. text-decoration: none;
  64. color: black;
  65. margin: auto 15px auto 10px;
  66. }
  67. #Login {
  68. display: flex;
  69. flex-direction: column;
  70. align-items: center;
  71. margin-top: 100px;
  72. }
  73. #form {
  74. display: flex;
  75. flex-direction: column;
  76. margin: auto;
  77. align-items: center;
  78. }
  79. .btn {
  80. background-color: rgb(255, 208, 0);
  81. color: black;
  82. font-weight: bold;
  83. border:none;
  84. font-size: 18px;
  85. padding: 8px 20px 8px 20px;
  86. }
  87. #email {
  88. border: none;
  89. width: 300px;
  90. height: 28px;
  91. padding: 6px;
  92. border-radius: 2px;
  93. }
  94. .form-margin {
  95. margin-top: 20px;
  96. margin-bottom: 20px;
  97. }
  98. #features {
  99. margin: auto;
  100. }
  101. #HowItWorks {
  102. display: flex;
  103. margin: 20px auto 40px auto;
  104. }
  105. #video {
  106. background-color: aquamarine;
  107. width: 800px;
  108. height: 600px;
  109. margin-left: auto;
  110. margin-right: auto;
  111. }
  112. .features-title {
  113. font-size: 20px;
  114. font-weight: bolder;
  115. }
  116. .features-item {
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. margin: auto;
  121. }
  122. .icon {
  123. width: 30px;
  124. height: auto;
  125. margin: 60px;
  126. }
  127. #Pricing {
  128. width: 940px;
  129. display: grid;
  130. grid-template-columns: 1fr 1fr 1fr;
  131. column-gap: 20px;
  132. margin: 40px auto 40px auto;
  133. }
  134. .price-item {
  135. height: 300px;
  136. background-color: rgb(237,237,237);
  137. border-radius: 4px;
  138. border:2px solid black;
  139. }
  140. .item-title {
  141. text-align: center;
  142. padding-top: 15px;
  143. }
  144. .price-item-bg {
  145. height: 60px;
  146. background-color: rgb(220,220,220);
  147. border-radius: 4px 4px 0 0;
  148. margin: 2px 2px auto 2px;
  149. }
  150. .item-container {
  151. display: flex;
  152. flex-direction: column;
  153. justify-content: center;
  154. align-items: center;
  155. margin-top: 5px;
  156. }
  157. .item-text-margin {
  158. margin: 5px auto 5px auto;
  159. }
  160. .item-btn {
  161. background-color: rgb(255, 208, 0);
  162. color: black;
  163. border:none;
  164. font-size: 18px;
  165. padding: 8px 20px 8px 20px;
  166. margin-top: 10px;
  167. }
  168. @media (max-width: 1000px) {
  169. .footer-div {
  170. background-color: rgb(220,220,220);
  171. display: flex;
  172. flex-direction: column;
  173. width: 96%;
  174. height: auto;
  175. margin: auto;
  176. }
  177. }
  178. @media (max-width: 940px) {
  179. #Pricing {
  180. width: 100%;
  181. display: grid;
  182. grid-template-columns: 1fr 1fr 1fr;
  183. column-gap: 20px;
  184. margin: 40px auto 40px auto;
  185. }
  186. }
  187. @media (max-width: 800px) {
  188. header {
  189. display: flex;
  190. flex-direction: column;
  191. align-items: center;
  192. }
  193. ul {
  194. display: flex;
  195. flex-direction: column;
  196. list-style: none;
  197. align-items: center;
  198. }
  199. #header-img {
  200. width: 100%;
  201. height: 100%;
  202. max-width: 300px;
  203. margin: auto;
  204. }
  205. #nav-bar {
  206. margin: auto;
  207. }
  208. .href-text {
  209. text-decoration: none;
  210. color: black;
  211. margin: auto 40px auto auto;
  212. }
  213. }
  214. </style>
  215. <header id="header">
  216. <img id="header-img" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png">
  217. <nav id="nav-bar" class="nav-link">
  218. <ul>
  219. <li><a href="#features" class="nav-link">Features</a></li>
  220. <li><a href="#HowItWorks" class="nav-link">How It Works</a></li>
  221. <li><a href="#Pricing" class="nav-link">Pricing</a></li>
  222. </ul>
  223. </nav>
  224. </header>
  225. <main>
  226. <section id="login">
  227. <h2>Handcrafted, home-made masterpieces</h2>
  228. <form id="form" action="https://www.freecodecamp.com/email-submit">
  229. <input id="email" type="email" name="email" placeholder="Enter your email address" class="form-margin" required>
  230. <input id="submit" type="submit" value="GET STARTED" class="btn">
  231. </form>
  232. </section>
  233. <section id="features">
  234. <div class="features-item">
  235. <div class="features-icon">
  236. <img src="./img/icon.png" class="icon">
  237. </div>
  238. <div class="features-desc">
  239. <h2>Premium Materials</h2>
  240. <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  241. </div>
  242. </div>
  243. <div class="features-item">
  244. <div class="features-icon">
  245. <img src="./img/icon.png" class="icon">
  246. </div>
  247. <div class="features-desc">
  248. <h2>Premium Materials</h2>
  249. <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  250. </div>
  251. </div>
  252. <div class="features-item">
  253. <div class="features-icon">
  254. <img src="./img/icon.png" class="icon">
  255. </div>
  256. <div class="features-desc">
  257. <h2>Premium Materials</h2>
  258. <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
  259. </div>
  260. </div>
  261. </section>
  262. <section id="HowItWorks">
  263. <iframe id="video" src="https://www.bilibili.com/video/BV1Y54y1r7Cg?from=search&seid=3208808148645764628" frameborder="0"></iframe>
  264. </section>
  265. <section id="Pricing">
  266. <div class="price-item">
  267. <div class="price-item-bg">
  268. <h2 class="item-title">BASS TROMBONE</h2>
  269. </div>
  270. <div class="item-container">
  271. <h2 class="item-text-margin">$600</h2>
  272. <p class="item-text-margin">Lorem ipsum.</p>
  273. <p class="item-text-margin">Lorem ipsum.</p>
  274. <p class="item-text-margin">Lorem ipsum.</p>
  275. <p class="item-text-margin">Lorem ipsum.</p>
  276. <button class="item-btn">SELECT</button>
  277. </div>
  278. </div>
  279. <div class="price-item">
  280. <div class="price-item-bg">
  281. <h2 class="item-title">BASS TROMBONE</h2>
  282. </div>
  283. <div class="item-container">
  284. <h2 class="item-text-margin">$600</h2>
  285. <p class="item-text-margin">Lorem ipsum.</p>
  286. <p class="item-text-margin">Lorem ipsum.</p>
  287. <p class="item-text-margin">Lorem ipsum.</p>
  288. <p class="item-text-margin">Lorem ipsum.</p>
  289. <button class="item-btn">SELECT</button>
  290. </div>
  291. </div>
  292. <div class="price-item">
  293. <div class="price-item-bg">
  294. <h2 class="item-title">BASS TROMBONE</h2>
  295. </div>
  296. <div class="item-container">
  297. <h2 class="item-text-margin">$600</h2>
  298. <p class="item-text-margin">Lorem ipsum.</p>
  299. <p class="item-text-margin">Lorem ipsum.</p>
  300. <p class="item-text-margin">Lorem ipsum.</p>
  301. <p class="item-text-margin">Lorem ipsum.</p>
  302. <button class="item-btn">SELECT</button>
  303. </div>
  304. </div>
  305. </section>
  306. </main>
  307. <footer>
  308. <div class="footer-div">
  309. <nav class="footer-nav-bar">
  310. <ul>
  311. <li><a href="#login" class="footer-nav-link">Privacy</a></li>
  312. <li><a href="#HowItWorks" class="footer-nav-link">Terms</a></li>
  313. <li><a href="#login" class="footer-nav-link">Contact</a></li>
  314. </ul>
  315. </nav>
  316. <p class="footer-copyright">Copyright 2016, Original Trombones</p>
  317. </div>
  318. </footer>