Advertisement
Miqueel97

Css landing

Nov 24th, 2021
1,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 11.84 KB | None | 0 0
  1. html {
  2.     scroll-behavior: smooth;
  3. }
  4.  
  5. body {
  6.     font-family: Barlow, sans-serif;
  7.     margin: 0;
  8.     color: #363636;
  9.     height: auto;
  10.     font-size: 1rem;
  11. }
  12.  
  13. .background-gris {
  14.     background-color: #f7f7f7;
  15. }
  16.  
  17. .gris-clar {
  18.     font-size: 1.2rem;
  19.     color: #aeaeae;
  20.     line-height: 150%;
  21. }
  22.  
  23.  
  24. /*FLEX*****************************************************************************************************************/
  25.  
  26. header,
  27. .portada,
  28. .beneficios-flex,
  29. .testimonial-flex,
  30. .colaborador-flex,
  31. #feature-invert-block,
  32. #feature-block {
  33.     display: flex;
  34.     flex-flow: row wrap;
  35.     width: auto;
  36.     justify-content: space-between;
  37. }
  38.  
  39. .portada,
  40. .beneficios-flex,
  41. #testimonio-module,
  42. .intro,
  43. .title-modules,
  44. .getup-module,
  45. footer,
  46. .background-gris,
  47. .slider {
  48.     padding: 2% 14%;
  49. }
  50.  
  51. #feature-invert-block,
  52. #feature-block {
  53.     padding: 2% 0;
  54. }
  55.  
  56. #title-modules-getup {
  57.     padding: 0% 14%;
  58.     font-size: 3rem;
  59. }
  60.  
  61. header {
  62.     width: 80%;
  63.     top: -130px;
  64.     padding: 0% 14%;
  65. }
  66.  
  67.  
  68. /**********************************************************************************************************************/
  69.  
  70. header {
  71.     position: fixed;
  72.     background-color: white;
  73.     transition: 0.5s;
  74.     z-index: 3;
  75. }
  76.  
  77. header ul {
  78.     list-style: none;
  79.     overflow: hidden;
  80. }
  81.  
  82. header li a {
  83.     display: block;
  84.     padding: 1rem;
  85.     border-right: 1px solid #f4f4f4;
  86.     text-decoration: none;
  87.     color: black;
  88. }
  89.  
  90. .black-line:after {
  91.     content: "";
  92.     display: block;
  93.     height: 2px;
  94.     background: black;
  95.     transition: width 0.3s ease 0s, left 0.3s ease 0s;
  96.     width: 0;
  97. }
  98.  
  99. .black-line:hover:after {
  100.     width: 100%;
  101. }
  102.  
  103.  
  104. /*menu*****************************************************************************************************************/
  105.  
  106. header .menu {
  107.     clear: both;
  108.     max-height: 0;
  109.     transition: max-height .2s ease-out;
  110.     justify-content: left;
  111. }
  112.  
  113.  
  114. /*menu-icon************************************************************************************************************/
  115.  
  116. .container-header {
  117.     display: inline-flex;
  118. }
  119.  
  120. header .menu-icon {
  121.     cursor: pointer;
  122.     float: right;
  123.     background-color: #f73b51;
  124.     vertical-align: middle;
  125.     padding: 1rem;
  126.     position: relative;
  127.     user-select: none;
  128. }
  129.  
  130. header .menu-icon .navicon {
  131.     background: #333;
  132.     display: block;
  133.     height: 2px;
  134.     position: relative;
  135.     transition: background-color .2s ease-out;
  136.     width: 50px;
  137. }
  138.  
  139. header .menu-icon .navicon:before,
  140. header .menu-icon .navicon:after {
  141.     background: #333;
  142.     content: '';
  143.     display: block;
  144.     height: 100%;
  145.     position: absolute;
  146.     transition: all .2s ease-out;
  147.     width: 100%;
  148. }
  149.  
  150. header .menu-icon .navicon:before {
  151.     top: 10px;
  152. }
  153.  
  154. header .menu-icon .navicon:after {
  155.     top: -10px;
  156. }
  157.  
  158.  
  159. /*menu-btn*************************************************************************************************************/
  160.  
  161. header .menu-btn {
  162.     display: none;
  163. }
  164.  
  165. header .menu-btn:checked~.menu {
  166.     max-height: 270px;
  167. }
  168.  
  169. header .menu-btn:checked~.menu-icon .navicon {
  170.     background: transparent;
  171. }
  172.  
  173. header .menu-btn:checked~.menu-icon .navicon:before {
  174.     transform: rotate(-45deg);
  175. }
  176.  
  177. header .menu-btn:checked~.menu-icon .navicon:after {
  178.     transform: rotate(45deg);
  179. }
  180.  
  181. header .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
  182. header .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  183.     top: 0;
  184. }
  185.  
  186.  
  187. /*portada**************************************************************************************************************/
  188.  
  189. .portada {
  190.     height: 50em;
  191.     background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("https://upload.wikimedia.org/wikipedia/commons/c/c7/Tabby_cat_with_blue_eyes-3336579.jpg");
  192.     background-position: center;
  193.     background-size: cover;
  194.     background-repeat: no-repeat;
  195.     align-items: center;
  196. }
  197.  
  198. .text-portada {
  199.     font-size: 1.5rem;
  200.     width: 50%;
  201.     color: white;
  202.     vertical-align: middle;
  203.     max-width: 100%;
  204. }
  205.  
  206. .title-portada {
  207.     font-size: 3rem;
  208.     font-weight: 100;
  209.     display: block;
  210. }
  211.  
  212. .inherit {
  213.     position: absolute;
  214.     top: 2%;
  215.     left: 14%;
  216. }
  217.  
  218. .logo-salle {
  219.     width: 200px;
  220.     height: auto;
  221.     max-width: 100%;
  222. }
  223.  
  224.  
  225. /*formulario***********************************************************************************************************/
  226.  
  227. .form-module {
  228.     max-width: 30rem;
  229.     background-color: white;
  230. }
  231.  
  232. .form-module>h2 {
  233.     text-align: center;
  234. }
  235.  
  236. .form-module>p {
  237.     text-align: center;
  238. }
  239.  
  240. form {
  241.     padding: 2rem;
  242.     color: #C9C9C9;
  243. }
  244.  
  245. .la {
  246.     text-align: left;
  247. }
  248.  
  249. .label {
  250.     margin-top: 15px;
  251.     /* margin-left: 50%; */
  252.     text-align: right;
  253.     width: 0;
  254. }
  255.  
  256. form>.label {
  257.     margin-top: 15px;
  258.     text-align: right;
  259. }
  260.  
  261. input,
  262. select {
  263.     border: 1px solid #C9C9C9;
  264.     margin-bottom: 1rem;
  265.     margin-top: 0.5rem;
  266.     background-color: white;
  267.     font-size: 1.2rem;
  268.     width: 95%;
  269. }
  270.  
  271. input {
  272.     padding: 1rem 0 1rem 1rem;
  273.     text-align: left;
  274. }
  275.  
  276. select {
  277.     text-align: left;
  278.     padding: 1rem 1rem 1rem 1rem;
  279.     width: 100%
  280. }
  281.  
  282. button {
  283.     background-color: #f73b51;
  284.     color: white;
  285.     font-weight: bold;
  286.     border: 0;
  287.     border-radius: 3%;
  288.     cursor: pointer;
  289.     padding: 1.3rem 4rem;
  290.     text-align: center;
  291. }
  292.  
  293. #enviar_btn {
  294.     margin-top: 1rem;
  295.     width: 100%;
  296.     font-size: 1.2rem;
  297. }
  298.  
  299.  
  300. /*intro****************************************************************************************************************/
  301.  
  302. .intro {
  303.     font-size: 1.5rem;
  304.     text-align: center;
  305.     line-height: 150%;
  306. }
  307.  
  308.  
  309. /*beneficios***********************************************************************************************************/
  310.  
  311. .beneficio {
  312.     padding: 5px;
  313.     color: white;
  314.     width: 330px;
  315.     display: inline-flex;
  316. }
  317.  
  318. .icon-beneficio {
  319.     width: 55px;
  320.     margin-right: 0.5rem;
  321.     height: 55px;
  322. }
  323.  
  324. .titulo-beneficio {
  325.     display: block;
  326.     font-weight: 400;
  327.     font-size: 1.5rem;
  328.     margin-bottom: 1rem;
  329.     color: #000;
  330. }
  331.  
  332. .copy-beneficio {
  333.     font-size: 1rem;
  334.     color: #c9c9c9;
  335. }
  336.  
  337.  
  338. /*modulos**************************************************************************************************************/
  339.  
  340. .title-modules {
  341.     text-align: center;
  342.     font-size: 2.5rem;
  343. }
  344.  
  345.  
  346. /*features************************************************************************************************************/
  347.  
  348. #feature-block,
  349. #feature-invert-block {
  350.     align-items: center;
  351.     max-width: 100%;
  352. }
  353.  
  354. .title-features {
  355.     font-size: 2rem;
  356. }
  357.  
  358. .feature-block,
  359. .feature-image {
  360.     display: inline-block;
  361.     max-width: 100%;
  362. }
  363.  
  364. .feature-block {
  365.     width: 50%;
  366.     min-width: 470px;
  367. }
  368.  
  369. #feature-invert-block {
  370.     border-top: 1px solid #C9C9C9;
  371. }
  372.  
  373. #feature-image,
  374. #feature-image-invert {
  375.     align-items: center;
  376.     width: 470px;
  377.     max-width: 100%;
  378. }
  379.  
  380. .feature-img {
  381.     max-width: 100%;
  382.     padding: 0;
  383. }
  384.  
  385.  
  386. /*testimonial**********************************************************************************************************/
  387.  
  388. .testimonial-flex {
  389.     list-style: none;
  390.     text-align: center;
  391. }
  392.  
  393. .testimonio {
  394.     text-align: center;
  395.     padding: 1rem;
  396.     color: #9b9b9b;
  397.     width: 30rem;
  398.     display: block;
  399.     transition: all 0.5s ease 0s;
  400.     line-height: 150%;
  401. }
  402.  
  403. .testimonio:hover {
  404.     background-color: #f7f7f7;
  405.     transition: all 0.5s ease 0s;
  406. }
  407.  
  408. .img-testimonial {
  409.     border-radius: 50%;
  410.     width: 100px;
  411.     height: auto;
  412. }
  413.  
  414.  
  415. /*colaborador**********************************************************************************************************/
  416.  
  417. .slider {
  418.     background-color: #5EAFDB;
  419. }
  420.  
  421. .colaborador {
  422.     align-items: center;
  423.     padding-left: 15px;
  424. }
  425.  
  426. .img-colaborador {
  427.     width: 150px;
  428.     height: auto;
  429.     filter: brightness(0) invert(1);
  430. }
  431.  
  432.  
  433. /*getup****************************************************************************************************************/
  434.  
  435. .getup-module {
  436.     text-align: center;
  437. }
  438.  
  439. .getup-copy {
  440.     font-size: 1.2rem;
  441.     font-weight: bold;
  442.     color: #b1b1b1;
  443.     line-height: 120%;
  444. }
  445.  
  446. .go-top {
  447.     font-size: 1.5rem;
  448. }
  449.  
  450.  
  451. /*footer****************************************************************************************************************/
  452.  
  453. footer {
  454.     text-align: center;
  455.     font-size: 1.2rem;
  456. }
  457.  
  458.  
  459. /*Extra**************************************************************************************************************/
  460.  
  461. @media all and (max-width: 1500px) {
  462.     .portada,
  463.     .beneficios-flex,
  464.     #testimonio-module,
  465.     .intro,
  466.     .title-modules,
  467.     .getup-module,
  468.     footer,
  469.     /* .background-gris, */
  470.     .slider {
  471.         padding: 2% 10%;
  472.     }
  473.     .testimonial-flex,
  474.     .beneficios-flex {
  475.         justify-content: center;
  476.     }
  477. }
  478.  
  479. @media all and (max-width: 1350px) {
  480.     .portada,
  481.     .beneficios-flex,
  482.     #testimonio-module,
  483.     .intro,
  484.     .title-modules,
  485.     .getup-module,
  486.     footer,
  487.     /* .background-gris, */
  488.     .slider {
  489.         padding: 2% 7%;
  490.     }
  491.     .portada {
  492.         justify-content: center;
  493.     }
  494.     .text-portada {
  495.         width: auto;
  496.         max-width: 100%;
  497.     }
  498.     header {
  499.         width: 80%;
  500.         top: -130px;
  501.     }
  502. }
  503.  
  504. @media all and (max-width: 1100px) {
  505.     .portada,
  506.     .features,
  507.     .beneficios-flex,
  508.     .testimonial-flex,
  509.     .colaborador-flex,
  510.     .feature-block {
  511.         justify-content: center;
  512.     }
  513.     .text-portada {
  514.         width: auto;
  515.         max-width: 100%;
  516.         text-align: center;
  517.     }
  518.     .portada {
  519.         height: auto;
  520.         margin-bottom: rem;
  521.     }
  522.     .text-portada {
  523.         margin-top: 3rem;
  524.     }
  525.     .beneficio {
  526.         width: 100%;
  527.     }
  528.     .copy-beneficio {
  529.         margin-top: 0;
  530.     }
  531.     #feature-block,
  532.     #feature-invert-block {
  533.         justify-content: center;
  534.     }
  535.     .background-gris>section,
  536.     .feature-image,
  537.     .feature-img,
  538.     .feature-block,
  539.     .title-features,
  540.     .gris-clar,
  541.     .testimonial-flex,
  542.     .testimonio {
  543.         width: 100%;
  544.         max-width: 100%;
  545.     }
  546.     .img-testimonial {
  547.         width: 30%;
  548.     }
  549.     /* Tamaños texto */
  550.     .text-portada>p,
  551.     .form-module>h2,
  552.     #title-modules-getup {
  553.         font-size: 1rem;
  554.     }
  555.     .form-module {
  556.         font-size: 1.5rem;
  557.     }
  558.     .form-module>p {
  559.         font-size: 0.65rem;
  560.     }
  561.     .intro {
  562.         font-size: 0.75rem;
  563.     }
  564.     #feature-block>div>p,
  565.     #feature-invert-block>div>p {
  566.         font-size: 0.9rem;
  567.     }
  568.     #feature-block>div>h3,
  569.     #feature-invert-block>div>h3 {
  570.         font-size: 1.2rem;
  571.     }
  572.     .getup-copy {
  573.         font-size: 0.75rem;
  574.         margin-bottom: 2rem;
  575.     }
  576.     #boton-start {
  577.         font-size: 2rem;
  578.         width: auto;
  579.     }
  580. }
  581.  
  582. @media all and (min-width: 500px) {
  583.     header li {
  584.         float: left;
  585.     }
  586.     header li a {
  587.         padding: 20px 30px;
  588.     }
  589.     header .menu {
  590.         clear: none;
  591.         float: right;
  592.         max-height: none;
  593.     }
  594.     header .menu-icon {
  595.         display: none;
  596.     }
  597. }
  598.  
  599. @media all and (max-width: 500px) {
  600.     .portada,
  601.     .beneficios-flex,
  602.     #testimonio-module,
  603.     .intro,
  604.     .title-modules,
  605.     .getup-module,
  606.     footer,
  607.     .slider,
  608.     .feature-block {
  609.         padding: 1% 2%;
  610.     }
  611.     header {
  612.         width: 90%;
  613.         top: -130px;
  614.     }
  615. }
  616.  
  617. .animate__animated.animate__fadeInUp {
  618.     --animate-duration: 2s;
  619. }
  620.  
  621. @keyframes example {
  622.     0% {
  623.         transform: translateY(0%);
  624.     }
  625.     100% {
  626.         transform: translateY(-5%)
  627.     }
  628. }
  629.  
  630. @keyframes example2 {
  631.     0% {
  632.         transform: translateY(-5%);
  633.     }
  634.     100% {
  635.         transform: translateY(0%)
  636.     }
  637. }
  638.  
  639. .beneficio:hover {
  640.     animation: example 1s forwards;
  641. }
  642.  
  643. .beneficio:not(hover) {
  644.     animation: example2 1s forwards;
  645. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement