Skip to content

Commit

Permalink
feat: update styles for v1
Browse files Browse the repository at this point in the history
This commit updates the styles for the website to v1.

The following changes were made:

- Added flexbox layout to the `About-us` section and made it scrollable on small screens.
- Updated the `Reviews` section to use a flexbox layout and added hover effects to the review cards.
- Added a new `Review` section to the homepage with customer testimonials.
- Updated the typography and colors throughout the site.
- Added a shadow to the about image on hover.
- Added a drop shadow to the review cards on hover.
- Added a scale effect to the review cards on hover.
- Changed the background color of the `About-us` section on dark mode.
- Added a `max-width` to the `Review` section.
- Added a `basis` property to the `Review` section.
- Added a `flex-grow` property to the `Review` section.
- Added a `grid-template-columns` property to the `Review` section.
- Added a `grid-auto-flow` property to the `Review` section.
  • Loading branch information
izik-adio committed Apr 4, 2024
1 parent b750580 commit 59b89f0
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 105 deletions.
173 changes: 143 additions & 30 deletions build/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,14 @@ section {
z-index: 10;
}

.col-auto {
grid-column: auto;
}

.row-auto {
grid-row: auto;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
Expand Down Expand Up @@ -824,6 +832,10 @@ section {
display: none;
}

.h-24 {
height: 6rem;
}

.h-fit {
height: -moz-fit-content;
height: fit-content;
Expand All @@ -833,10 +845,6 @@ section {
height: 100%;
}

.h-24 {
height: 6rem;
}

.min-h-full {
min-height: 100%;
}
Expand All @@ -845,12 +853,29 @@ section {
width: 50%;
}

.w-24 {
width: 6rem;
}

.w-full {
width: 100%;
}

.w-24 {
width: 6rem;
.w-max {
width: -moz-max-content;
width: max-content;
}

.w-8 {
width: 2rem;
}

.w-80 {
width: 20rem;
}

.w-96 {
width: 24rem;
}

.min-w-full {
Expand All @@ -865,6 +890,18 @@ section {
max-width: 768px;
}

.max-w-96 {
max-width: 24rem;
}

.flex-grow {
flex-grow: 1;
}

.basis-96 {
flex-basis: 24rem;
}

.scale-110 {
--tw-scale-x: 1.1;
--tw-scale-y: 1.1;
Expand All @@ -875,6 +912,18 @@ section {
list-style-type: none;
}

.grid-flow-row {
grid-auto-flow: row;
}

.grid-flow-col {
grid-auto-flow: column;
}

.grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flex-row {
flex-direction: row;
}
Expand Down Expand Up @@ -911,6 +960,10 @@ section {
gap: 1.5rem;
}

.gap-4 {
gap: 1rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
Expand Down Expand Up @@ -940,6 +993,10 @@ section {
border-radius: 0.75rem;
}

.rounded-lg {
border-radius: 0.5rem;
}

.border-dBrown {
--tw-border-opacity: 1;
border-color: rgb(28 26 38 / var(--tw-border-opacity));
Expand All @@ -964,20 +1021,24 @@ section {
background-color: rgb(255 255 255 / 0.95);
}

.bg-slate-100 {
--tw-bg-opacity: 1;
background-color: rgb(241 245 249 / var(--tw-bg-opacity));
}

.p-8 {
padding: 2rem;
}

.p-6 {
padding: 1.5rem;
}

.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}

.py-12 {
padding-top: 3rem;
padding-bottom: 3rem;
}

.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
Expand All @@ -988,16 +1049,6 @@ section {
padding-bottom: 8rem;
}

.py-20 {
padding-top: 5rem;
padding-bottom: 5rem;
}

.py-28 {
padding-top: 7rem;
padding-bottom: 7rem;
}

.pb-6 {
padding-bottom: 1.5rem;
}
Expand Down Expand Up @@ -1031,13 +1082,18 @@ section {
line-height: 2rem;
}

.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}

.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}

.text-lg {
font-size: 1.125rem;
.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}

Expand Down Expand Up @@ -1081,14 +1137,19 @@ section {
color: rgb(14 165 233 / var(--tw-text-opacity));
}

.text-slate-100 {
--tw-text-opacity: 1;
color: rgb(241 245 249 / var(--tw-text-opacity));
}

.text-slate-700 {
--tw-text-opacity: 1;
color: rgb(51 65 85 / var(--tw-text-opacity));
}

.text-slate-100 {
.text-white {
--tw-text-opacity: 1;
color: rgb(241 245 249 / var(--tw-text-opacity));
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.shadow-lg {
Expand All @@ -1097,11 +1158,64 @@ section {
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl {
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.drop-shadow-xl {
--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow-2xl {
--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}

.hover\:scale-110:hover {
--tw-scale-x: 1.1;
--tw-scale-y: 1.1;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
--tw-scale-x: 1.05;
--tw-scale-y: 1.05;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:text-lBrown:hover {
--tw-text-opacity: 1;
color: rgb(136 103 94 / var(--tw-text-opacity));
}

.hover\:shadow-2xl:hover {
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-xl:hover {
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:drop-shadow-2xl:hover {
--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

@media (min-width: 640px) {
.sm\:inline-block {
display: inline-block;
Expand Down Expand Up @@ -1154,6 +1268,10 @@ section {
margin-top: 8rem;
}

.md\:block {
display: block;
}

.md\:flex {
display: flex;
}
Expand Down Expand Up @@ -1213,11 +1331,6 @@ section {
}

@media (prefers-color-scheme: dark) {
.dark\:bg-slate-800 {
--tw-bg-opacity: 1;
background-color: rgb(30 41 59 / var(--tw-bg-opacity));
}

.dark\:text-sky-400 {
--tw-text-opacity: 1;
color: rgb(56 189 248 / var(--tw-text-opacity));
Expand Down
Loading

0 comments on commit 59b89f0

Please sign in to comment.