204 lines
3.2 KiB
CSS
204 lines
3.2 KiB
CSS
|
body {
|
||
|
font-family: Arial, sans-serif;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
display: flex;
|
||
|
flex-direction: column; /* Stack elements vertically */
|
||
|
justify-content: flex-start; /* Align items at the top */
|
||
|
align-items: center;
|
||
|
min-height: 100vh; /* Use min-height for scrolling */
|
||
|
background-color: #f4f4f4;
|
||
|
}
|
||
|
|
||
|
.featured-projects {
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
align-items: center;
|
||
|
width: 80%;
|
||
|
max-width: 1200px;
|
||
|
background: white;
|
||
|
padding: 20px;
|
||
|
border-radius: 10px;
|
||
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
|
||
|
.project-description {
|
||
|
flex: 1;
|
||
|
text-align: left;
|
||
|
margin-right: 20px;
|
||
|
}
|
||
|
|
||
|
.project-description h1 {
|
||
|
font-size: 24px;
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
.project-description p {
|
||
|
font-size: 16px;
|
||
|
color: #555;
|
||
|
}
|
||
|
|
||
|
.indicators {
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
margin-top: 20px;
|
||
|
}
|
||
|
|
||
|
.indicators span {
|
||
|
width: 12px;
|
||
|
height: 12px;
|
||
|
margin: 0 5px;
|
||
|
background-color: #ccc;
|
||
|
border-radius: 50%;
|
||
|
cursor: pointer;
|
||
|
transition: background-color 0.3s;
|
||
|
}
|
||
|
|
||
|
.indicators span.active {
|
||
|
background-color: #007bff;
|
||
|
}
|
||
|
|
||
|
.project-cards {
|
||
|
display: flex;
|
||
|
flex: 1;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
gap: 20px; /* Adds space between images */
|
||
|
}
|
||
|
|
||
|
.project-cards img {
|
||
|
width: 200px;
|
||
|
height: 300px;
|
||
|
object-fit: cover;
|
||
|
border-radius: 10px;
|
||
|
transition: transform 0.5s, box-shadow 0.5s; /* Adds smooth transition effects */
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.project-cards img:hover {
|
||
|
transform: scale(1.05); /* Slightly enlarges the image on hover */
|
||
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Adds shadow effect on hover */
|
||
|
}
|
||
|
|
||
|
.project-cards img.active {
|
||
|
transform: scale(1.1);
|
||
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Stronger shadow for active image */
|
||
|
}
|
||
|
|
||
|
* {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background: #f2f2f2;
|
||
|
}
|
||
|
|
||
|
@keyframes slide {
|
||
|
from {
|
||
|
transform: translateX(0);
|
||
|
}
|
||
|
to {
|
||
|
transform: translateX(-100%);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.logos {
|
||
|
overflow: hidden;
|
||
|
padding: 60px 0;
|
||
|
background: white;
|
||
|
white-space: nowrap;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.logos:before,
|
||
|
.logos:after {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
width: 250px;
|
||
|
height: 100%;
|
||
|
content: "";
|
||
|
z-index: 2;
|
||
|
}
|
||
|
|
||
|
.logos:before {
|
||
|
left: 0;
|
||
|
background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
|
||
|
}
|
||
|
|
||
|
.logos:after {
|
||
|
right: 0;
|
||
|
background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
|
||
|
}
|
||
|
|
||
|
.logos:hover .logos-slide {
|
||
|
animation-play-state: paused;
|
||
|
}
|
||
|
|
||
|
.logos-slide {
|
||
|
display: inline-block;
|
||
|
animation: 35s slide infinite linear;
|
||
|
}
|
||
|
|
||
|
.logos-slide img {
|
||
|
height: 50px;
|
||
|
margin: 0 40px;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Responsive Design */
|
||
|
@media (max-width: 768px) {
|
||
|
.featured-projects {
|
||
|
flex-direction: column;
|
||
|
padding: 10px;
|
||
|
}
|
||
|
|
||
|
.project-description {
|
||
|
margin-right: 0;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
.project-description h1 {
|
||
|
font-size: 20px;
|
||
|
}
|
||
|
|
||
|
.project-description p {
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.project-cards {
|
||
|
flex-direction: column;
|
||
|
gap: 10px;
|
||
|
}
|
||
|
|
||
|
.project-cards img {
|
||
|
width: 150px;
|
||
|
height: 225px;
|
||
|
}
|
||
|
|
||
|
.logos-slide img {
|
||
|
height: 40px;
|
||
|
margin: 0 10px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (max-width: 480px) {
|
||
|
.project-description h1 {
|
||
|
font-size: 18px;
|
||
|
}
|
||
|
|
||
|
.project-description p {
|
||
|
font-size: 12px;
|
||
|
}
|
||
|
|
||
|
.project-cards img {
|
||
|
width: 120px;
|
||
|
height: 180px;
|
||
|
}
|
||
|
|
||
|
.logos-slide img {
|
||
|
height: 30px;
|
||
|
margin: 0 5px;
|
||
|
}
|
||
|
}
|