Skip to content

Commit 772bb01

Browse files
Updated mobile look
1 parent 13630ad commit 772bb01

File tree

1 file changed

+86
-44
lines changed

1 file changed

+86
-44
lines changed

css/index.css

+86-44
Original file line numberDiff line numberDiff line change
@@ -370,49 +370,81 @@
370370
border-color: #000;
371371
}
372372

373-
#contact{
374-
border-style: solid;
375-
border-color: #fff;
376-
border-radius: 100px / 70px; /* chosen different vertical and horizontal radius for smooth border */
377-
overflow: hidden;
378-
display: flex;
379-
justify-content: space-between;
380-
gap: 20px;
381-
padding: 60px 30px;
382-
margin: 100px 20px;
383-
}
384-
385-
.contactLeftSection{
386-
align-items: center;
387-
justify-content: center;
388-
flex: 40%;
389-
padding: 20px;
390-
}
391-
392-
.contactRightSection{
393-
align-items: top;
394-
justify-content: right;
395-
flex: 60%;
396-
padding: 20px;
373+
@media (min-width: 769px) {
374+
#contact{
375+
border-style: solid;
376+
border-color: #fff;
377+
border-radius: 100px / 70px; /* chosen different vertical and horizontal radius for smooth border */
378+
overflow: hidden;
379+
display: flex;
380+
justify-content: space-between;
381+
gap: 20px;
382+
padding: 60px 30px;
383+
margin: 100px 20px;
384+
}
385+
386+
.contactLeftSection{
387+
align-items: center;
388+
justify-content: center;
389+
flex: 40%;
390+
padding: 20px;
391+
}
392+
393+
.contactRightSection{
394+
align-items: top;
395+
justify-content: right;
396+
flex: 60%;
397+
padding: 20px;
398+
}
399+
400+
#titleContact{
401+
font-family: "Montserrat", sans-serif;
402+
text-transform: uppercase;
403+
font-weight: 200;
404+
font-size: 60px;
405+
text-align: center;
406+
}
407+
408+
.mailText{
409+
font-family: "Lucida Console", "Courier New", monospace;
410+
padding-bottom: 15px;
411+
text-align: right;
412+
}
413+
414+
.email{
415+
font-style: italic;
416+
}
397417
}
398418

399-
#titleContact{
400-
font-family: "Montserrat", sans-serif;
401-
text-transform: uppercase;
402-
font-weight: 200;
403-
font-size: 60px;
404-
text-align: center;
405-
}
419+
@media (max-width: 769px) {
420+
#contact{
421+
overflow: hidden;
422+
padding: 10% 5%;
423+
margin: 10% 10%;
424+
text-align: center;
425+
}
406426

407-
.mailText{
408-
font-family: "Lucida Console", "Courier New", monospace;
409-
padding-bottom: 15px;
410-
text-align: right;
427+
#titleContact{
428+
font-family: "Montserrat", sans-serif;
429+
text-transform: uppercase;
430+
font-weight: 200;
431+
font-size: 8vw;
432+
text-align: center;
433+
padding: 5% 5%;
434+
}
435+
436+
.mailText{
437+
font-family: "Lucida Console", "Courier New", monospace;
438+
padding: 12% 5%;
439+
font-size: 3.5vw;
440+
text-align: center;
441+
}
442+
443+
.email{
444+
font-style: italic;
445+
}
411446
}
412447

413-
.email{
414-
font-style: italic;
415-
}
416448

417449
#contactDetails{
418450
display: block;
@@ -450,12 +482,22 @@
450482
justify-content: right;
451483
}
452484
#contactDetails .socials a{
453-
width: 120px;
454485
height: 50px;
455486
display: flex;
456487
justify-content: center;
457488
align-items: center;
458489
}
490+
@media (min-width: 769px) {
491+
#contactDetails .socials a{
492+
width: calc(80% / 4);
493+
}
494+
}
495+
496+
@media (max-width: 769px) {
497+
#contactDetails .socials a{
498+
width: calc(100% / 4);
499+
}
500+
}
459501
#contactDetails .socials a:hover{
460502
opacity: 0.8;
461503
}
@@ -477,16 +519,16 @@
477519
background-color: #000;
478520
}
479521

480-
@media only screen and (max-width: 600px){
522+
@media only screen and (max-width: 769px){
481523
#contactMap, #contactDetails{
482524
width: 100%;
483525
}
484-
#contactDetails{
526+
/*#contactDetails{
485527
margin: 10px 0 0 0;
486-
}
528+
} */
487529
}
488530

489-
.hubspot-form {
531+
/*.hubspot-form {
490532
margin-top: 15px;
491533
margin-inline: 20%;
492534
padding-top: 15px;
@@ -519,4 +561,4 @@
519561
color: black;
520562
font-size: 0.9em;
521563
padding-bottom: 15px;
522-
}
564+
} */

0 commit comments

Comments
 (0)