Skip to content

Commit df70d5b

Browse files
committed
Fix the view in mobile and remove some extra scrolling bar
1 parent 0646e44 commit df70d5b

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

src/styles/global.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,25 @@
66
box-sizing: border-box;
77
}
88

9+
*,
10+
*::before,
11+
*::after {
12+
max-width: 100%;
13+
}
14+
15+
html {
16+
overflow-x: hidden;
17+
width: 100%;
18+
}
19+
920
body {
1021
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
1122
line-height: 1.6;
1223
color: #cdd6f4;
1324
background: #1e1e2e;
1425
overflow-x: hidden;
26+
width: 100%;
27+
min-height: 100vh;
1528
}
1629

1730
/* Simple blink animation */
@@ -31,11 +44,14 @@ body {
3144
max-width: 1200px;
3245
margin: 0 auto;
3346
padding: 0 2rem;
47+
width: 100%;
3448
}
3549

3650
/* Section Styles */
3751
.section {
3852
padding: 4rem 0;
53+
width: 100%;
54+
overflow-x: hidden;
3955
}
4056

4157
.section-title {
@@ -121,6 +137,8 @@ body {
121137
@media (max-width: 768px) {
122138
.container {
123139
padding: 0 1rem;
140+
width: 100%;
141+
max-width: 100%;
124142
}
125143

126144
.section {
@@ -146,6 +164,8 @@ body {
146164
@media (max-width: 480px) {
147165
.container {
148166
padding: 0 0.75rem;
167+
width: 100%;
168+
max-width: 100%;
149169
}
150170

151171
.section {

src/styles/header.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
right: 0;
1111
z-index: 1000;
1212
backdrop-filter: blur(10px);
13+
width: 100%;
14+
overflow-x: hidden;
1315
}
1416

1517
.nav {

src/styles/hero.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@
66
padding: 8rem 0 4rem;
77
margin-top: 80px;
88
position: relative;
9+
width: 100%;
910
}
1011

1112
.hero-content {
1213
display: grid;
1314
grid-template-columns: 1fr 300px;
1415
gap: 4rem;
1516
align-items: center;
17+
width: 100%;
18+
max-width: 100%;
1619
}
1720

1821
.hero-text h1 {
1922
font-size: 3.5rem;
2023
font-weight: 700;
2124
margin-bottom: 1rem;
2225
line-height: 1.2;
26+
word-wrap: break-word;
27+
overflow-wrap: break-word;
2328
}
2429

2530
/* Terminal command styling */
@@ -73,6 +78,8 @@
7378
line-height: 1.8;
7479
margin-bottom: 2rem;
7580
opacity: 0.9;
81+
word-wrap: break-word;
82+
overflow-wrap: break-word;
7683
}
7784

7885
.hero-image {
@@ -130,22 +137,32 @@
130137
grid-template-columns: 1fr;
131138
text-align: center;
132139
gap: 2rem;
140+
width: 100%;
141+
max-width: 100%;
133142
}
134143

135144
.hero-text h1 {
136145
font-size: 2.5rem;
146+
width: 100%;
147+
max-width: 100%;
137148
}
138149

139150
.hero-text .subtitle {
140151
font-size: 1.2rem;
152+
width: 100%;
153+
max-width: 100%;
141154
}
142155

143156
.hero-text .company {
144157
font-size: 1.1rem;
158+
width: 100%;
159+
max-width: 100%;
145160
}
146161

147162
.hero-text .bio {
148163
font-size: 1rem;
164+
width: 100%;
165+
max-width: 100%;
149166
}
150167

151168
.profile-img {

0 commit comments

Comments
 (0)