Skip to content

Commit 1a61914

Browse files
committed
chore: layout fixes
1 parent 4beb16f commit 1a61914

File tree

3 files changed

+74
-57
lines changed

3 files changed

+74
-57
lines changed

assets/css/base.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,7 @@ svg {
295295
.xl-row {
296296
flex-direction: row;
297297
}
298+
.xl-row-reverse {
299+
flex-direction: row-reverse;
300+
}
298301
}

assets/css/styles.css

Lines changed: 58 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ section {
4545
}
4646

4747
.content-section {
48-
min-height: 80vh;
49-
padding: 84px 24px 24px 24px;
48+
min-height: min-content;
49+
padding: 86px 24px 48px 24px;
5050
width: 100%;
5151
}
5252

@@ -83,29 +83,34 @@ span.highlight {
8383
}
8484
}
8585

86-
.intro-section .subtitle {
87-
font-size: 18px;
88-
}
89-
.intro-section {
90-
padding: 20px;
91-
min-height: 100vh;
86+
.intro-wrapper {
9287
background: radial-gradient(
9388
circle at top,
9489
#00ffaedf 0%,
9590
#22ffb95c 40%,
9691
transparent 100%
9792
);
93+
}
94+
.intro-section {
95+
max-width: 1200px;
96+
padding: 84px 24px 48px 24px;
97+
min-height: 95vh;
9898
display: flex;
9999
justify-content: flex-end;
100100
flex-direction: column;
101101
flex: 1;
102+
position: relative;
103+
margin: 0 auto;
102104
}
103105
.intro-section .title {
104106
font-size: 72px;
105107
line-height: 72px;
106108
letter-spacing: -3px;
107109
margin-left: -3px;
108110
}
111+
.intro-section .subtitle {
112+
font-size: 18px;
113+
}
109114
.intro-section img {
110115
height: auto;
111116
padding: 2px;
@@ -116,31 +121,31 @@ span.highlight {
116121
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15);
117122
}
118123
.intro-section .img1 {
119-
top: 8%;
120-
left: 3%;
124+
top: 12%;
125+
left: 5%;
121126
width: calc(100% / 3);
122127
animation: popIn 0.8s ease-in forwards;
123128
transform: scale(0);
124129
}
125130
.intro-section .img2 {
126-
top: 12%;
127-
left: 42%;
131+
top: 16%;
132+
left: 44%;
128133
width: calc(100% / 2);
129134
animation: popIn 0.8s ease-in forwards;
130135
animation-delay: 0.3s;
131136
transform: scale(0);
132137
}
133138
.intro-section .img3 {
134-
top: 36%;
135-
left: 4%;
139+
top: 38%;
140+
left: 7%;
136141
width: calc(100% / 3);
137142
animation: popIn 0.8s ease-in forwards;
138143
animation-delay: 0.6s;
139144
transform: scale(0);
140145
}
141146
.intro-section .img4 {
142-
top: 32%;
143-
left: 42%;
147+
top: 36%;
148+
left: 44%;
144149
width: calc(100% / 2);
145150
animation: popIn 0.8s ease-in forwards;
146151
animation-delay: 0.9s;
@@ -167,13 +172,13 @@ span.highlight {
167172
border-radius: 4px;
168173
}
169174
.image-position {
170-
height: 200px;
175+
height: 23vh;
171176
}
172177
.work-item .images-wrapper {
173178
position: absolute;
174-
bottom: -50px;
179+
bottom: -12px;
175180
left: 50%;
176-
transform: translateX(-50%);
181+
transform: translateX(-46%);
177182
}
178183
.work-item .images-wrapper img {
179184
border-radius: 16px;
@@ -183,13 +188,12 @@ span.highlight {
183188
display: none;
184189
}
185190
.work-item .main-img {
186-
height: 200px;
191+
height: 23vh;
187192
aspect-ratio: 16/9;
188193
transform: rotate(1.5deg);
189-
margin-left: 12px;
190194
}
191195
.work-item:hover .images-wrapper {
192-
bottom: -25px;
196+
bottom: -6px;
193197
transition: all 0.1s ease-in;
194198
}
195199
.work-item:hover .side-img {
@@ -360,10 +364,10 @@ span.highlight {
360364
.socials-wrapper {
361365
font-size: 20px;
362366
font-weight: 400;
363-
padding: 16px;
367+
padding: 28px 20px;
364368
border-radius: 12px;
365369
background-color: var(--tertiary-black);
366-
gap: 16px;
370+
gap: 20px;
367371
}
368372
.socials-wrapper .email svg {
369373
width: 24px;
@@ -406,7 +410,8 @@ span.highlight {
406410
.content-section {
407411
min-height: 100vh;
408412
padding: 120px 32px 32px 32px;
409-
width: 80%;
413+
width: 100%;
414+
max-width: 1140px;
410415
margin: 0 auto;
411416
}
412417

@@ -421,6 +426,10 @@ span.highlight {
421426
left: 62%;
422427
}
423428

429+
.intro-section {
430+
min-height: 100vh;
431+
}
432+
424433
.intro-section .subtitle {
425434
font-size: 36px;
426435
line-height: 44px;
@@ -429,42 +438,42 @@ span.highlight {
429438
padding: 90px 40px;
430439
}
431440
.intro-section .title {
432-
font-size: 176px;
433-
line-height: 176px;
441+
font-size: 140px;
442+
line-height: 140px;
434443
letter-spacing: -4px;
435444
margin-left: -8px;
436445
}
437446
.intro-section img {
438447
border-width: 4px;
439-
border-radius: 20px;
448+
border-radius: 16px;
440449
}
441450
.intro-section .img1 {
442-
top: 8%;
443-
left: 3%;
444-
width: calc(100% / 6);
451+
top: 12%;
452+
left: 0%;
453+
width: calc(100% / 5.5);
445454
animation: popIn 0.8s ease-in forwards;
446455
transform: scale(0);
447456
}
448457
.intro-section .img2 {
449-
top: 15%;
450-
left: 23%;
451-
width: calc(100% / 4);
458+
top: 18%;
459+
left: 22%;
460+
width: calc(100% / 3.5);
452461
animation: popIn 0.8s ease-in forwards;
453462
animation-delay: 0.3s;
454463
transform: scale(0);
455464
}
456465
.intro-section .img3 {
457-
top: 19%;
458-
left: 51%;
459-
width: calc(100% / 6);
466+
top: 24%;
467+
left: 53%;
468+
width: calc(100% / 5.5);
460469
animation: popIn 0.8s ease-in forwards;
461470
animation-delay: 0.6s;
462471
transform: scale(0);
463472
}
464473
.intro-section .img4 {
465-
top: 14%;
466-
left: 70%;
467-
width: calc(100% / 4);
474+
top: 18%;
475+
left: 74%;
476+
width: calc(100% / 3.5);
468477
animation: popIn 0.8s ease-in forwards;
469478
animation-delay: 0.9s;
470479
transform: scale(0);
@@ -482,6 +491,15 @@ span.highlight {
482491
.image-position {
483492
height: 400px;
484493
}
494+
.work-item .images-wrapper {
495+
position: absolute;
496+
bottom: -50px;
497+
left: 50%;
498+
transform: translateX(-50%);
499+
}
500+
.work-item:hover .images-wrapper {
501+
bottom: -25px;
502+
}
485503
.work-item .side-img {
486504
display: block;
487505
height: 400px;

index.html

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,17 @@
5353
</ul>
5454
</nav>
5555
</header>
56-
<section id="hey" class="intro-section">
57-
<img class="img1" src="assets/images/img1.webp" />
58-
<img class="img2" src="assets/images/img2.webp" />
59-
<img class="img3" src="assets/images/img3.webp" />
60-
<img class="img4" src="assets/images/img4.webp" />
61-
<h6 class="subtitle medium b-secondary">
62-
Hello! I am your trusted web engineer,
63-
<br /> building scalable products and solutions.
64-
</h6>
65-
<h1 class="title heading">Mahak Makharia</h1>
66-
<!-- <div class="flex w-100 a-end j-end"><video src="assets/images/title-highlight.webm" autoplay preload="auto"
67-
playsinline muted></video> -->
68-
56+
<section id="hey" class="intro-wrapper">
57+
<div class="intro-section">
58+
<img class="img1" src="assets/images/img1.webp" />
59+
<img class="img2" src="assets/images/img2.webp" />
60+
<img class="img3" src="assets/images/img3.webp" />
61+
<img class="img4" src="assets/images/img4.webp" />
62+
<h6 class="subtitle medium b-secondary">
63+
Hello! I am your trusted web engineer,
64+
<br /> building scalable products and solutions.
65+
</h6>
66+
<h1 class="title heading">Mahak Makharia</h1>
6967
</div>
7068
</section>
7169
<section class="content-section" id="work">
@@ -91,8 +89,7 @@ <h2 class="sub-heading">My story <span class="highlight">A short overview</span>
9189
</div>
9290
<div class="story-item img"> <img src="assets/images/dukaan.webp" loading="lazy" alt="team-dukaan" /></div>
9391
</div>
94-
<div class="story-wrapper gap-12 flex d-column xl-row a-center w-100">
95-
<div class="story-item img"> <img src="assets/images/mission.webp" loading="lazy" alt="mission" /></div>
92+
<div class="story-wrapper gap-12 flex d-column xl-row-reverse a-center w-100">
9693
<div class="story-item text">
9794
I bring a rare mix of engineering rigour and design intuition. My business background and empathetic nature
9895
gives me a unique edge in translating product goals into web experiences that move metrics and win hearts.
@@ -103,6 +100,7 @@ <h2 class="sub-heading">My story <span class="highlight">A short overview</span>
103100
engagement, investor confidence, revenue, and brand reputation, making your product the one others compare
104101
themselves to.
105102
</div>
103+
<div class="story-item img"> <img src="assets/images/mission.webp" loading="lazy" alt="mission" /></div>
106104
</div>
107105
</div>
108106

@@ -137,8 +135,6 @@ <h2 class="sub-heading">Let's start a chat?<span class="highlight">@mahakmakhari
137135
src="assets/images/github.png" /></a>
138136

139137
</div>
140-
<div>
141-
</div>
142138
</div>
143139
<p class="credits">Developed by <a href="#hey">Mahak</a>, design inspired from <a href="https://danielsun.space/"
144140
target="_blank">Daniel

0 commit comments

Comments
 (0)