Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Added Social Icons Sidebar #1208

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion Website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,40 @@ <h3>Recommendation Models</h3>
</svg>
</button>

<!-- Side Icons -->


<div class="side-icons">
<div class="icon-content">
<a href="https://www.facebook.com/recodehive" target="_blank" aria-label="Facebook" data-social="facebook">
<i class="fab fa-facebook-f"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://www.linkedin.com/in/sanjay-k-v/" target="_blank" aria-label="LinkedIn" data-social="linkedin">
<i class="fab fa-linkedin-in"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://twitter.com/sanjay_kv" target="_blank" aria-label="Twitter" data-social="twitter">
<i class="fab fa-twitter"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://youtube.com" target="_blank" aria-label="YouTube" data-social="youtube">
<i class="fab fa-youtube"></i>
<div class="filled"></div>
</a>
</div>
<div class="icon-content">
<a href="https://github.com/recodehive" target="_blank" aria-label="GitHub" data-social="github">
<i class="fab fa-github"></i>
<div class="filled"></div>
</a>
</div>
</div>

<footer class="footer">
<div>&copy; <span id="year"></span> Machine Learning Repos - <a href="https://github.com/recodehive" id="footer-link">RecodeHive</a>. All rights reserved.</div>
Expand Down
115 changes: 115 additions & 0 deletions Website/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,122 @@ button#toggle-languages:hover {
grid-template-columns: 1fr;
}
}
.side-icons {
position: fixed;
right: 20px;
top: 30%;
display: flex;
flex-direction: column;
gap: 15px;
}

.icon-content {
position: relative;
}

.icon-content a {
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
border-radius: 50%;
color: #4d4d4d;
background-color: #fff;
transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
overflow: hidden;
text-decoration: none;
position: relative;
}

.icon-content a i {
font-size: 24px;
position: relative;
z-index: 2;
}

.icon-content a .filled {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000;
transition: transform 0.3s ease-in-out;
transform: scaleY(0);
transform-origin: bottom;
z-index: 1;
}

.icon-content a:hover .filled {
transform: scaleY(1);
}

.icon-content a:hover i {
color: #fff;
}

.icon-content a[data-social="facebook"] .filled {
background-color: #3b5998;
}

.icon-content a[data-social="linkedin"] .filled {
background-color: #0077b5;
}

.icon-content a[data-social="twitter"] .filled {
background-color: #1da1f2;
}

.icon-content a[data-social="youtube"] .filled {
background-color: #ff0000;
}

.icon-content a[data-social="github"] .filled {
background-color: #24292e;
}

.icon-content a:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .side-icons .icon-content a {
background-color: #121245;
color: #ddd;
}

body.dark-mode .side-icons .icon-content a:hover .filled {
background-color: #444;
}

body.dark-mode .side-icons .icon-content a:hover i {
color: #fff;
}

body.dark-mode .side-icons .icon-content a[data-social="facebook"] .filled {
background-color: #3b5998;
}

body.dark-mode .side-icons .icon-content a[data-social="linkedin"] .filled {
background-color: #0077b5;
}

body.dark-mode .side-icons .icon-content a[data-social="twitter"] .filled {
background-color: #1da1f2;
}

body.dark-mode .side-icons .icon-content a[data-social="youtube"] .filled {
background-color: #ff0000;
}

body.dark-mode .side-icons .icon-content a[data-social="github"] .filled {
background-color: #444c56;
}

body.dark-mode .side-icons .icon-content a:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}


/* Dark Mode Styles */
body.dark-mode {
Expand Down
Loading