Skip to content

Commit 1115383

Browse files
committed
Fix responsiveness issues: improved mobile layout, better text scaling, and optimized background shapes
1 parent fc0b3c1 commit 1115383

1 file changed

Lines changed: 68 additions & 34 deletions

File tree

src/App.css

Lines changed: 68 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -382,26 +382,32 @@ body::before {
382382
}
383383

384384
.shape-1 {
385-
width: 500px;
386-
height: 500px;
387-
top: -250px;
388-
right: -250px;
385+
width: 40vw;
386+
height: 40vw;
387+
max-width: 500px;
388+
max-height: 500px;
389+
top: -20vw;
390+
right: -20vw;
389391
animation: float1 20s ease-in-out infinite;
390392
background: linear-gradient(45deg, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.4));
391393
}
392394

393395
.shape-2 {
394-
width: 400px;
395-
height: 400px;
396-
bottom: -200px;
397-
left: -200px;
396+
width: 32vw;
397+
height: 32vw;
398+
max-width: 400px;
399+
max-height: 400px;
400+
bottom: -16vw;
401+
left: -16vw;
398402
animation: float2 25s ease-in-out infinite;
399403
background: linear-gradient(45deg, rgba(16, 185, 129, 0.4), rgba(6, 214, 160, 0.4));
400404
}
401405

402406
.shape-3 {
403-
width: 300px;
404-
height: 300px;
407+
width: 24vw;
408+
height: 24vw;
409+
max-width: 300px;
410+
max-height: 300px;
405411
top: 50%;
406412
left: 50%;
407413
transform: translate(-50%, -50%);
@@ -438,12 +444,14 @@ body::before {
438444

439445
/* Spectacular title animation */
440446
.hero-title {
441-
font-size: 3.5rem;
447+
font-size: clamp(2rem, 8vw, 3.5rem);
442448
font-weight: 800;
443449
line-height: 1.2;
444450
margin-bottom: 1.5rem;
445451
perspective: 1000px;
446452
color: white;
453+
word-wrap: break-word;
454+
overflow-wrap: break-word;
447455
}
448456

449457
.hero-title-word {
@@ -471,18 +479,19 @@ body::before {
471479
}
472480

473481
.hero-subtitle {
474-
font-size: 1.25rem;
482+
font-size: clamp(1rem, 3vw, 1.25rem);
475483
color: rgba(255, 255, 255, 0.9);
476484
margin-bottom: 2rem;
477485
line-height: 1.6;
478-
min-height: 3rem;
486+
min-height: auto;
479487
background: rgba(255, 255, 255, 0.1);
480488
backdrop-filter: blur(10px);
481489
padding: 1rem;
482490
border-radius: 10px;
483491
border: 1px solid rgba(255, 255, 255, 0.2);
484492
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
485493
border-left: 3px solid rgba(59, 130, 246, 0.8);
494+
word-wrap: break-word;
486495
}
487496

488497
.hero-features {
@@ -2742,10 +2751,6 @@ section {
27422751
padding: 0 2rem;
27432752
}
27442753

2745-
.hero-title {
2746-
font-size: 3rem;
2747-
}
2748-
27492754
.hero-content {
27502755
gap: 3rem;
27512756
}
@@ -2763,6 +2768,22 @@ section {
27632768
padding: 0.8rem 1.2rem;
27642769
font-size: 0.9rem;
27652770
}
2771+
2772+
/* Reduce background shapes */
2773+
.shape-1 {
2774+
width: 35vw;
2775+
height: 35vw;
2776+
}
2777+
2778+
.shape-2 {
2779+
width: 28vw;
2780+
height: 28vw;
2781+
}
2782+
2783+
.shape-3 {
2784+
width: 20vw;
2785+
height: 20vw;
2786+
}
27662787
}
27672788

27682789
/* Tablets */
@@ -2795,35 +2816,37 @@ section {
27952816
gap: 2rem;
27962817
}
27972818

2798-
.hero-title {
2799-
font-size: 2.5rem;
2800-
margin-bottom: 1rem;
2819+
.hero-text {
2820+
order: 1;
28012821
}
28022822

2803-
.hero-subtitle {
2804-
font-size: 1.1rem;
2805-
margin-bottom: 1.5rem;
2823+
.hero-image {
2824+
order: 2;
28062825
}
28072826

28082827
.hero-features {
28092828
justify-content: center;
28102829
gap: 1rem;
28112830
margin-bottom: 1.5rem;
2831+
flex-wrap: wrap;
28122832
}
28132833

28142834
.feature {
28152835
padding: 0.7rem 1rem;
28162836
font-size: 0.85rem;
2837+
min-width: 120px;
28172838
}
28182839

28192840
.hero-buttons {
28202841
justify-content: center;
28212842
gap: 0.8rem;
2843+
flex-wrap: wrap;
28222844
}
28232845

28242846
.cta-button {
28252847
padding: 0.8rem 1.5rem;
28262848
font-size: 0.9rem;
2849+
min-width: 150px;
28272850
}
28282851

28292852
.phone-mockup {
@@ -2835,6 +2858,7 @@ section {
28352858
.social-buttons {
28362859
justify-content: center;
28372860
gap: 1rem;
2861+
flex-wrap: wrap;
28382862
}
28392863

28402864
.social-btn {
@@ -2913,18 +2937,19 @@ section {
29132937
}
29142938

29152939
.hero-title {
2916-
font-size: 2.2rem;
2917-
line-height: 1.1;
2940+
margin-bottom: 0.8rem;
29182941
}
29192942

29202943
.hero-title-word {
2944+
display: inline-block;
2945+
margin-bottom: 0.3rem;
29212946
margin-right: 0.3rem;
29222947
font-size: 0.95em;
29232948
}
29242949

29252950
.hero-subtitle {
2926-
font-size: 1rem;
29272951
padding: 0.8rem;
2952+
margin-bottom: 1rem;
29282953
}
29292954

29302955
.hero-features {
@@ -2987,19 +3012,18 @@ section {
29873012
}
29883013

29893014
.hero-title {
2990-
font-size: 1.8rem;
29913015
margin-bottom: 0.8rem;
29923016
}
29933017

29943018
.hero-title-word {
2995-
display: block;
3019+
display: inline-block;
29963020
margin-bottom: 0.2rem;
2997-
margin-right: 0;
3021+
margin-right: 0.2rem;
29983022
text-align: center;
3023+
width: auto;
29993024
}
30003025

30013026
.hero-subtitle {
3002-
font-size: 0.9rem;
30033027
padding: 0.6rem;
30043028
margin-bottom: 1rem;
30053029
}
@@ -3089,28 +3113,38 @@ section {
30893113
padding: 0 0.5rem;
30903114
}
30913115

3092-
.hero-title {
3093-
font-size: 1.5rem;
3116+
.hero {
3117+
padding: 3rem 0 1rem;
30943118
}
30953119

3096-
.hero-subtitle {
3097-
font-size: 0.85rem;
3120+
.hero-features {
3121+
flex-direction: column;
3122+
align-items: center;
3123+
gap: 0.6rem;
30983124
}
30993125

31003126
.feature {
31013127
padding: 0.5rem 0.6rem;
31023128
font-size: 0.75rem;
3129+
width: 90%;
3130+
max-width: 200px;
31033131
}
31043132

31053133
.cta-button {
31063134
padding: 0.7rem 0.8rem;
31073135
font-size: 0.8rem;
3136+
width: 90%;
3137+
max-width: 200px;
31083138
}
31093139

31103140
.phone-mockup {
31113141
width: 150px;
31123142
height: 300px;
31133143
}
3144+
3145+
.hero-content {
3146+
gap: 1rem;
3147+
}
31143148
}
31153149

31163150
/* Smooth scrolling */

0 commit comments

Comments
 (0)