Skip to content

Commit e0f8d7d

Browse files
updated the requested changes
1 parent 772bb01 commit e0f8d7d

File tree

2 files changed

+47
-23
lines changed

2 files changed

+47
-23
lines changed

css/index.css

+41-17
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,12 @@
372372

373373
@media (min-width: 769px) {
374374
#contact{
375-
border-style: solid;
376-
border-color: #fff;
377-
border-radius: 100px / 70px; /* chosen different vertical and horizontal radius for smooth border */
378375
overflow: hidden;
379376
display: flex;
380377
justify-content: space-between;
381-
gap: 20px;
382-
padding: 60px 30px;
383-
margin: 100px 20px;
378+
gap: 80px;
379+
padding: 60px 10px 30px 10px;
380+
margin: 100px 10px 60px 10px;
384381
}
385382

386383
.contactLeftSection{
@@ -391,7 +388,7 @@
391388
}
392389

393390
.contactRightSection{
394-
align-items: top;
391+
align-items: center;
395392
justify-content: right;
396393
flex: 60%;
397394
padding: 20px;
@@ -400,7 +397,7 @@
400397
#titleContact{
401398
font-family: "Montserrat", sans-serif;
402399
text-transform: uppercase;
403-
font-weight: 200;
400+
font-weight: 400;
404401
font-size: 60px;
405402
text-align: center;
406403
}
@@ -409,6 +406,11 @@
409406
font-family: "Lucida Console", "Courier New", monospace;
410407
padding-bottom: 15px;
411408
text-align: right;
409+
/*font-size: 1.5vw;*/
410+
}
411+
412+
.mobile-br{
413+
display: none;
412414
}
413415

414416
.email{
@@ -419,29 +421,39 @@
419421
@media (max-width: 769px) {
420422
#contact{
421423
overflow: hidden;
422-
padding: 10% 5%;
423-
margin: 10% 10%;
424+
padding: 4px 2px 1px 2px;
425+
margin: 20px 10px 1px 10px;
424426
text-align: center;
425427
}
426428

427429
#titleContact{
428430
font-family: "Montserrat", sans-serif;
429431
text-transform: uppercase;
430-
font-weight: 200;
431-
font-size: 8vw;
432+
font-weight: 500;
433+
font-size: 36px;
432434
text-align: center;
433-
padding: 5% 5%;
435+
padding: 18px;
434436
}
435437

436438
.mailText{
437439
font-family: "Lucida Console", "Courier New", monospace;
438-
padding: 12% 5%;
439-
font-size: 3.5vw;
440+
padding: 30px 5px 20px 5px;
441+
font-size: 16px;
440442
text-align: center;
443+
justify-content: center;
444+
}
445+
446+
.mobile-br{
447+
display: inline;
441448
}
442449

443450
.email{
444451
font-style: italic;
452+
text-align: center;
453+
}
454+
455+
.mailUsAt{
456+
text-align: center;
445457
}
446458
}
447459

@@ -451,7 +463,6 @@
451463
width: calc(40% - 10px);
452464
float: left;
453465
box-sizing: border-box;
454-
margin: 0 0 0 10px;
455466
color: #000;
456467
}
457468

@@ -479,7 +490,20 @@
479490
#contactDetails .socials{
480491
display: flex;
481492
flex-direction: row;
482-
justify-content: right;
493+
}
494+
495+
@media (min-width: 769px){
496+
#contactDetails .socials{
497+
justify-content: right;
498+
}
499+
}
500+
501+
@media (max-width: 769px){
502+
#contactDetails .socials{
503+
justify-content: center;
504+
margin: 0 auto;
505+
max-width: 400px;
506+
}
483507
}
484508
#contactDetails .socials a{
485509
height: 50px;

index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,22 @@
143143

144144
<div id="contactDetails" class="contactRightSection">
145145
<div class="mailText">
146-
Mail us at
147-
<a class="email" href="mailto:[email protected]">
146+
<span id="mailUsAt">Mail us at</span> <span class="mobile-br"><br></span>
147+
<a class="email" href="mailto:[email protected]" title="Email">
148148
<span>[email protected]</span>
149149
</a>
150150
</div>
151151
<div class="socials">
152-
<a href="https://www.facebook.com/people/Databased/100091411453016/" class="facebook" target="_blank">
152+
<a href="https://www.facebook.com/people/Databased/100091411453016/" class="facebook" target="_blank" title="Facebook">
153153
<img src="./img/social/facebook.png" alt="facebook link image"/>
154154
</a>
155-
<a href="https://instagram.com/databasediisc" class="instagram" target="_blank">
155+
<a href="https://instagram.com/databasediisc" class="instagram" target="_blank" title="Instagram">
156156
<img src="./img/social/instagram.png" alt="instagram link image"/>
157157
</a>
158-
<a href="https://www.linkedin.com/company/databasediisc" class="linkedin" target="_blank">
158+
<a href="https://www.linkedin.com/company/databasediisc" class="linkedin" target="_blank" title="LinkedIn">
159159
<img src="./img/social/linkedin.png" alt="linkedin link image"/>
160160
</a>
161-
<a href="https://github.com/databasedIISc/" target="_blank" class="github">
161+
<a href="https://github.com/databasedIISc/" target="_blank" class="github" title="Github">
162162
<img src="./img/social/github.png" alt="github link image" />
163163
</a>
164164
</div>

0 commit comments

Comments
 (0)