Skip to content

Commit 1ab45e9

Browse files
committed
Fix responsiveness
1 parent faf861a commit 1ab45e9

File tree

10 files changed

+30
-31
lines changed

10 files changed

+30
-31
lines changed

src/components/About.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194

195195

196196
/* Responsive */
197-
@media (max-width: var(--breakpoint-large-tablet)) {
197+
@media (max-width: 1024px) {
198198
.container {
199199
padding: 0 24px;
200200
}
@@ -223,7 +223,7 @@
223223
}
224224
}
225225

226-
@media (max-width: var(--breakpoint-tablet)) {
226+
@media (max-width: 768px) {
227227
.container {
228228
padding: 0 16px;
229229
}
@@ -266,7 +266,7 @@
266266
}
267267
}
268268

269-
@media (max-width: var(--breakpoint-mobile)) {
269+
@media (max-width: 480px) {
270270
.profileImage {
271271
width: 220px;
272272
height: 280px;
@@ -312,7 +312,7 @@
312312
}
313313
}
314314

315-
@media (max-width: var(--breakpoint-small-mobile)) {
315+
@media (max-width: 360px) {
316316
.profileImage {
317317
width: 180px;
318318
height: 240px;

src/components/Aptitudes.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
}
168168

169169
/* Responsive */
170-
@media (max-width: var(--breakpoint-large-tablet)) {
170+
@media (max-width: 1024px) {
171171
.aptitudesGrid {
172172
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
173173
gap: 30px;
@@ -205,7 +205,7 @@
205205
}
206206
}
207207

208-
@media (max-width: var(--breakpoint-tablet)) {
208+
@media (max-width: 768px) {
209209
.aptitudesGrid {
210210
grid-template-columns: 1fr;
211211
gap: 24px;
@@ -262,7 +262,7 @@
262262
}
263263
}
264264

265-
@media (max-width: var(--breakpoint-mobile)) {
265+
@media (max-width: 480px) {
266266
.aptitudesSection {
267267
padding: 60px 0;
268268
}
@@ -322,7 +322,7 @@
322322
}
323323
}
324324

325-
@media (max-width: var(--breakpoint-small-mobile)) {
325+
@media (max-width: 360px) {
326326
.carouselTrack {
327327
gap: 12px;
328328
animation-duration: 20s;

src/components/ContactBar.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
font-size: 0.75rem;
6464
}
6565

66-
@media (max-width: var(--breakpoint-tablet)) {
66+
@media (max-width: 768px) {
6767
.contactBarContainer {
6868
justify-content: center;
6969
gap: 15px;
@@ -88,7 +88,7 @@
8888
}
8989
}
9090

91-
@media (max-width: var(--breakpoint-mobile)) {
91+
@media (max-width: 480px) {
9292
.contactBarContainer {
9393
gap: 10px;
9494
}

src/components/Experience.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
}
191191

192192
/* Responsive Design */
193-
@media (max-width: var(--breakpoint-tablet)) {
193+
@media (max-width: 768px) {
194194
.timeline {
195195
padding: 0 16px;
196196
}
@@ -230,7 +230,7 @@
230230

231231
}
232232

233-
@media (max-width: var(--breakpoint-mobile)) {
233+
@media (max-width: 480px) {
234234
.timelineItem {
235235
flex-direction: column;
236236
margin-bottom: 40px;

src/components/Hero.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
}
266266

267267
/* Responsive */
268-
@media (max-width: var(--breakpoint-large-desktop)) {
268+
@media (max-width: 1300px) {
269269
.heroContent {
270270
flex-direction: column;
271271
align-items: center;
@@ -323,13 +323,13 @@
323323
}
324324

325325
.socials {
326-
right: -60px;
326+
right: 10px;
327327
top: 20px;
328328
}
329329
}
330330

331331
/* Mobile responsive */
332-
@media (max-width: var(--breakpoint-tablet)) {
332+
@media (max-width: 768px) {
333333

334334
.heroSection {
335335
margin-bottom: 2vh;
@@ -424,7 +424,7 @@
424424
}
425425
}
426426

427-
@media (max-width: var(--breakpoint-mobile)) {
427+
@media (max-width: 480px) {
428428
.name {
429429
font-size: 2rem;
430430
}
@@ -460,7 +460,7 @@
460460
}
461461
}
462462

463-
@media (max-width: var(--breakpoint-small-mobile)) {
463+
@media (max-width: 360px) {
464464
.avatarWrapper {
465465
height: 180px;
466466
width: 130px;

src/components/Navbar.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
}
298298

299299
/* Tablet responsive */
300-
@media (max-width: var(--breakpoint-large-tablet)) {
300+
@media (max-width: 1024px) {
301301
.navbarContainer {
302302
grid-template-columns: 2fr 8fr 1fr;
303303
gap: 30px;
@@ -320,7 +320,7 @@
320320
}
321321

322322
/* Small tablet responsive */
323-
@media (max-width: var(--breakpoint-small-tablet)) {
323+
@media (max-width: 900px) {
324324
.navbarContainer {
325325
grid-template-columns: 1fr auto;
326326
gap: 20px;
@@ -396,7 +396,7 @@
396396
}
397397

398398
/* Mobile responsive */
399-
@media (max-width: var(--breakpoint-tablet)) {
399+
@media (max-width: 768px) {
400400
.navbarContainer {
401401
padding: 15px 20px;
402402
width: 100vw;
@@ -461,7 +461,7 @@
461461
}
462462

463463
/* Small mobile responsive */
464-
@media (max-width: var(--breakpoint-mobile)) {
464+
@media (max-width: 480px) {
465465
.navbarContainer {
466466
padding: 12px 15px;
467467
gap: 15px;
@@ -514,7 +514,7 @@
514514
}
515515

516516
/* Very small mobile responsive */
517-
@media (max-width: var(--breakpoint-small-mobile)) {
517+
@media (max-width: 360px) {
518518
.navbarContainer {
519519
padding: 10px 12px;
520520
}

src/data/globals.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"logoLocation": "/albertoLogo.png",
33
"socialLinks": [
4-
{ "icon": ["fab", "facebook-f"], "url": "https://facebook.com" },
5-
{ "icon": ["fab", "x-twitter"], "url": "https://twitter.com" },
6-
{ "icon": ["fab", "linkedin"], "url": "https://linkedin.com" },
7-
{ "icon": ["fab", "youtube"], "url": "https://youtube.com" }
4+
{ "icon": ["fab", "whatsapp"], "url": "https://wa.me/+50685625736" },
5+
{ "icon": ["fab", "linkedin"], "url": "https://www.linkedin.com/in/albertoruizperez/" },
6+
{ "icon": ["far", "envelope"], "url": "mailto:[email protected]" }
87
],
98
"companies": [
109
{

src/layouts/MainLayout.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
padding-top: var(--header-navbar-only);
1414
}
1515

16-
@media (max-width: var(--breakpoint-tablet)) {
16+
@media (max-width: 768px) {
1717
.mainContent.contactBarVisible {
1818
padding-top: var(--header-total-height-mobile);
1919
}
@@ -23,7 +23,7 @@
2323
}
2424
}
2525

26-
@media (max-width: var(--breakpoint-mobile)) {
26+
@media (max-width: 480px) {
2727
.mainContent.contactBarVisible {
2828
padding-top: var(--header-total-height-small);
2929
}

src/pages/NotFound.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
}
7979

8080
/* Responsive */
81-
@media (max-width: var(--breakpoint-tablet)) {
81+
@media (max-width: 768px) {
8282
.errorCode {
8383
font-size: 6rem;
8484
}

src/styles/grain-background.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
/* Media queries for performance on mobile */
50-
@media (max-width: var(--breakpoint-tablet)) {
50+
@media (max-width: 768px) {
5151
.grain-background::before {
5252
background-size:
5353
6px 6px,
@@ -123,7 +123,7 @@
123123
}
124124

125125
/* Media queries for performance on mobile */
126-
@media (max-width: var(--breakpoint-tablet)) {
126+
@media (max-width: 768px) {
127127
.grain-background::before {
128128
background-size:
129129
6px 6px,

0 commit comments

Comments
 (0)