Skip to content

Commit ab3df08

Browse files
authored
Merge pull request #92 from Ayushmaanagarwal1211/side-icons
Added Side icons of Social media
2 parents 3dcc994 + 161cf78 commit ab3df08

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
rel="stylesheet"
1111
/>
1212
<link rel="stylesheet" href="styles.css" />
13+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
14+
1315
</head>
1416
<body>
1517
<nav class="navbar">
@@ -30,6 +32,24 @@
3032
</div>
3133
</div>
3234
</nav>
35+
<div class="side-icons">
36+
<a href="https://facebook.com" target="_blank" aria-label="Facebook">
37+
<i class="fab fa-facebook-f"></i>
38+
</a>
39+
<a href="https://instagram.com" target="_blank" aria-label="Instagram">
40+
<i class="fab fa-instagram"></i>
41+
</a>
42+
<a href="https://linkedin.com" target="_blank" aria-label="LinkedIn">
43+
<i class="fab fa-linkedin-in"></i>
44+
</a>
45+
<a href="https://twitter.com" target="_blank" aria-label="Twitter">
46+
<i class="fab fa-twitter"></i>
47+
</a>
48+
<a href="https://youtube.com" target="_blank" aria-label="YouTube">
49+
<i class="fab fa-youtube"></i>
50+
</a>
51+
</div>
52+
3353
<div class="container">
3454
<h1 class="main-heading">Awesome GitHub Profile READMEs</h1>
3555
<div class="tags">

styles.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,3 +479,32 @@ body {
479479
transition: transform 1.5s ease-in-out;
480480
}
481481

482+
.side-icons{
483+
position: fixed;
484+
left: 0px;
485+
top: 30%;
486+
height: 260px;
487+
width: 70px;
488+
align-items: center;
489+
padding-top: 30px;
490+
background-color: white;
491+
display: flex;
492+
flex-direction: column;
493+
gap: 20px;
494+
495+
}
496+
body.dark-mode .side-icons {
497+
background: #333;
498+
}
499+
.side-icons a {
500+
color: #374151; /* Gray color for the icons */
501+
font-size: 24px; /* Size of the icons */
502+
text-decoration: none;
503+
}
504+
505+
.side-icons a:hover {
506+
color: #555; /* Darker gray on hover, or adjust to desired hover color */
507+
}
508+
body.dark-mode .side-icons a{
509+
color: white !important;
510+
}

0 commit comments

Comments
 (0)