Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 30 additions & 12 deletions src/pages/components/HeroSection/HeroSection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@

/* Hero Section */
.hero {
min-height: 100vh;
height: 100vh;
max-height: 100vh;
position: relative;
background: var(--bg-primary);
display: flex;
align-items: center;
overflow: hidden;
}

.heroContainer {
Expand Down Expand Up @@ -67,7 +69,6 @@
line-height: 1.1;
color: var(--text-primary);
margin-bottom: 1.5rem;
text-wrap: balance;
}

.heroDescription {
Expand Down Expand Up @@ -155,17 +156,18 @@
/* Right side - Geometric abstraction */
.heroVisual {
position: relative;
height: 1028px;
perspective: 2056px;
height: calc(100vh - 120px);
max-height: 800px;
perspective: 1600px;
transform-style: preserve-3d;
}

.geometricContainer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(1.1);
width: 90%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
transform-style: preserve-3d;
}
Expand Down Expand Up @@ -353,13 +355,20 @@

/* Responsive design */
@media (max-width: 1024px) {
.hero {
height: auto;
min-height: 100vh;
}

.heroGrid {
grid-template-columns: 1fr;
gap: 3rem;
gap: 2rem;
padding: 0;
}

.heroVisual {
height: 400px;
height: 50vh;
max-height: 500px;
}

.heroTitle {
Expand All @@ -368,6 +377,12 @@
}

@media (max-width: 768px) {

.heroContent {
max-width: 100%;
padding: 0;
}

.heroTitle {
font-size: 2rem;
}
Expand All @@ -382,6 +397,7 @@

.heroButtons {
flex-direction: column;
margin-bottom: 0;
}

.btnPrimary,
Expand All @@ -397,7 +413,7 @@
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
max-width: 900px;
max-width: 700px;
z-index: 10;
animation: fadeInScale 1s ease-out;
display: flex;
Expand All @@ -408,17 +424,19 @@
.heroScreenshot {
width: 90%;
height: auto;
max-height: calc(100vh - 200px);
object-fit: contain;
border-radius: 16px;
border: 2px solid rgba(91, 45, 244, 0.5);
box-shadow:
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.2),
0 0 0 1px rgba(91, 45, 244, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heroScreenshot:hover {
transform: scale(1.05);
box-shadow:
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.25),
0 0 0 1px rgba(91, 45, 244, 0.2),
0 0 40px rgba(91, 45, 244, 0.3);
Expand Down Expand Up @@ -451,4 +469,4 @@
transform: none;
margin-top: 2rem;
}
}
}
8 changes: 6 additions & 2 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,15 @@ html[data-theme="dark"] .repoLink:hover {

/* Responsive */
@media (max-width: 768px) {
.geometricDecoration {
display: none;
}

.lightbox {
padding: 1rem;
}

.lightboxClose {
top: -40px;
}
}
}