Advertisement
thotfrnk

landingpage.css

Oct 27th, 2024
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.09 KB | None | 0 0
  1. /*base*/
  2. *,
  3. *::before,
  4. *::after {
  5.   margin: 0;
  6.   padding: 0;
  7.   box-sizing: border-box;
  8. }
  9.  
  10. /*body*/
  11. body {
  12.   font-family: "Arial", sans-serif;
  13.   line-height: 1.6;
  14.   background-color: #fafaf5;
  15. }
  16.  
  17. /*animation*/
  18. @keyframes fadeIn {
  19.   0% {
  20.     opacity: 0;
  21.   }
  22.   100% {
  23.     opacity: 1;
  24.   }
  25. }
  26. @keyframes slideIn {
  27.   0% {
  28.     transform: translateY(3rem);
  29.     opacity: 0;
  30.   }
  31.   100% {
  32.     transform: translateY(0);
  33.     opacity: 1;
  34.   }
  35. }
  36.  
  37. /*buttons*/
  38. .btn {
  39.   padding: 1rem 2.5rem;
  40.   text-transform: uppercase;
  41.   border-radius: 5rem;
  42.   text-decoration: none;
  43.   font-size: 1.5rem;
  44.   transition: all 0.3s ease;
  45. }
  46. .btn--white {
  47.   background-color: #fff;
  48.   color: #000;
  49. }
  50. .btn--animated {
  51.   animation: slideIn 1.5s ease-out;
  52. }
  53.  
  54. /*rooms*/
  55. .room-card {
  56.   background-color: #fff;
  57.   border-radius: 0.625rem;
  58.   overflow: hidden;
  59.   box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.1);
  60.   transition: all 0.3s ease;
  61. }
  62. .room-card:hover {
  63.   transform: scale(1.05);
  64. }
  65. .room-card__img {
  66.   width: 100%;
  67.   height: 18.75rem;
  68.   object-fit: cover;
  69. }
  70. .room-card__title {
  71.   font-size: 1.8rem;
  72.   margin-top: 1.5rem;
  73. }
  74. .room-card__price {
  75.   font-size: 1.4rem;
  76.   margin-bottom: 1.5rem;
  77. }
  78.  
  79. /*activities*/
  80. .activity-card {
  81.   background-color: #f7f7f7;
  82.   padding: 2rem;
  83.   border-radius: 0.625rem;
  84.   transition: transform 0.3s ease;
  85.   box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  86. }
  87. .activity-card:hover {
  88.   transform: translateY(-0.625rem);
  89. }
  90. .activity-card__title {
  91.   font-size: 1.5rem;
  92.   font-weight: bold;
  93.   color: #333;
  94. }
  95. .activity-card__img {
  96.   width: 100%;
  97.   height: 18.75rem;
  98.   object-fit: cover;
  99. }
  100.  
  101. /*grids*/
  102. .grid-container {
  103.   display: grid;
  104.   grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  105.   gap: 2rem;
  106. }
  107.  
  108. .activities__grid {
  109.   display: grid;
  110.   grid-template-columns: repeat(auto-fit, minmax(21.875rem, 1fr));
  111.   gap: 2rem;
  112. }
  113.  
  114. /*
  115. image:
  116. https://www.pexels.com/photo/waterfront-hotels-buildings-near-blue-water-5007455/
  117. */
  118.  
  119. /*header*/
  120. .header {
  121.   height: 100vh;
  122.   background: linear-gradient(to right bottom, rgba(255, 182, 193, 0.8), rgba(30, 144, 255, 0.7)), url("../img/pexels-jess-vide.jpg") center/cover no-repeat;
  123.   clip-path: polygon(0 0, 100% 0, 100% 80%, 75% 100%, 25% 100%, 0 80%);
  124.   display: flex;
  125.   justify-content: center;
  126.   align-items: center;
  127.   animation: fadeIn 2s ease-out;
  128. }
  129. .header__text-box {
  130.   text-align: center;
  131.   color: #fff;
  132. }
  133. .header__text-box .heading-primary {
  134.   font-size: 3.5rem;
  135.   text-transform: uppercase;
  136.   margin-bottom: 4rem;
  137. }
  138. .header__text-box .heading-primary--main {
  139.   display: block;
  140.   font-size: calc(2rem + 2vw);
  141. }
  142. .header__text-box .heading-primary--sub {
  143.   display: block;
  144.   font-size: calc(1rem + 1vw);
  145. }
  146.  
  147. /*room section*/
  148. .section-rooms {
  149.   padding: 5rem 2rem;
  150.   background-color: #f4f4f4;
  151.   text-align: center;
  152. }
  153. .section-rooms .heading-secondary {
  154.   font-size: 2.5rem;
  155.   margin-bottom: 3rem;
  156.   color: #333;
  157. }
  158.  
  159. /*activities section*/
  160. .section-activities {
  161.   padding: 5rem 2rem;
  162.   background-color: #fafaf5;
  163.   text-align: center;
  164. }
  165.  
  166. /*# sourceMappingURL=style.css.map */
  167.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement