initial commit

This commit is contained in:
Harivansh Rathi 2025-01-03 15:55:01 +05:30
commit fb5b992b17
35 changed files with 11573 additions and 0 deletions

View file

@ -0,0 +1,49 @@
import React from "react";
import "./style.css";
import {
FaGithub,
FaTwitter,
FaFacebookF,
FaLinkedin,
FaYoutube,
FaTwitch,
FaInstagram,
FaSnapchatGhost,
FaTiktok,
FaFileAlt
} from "react-icons/fa";
import { socialprofils } from "../../content_option";
const ICON_MAPPING = {
default: FaFileAlt,
facebook: FaFacebookF,
github: FaGithub,
instagram: FaInstagram,
linkedin: FaLinkedin,
snapchat: FaSnapchatGhost,
tiktok: FaTiktok,
twitter: FaTwitter,
twitch: FaTwitch,
youtube: FaYoutube,
resume: FaFileAlt
};
export const Socialicons = (params) => {
return (
<div className="stick_follow_icon">
<ul>
{Object.entries(socialprofils).map(([platform, url]) => {
const IconComponent = ICON_MAPPING[platform] || ICON_MAPPING.default;
return (
<li key={platform}>
<a href={url}>
<IconComponent />
</a>
</li>
);
})}
</ul>
<p>Follow Me</p>
</div>
);
};

View file

@ -0,0 +1,86 @@
.stick_follow_icon {
top: 50%;
left: 30px;
width: 20px;
height: 200px;
position: fixed;
margin-top: -100px;
}
.stick_follow_icon ul {
list-style: none;
padding: 0;
margin: 0;
}
.stick_follow_icon svg {
width: 1.3em;
height: 1.3em;
fill: var(--text-color)
}
.stick_follow_icon p {
top: 70px;
left: -24px;
width: 68px;
height: 20px;
color: var(--text-color);
font-size: 12px;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
position: relative;
transform: rotate( -90deg);
}
.stick_follow_icon ul li {
display: block;
font-size: 12px;
text-align: center;
margin-bottom: 10px;
transition: all .3s;
}
.stick_follow_icon p:after {
top: 9px;
right: -48px;
width: 40px;
height: 1px;
content: "";
display: block;
position: absolute;
background-color: var(--text-color);
}
@media only screen and (max-width: 991px) {
.stick_follow_icon {
width: unset;
height: unset;
position: static;
margin-top: unset;
display: flex;
flex-direction: row-reverse;
justify-content: center;
padding: 40px 0;
align-items: center;
}
.stick_follow_icon p {
top: unset;
left: unset;
width: unset;
height: unset;
white-space: nowrap;
position: relative;
transform: unset;
font-size: 17px;
margin-right: 65px;
}
.stick_follow_icon ul {
margin-bottom: 20px;
}
.stick_follow_icon ul li {
display: inline;
margin-bottom: 29px;
margin-right: 10px;
}
}