refactor: Modularize Stylesheets

This commit is contained in:
2025-08-13 11:54:28 -05:00
parent 691968ceac
commit 16d93122ca
23 changed files with 725 additions and 1716 deletions

5
src/styles/about.css Normal file
View File

@@ -0,0 +1,5 @@
/* about.css */
h1 {
text-align: center;
}

5
src/styles/contact.css Normal file
View File

@@ -0,0 +1,5 @@
/* contact.css */
h1 {
text-align: center;
}

5
src/styles/demos.css Normal file
View File

@@ -0,0 +1,5 @@
/* demos.css */
h1, h2 {
text-align: center;
}

View File

@@ -0,0 +1,74 @@
/* Header and Footer Styles */
/* Reset some default browser styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Calibri, sans-serif;
text-align: center;
}
/*? ↓ Start Header ↓ */
.main-header {
background-color: #333; /* Dark background for the header */
color: #fff; /* White text color */
padding: 10px 20px; /* Add some padding for spacing */
}
.main-nav {
display: flex; /* Use flexbox to align items in a row */
justify-content: space-between; /* Space items evenly */
align-items: center; /* Vertically center items */
}
.nav-list {
list-style: none; /* Remove default list styling */
display: flex; /* Use flexbox to align list items in a row */
gap: 20px; /* Add some space between list items */
}
.nav-item a {
background-color: #2e97be;
color: #fff; /* White text color for links */
text-decoration: none; /* Remove underline from links */
font-weight: bold; /* Make text bold */
transition: color 0.3s; /* Smooth color transition on hover */
padding: 5px 10px; border-radius: 10px;
}
.nav-item a:hover {
color: #2e97be;
background-color: #fff /* Change link color on hover */
}
.nav-logo a {
font-size: 1.5em; /* Make the logo text larger */
}
.nav-logo {
margin-right: 20vw;
}
/*? ↓ Start Footer ↓ */
.footer-links {
display: flex; /* Use flexbox to align items in a row */
align-items: center;
justify-content: space-between; /* Center the footer links */
gap: 20px; /* Add some space between links */
margin-top: 20px; /* Add some space above the footer links */
width: 75vw;
margin-left: auto;
margin-right: auto;
}
.external-links {
display: flex;
justify-content: center; /* Center the external links */
gap: 50px; /* Add some space between links */
}

105
src/styles/index.css Normal file
View File

@@ -0,0 +1,105 @@
/* index.css */
/*? ↓ Start Benefits Section ↓ */
.benefits-container {
display: flex;
align-items: center;
justify-content: space-between;
width: 60vw;
padding: 20px;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
}
.benefits-container div {
border: 2px solid darkslategray;
border-radius: 10px;
padding: 10px;
}
.benefits-card ul {
list-style: none;
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease-in-out;
}
.benefits-card.hover ul {
max-height: var(--ul-height);
}
/*? ↓ Start Services Container ↓ */
.service-cards {
display: flex;
align-items: center;
justify-content: center;;
}
.service card {
width: 100px;
height: 150px;
background-color: #f0f0f0;
border: 1px solid darkslategray;
border-radius: 10px;
margin: 10px;
padding: 20px;
text-align: center;
}
.service-card ul {
list-style: none;
}
.carousel-container {
position: relative;
width: 100%;
max-width: 800px;
margin: 0 auto;
overflow: hidden;
display: flex;
align-items: center; /* Center the carousel vertically */
}
.carousel {
display: flex;
transition: transform 0.5s ease-in-out;
}
.service-card {
min-width: 100%;
box-sizing: border-box;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 8px;
margin: 0 10px;
text-align: center;
}
.carousel-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
border: none;
padding: 10px;
cursor: pointer;
font-size: 24px;
z-index: 1;
}
.prev-button {
left: 10px;
}
.next-button {
right: 10px;
}

View File