add dark and light mode
continuous-integration/drone/push Build is passing Details

master
cocaillot 7 months ago
parent 19a6e8d94e
commit 976c45d022

@ -5,6 +5,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="style.css"> <link type="text/css" rel="stylesheet" href="style.css">
<script src="effect.js" defer></script>
<title>Corentin</title> <title>Corentin</title>
<nav class="navbar"> <nav class="navbar">
<ul class="navbar-list"> <ul class="navbar-list">
@ -32,9 +33,14 @@
<a href="form.php">Formulaire</a> <a href="form.php">Formulaire</a>
</li> </li>
</ul> </ul>
<!-- Dark Mode Switch moved here -->
<label class="switch">
<input type="checkbox" id="theme-switch">
<span class="slider"></span>
</label>
</nav> </nav>
</head>
<body> <body>
<h1 id="titre_cursus">CURSUS SCOLAIRE</h1> <h1 id="titre_cursus">CURSUS SCOLAIRE</h1>
<div class="timeline"> <div class="timeline">

@ -0,0 +1,30 @@
// Get the theme switch checkbox
const themeSwitch = document.getElementById('theme-switch');
// Function to set the theme
const setTheme = (isDark) => {
if (isDark) {
document.body.classList.add('dark-mode');
document.body.classList.remove('light-mode');
} else {
document.body.classList.add('light-mode');
document.body.classList.remove('dark-mode');
}
};
// Retrieve the saved theme from localStorage
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
const isDark = savedTheme === 'dark';
themeSwitch.checked = !isDark; // Set the switch position
setTheme(isDark);
} else {
setTheme(true); // Default to dark mode
}
// Listen for changes on the switch
themeSwitch.addEventListener('change', (e) => {
const isDark = !e.target.checked; // Light mode when checked
setTheme(isDark);
localStorage.setItem('theme', isDark ? 'dark' : 'light'); // Save preference
});

@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<!-- Tailwind CSS via CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<link type="text/css" rel="stylesheet" href="style.css">
<script src="effect.js" defer></script>
</head>
<body class="bg-gray-900 text-white">
<!-- Navigation (Optional) -->
<nav class="navbar bg-gray-800">
<ul class="navbar-list">
<li><a href="index.html">Accueil</a></li>
<li><a href="cursus.html">Cursus</a></li>
<li><a href="planning.html">Planning</a></li>
<li class="dropdown">
<a href="#">Gallerie</a>
<ul class="dropdown-content">
<li><a href="images.html">Images</a></li>
<li><a href="videos.html">Vidéos</a></li>
</ul>
</li>
<li><a href="form.html">Formulaire</a></li>
<label class="switch">
<input type="checkbox" id="theme-switch">
<span class="slider"></span>
</label>
</ul>
</nav>
<!-- Contact Form -->
<div class="container px-4 mx-auto mt-10">
<div class="max-w-md mx-auto px-8 py-6 bg-gray-800 rounded-lg shadow-lg">
<h2 class="text-2xl font-semibold text-white mb-4">Contact Us</h2>
<form>
<div class="mb-4">
<label class="block text-white mb-1" for="name">Your Name</label>
<input
class="w-full px-4 py-2 bg-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-300 transition duration-300"
placeholder="Enter your name"
type="text"
name="name"
id="name"
/>
</div>
<div class="mb-4">
<label class="block text-white mb-1" for="email">Your Email</label>
<input
class="w-full px-4 py-2 bg-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-300 transition duration-300"
placeholder="Enter your email"
type="email"
name="email"
id="email"
/>
</div>
<div class="mb-4">
<label class="block text-white mb-1" for="message">Your Message</label>
<textarea
class="w-full px-4 py-2 bg-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-300 transition duration-300"
rows="4"
placeholder="Enter your message"
name="message"
id="message"
></textarea>
</div>
<button
class="w-full bg-yellow-300 text-gray-800 py-2 px-4 rounded-lg hover:bg-yellow-400 transition duration-300"
type="submit"
>
Send Message
</button>
</form>
</div>
</div>
</body>
</html>

@ -1,52 +0,0 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Contactez-moi</title>
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body>
<h1>Formulaire de Contact</h1>
<form action="process.php" method="GET">
<!-- Champ pour le nom (obligatoire) -->
<label for="name">Nom:</label>
<input type="text" id="name" name="name" required><br><br>
<!-- Champ pour l'adresse email (obligatoire) -->
<label for="email">Adresse de courriel:</label>
<input type="email" id="email" name="email" required><br><br>
<!-- Champ pour le numéro de téléphone (facultatif) -->
<label for="phone">Numéro de téléphone:</label>
<input type="tel" id="phone" name="phone"><br><br>
<!-- Liste déroulante pour le motif de contact -->
<label for="reason">Motif de contact:</label>
<select id="reason" name="reason">
<option value="information">Demande d'information</option>
<option value="support">Support technique</option>
<option value="feedback">Feedback</option>
<option value="other">Autre</option>
</select><br><br>
<!-- Champ pour le créneau horaire (jour + horaire) -->
<label for="schedule">Créneau horaire:</label>
<input type="datetime-local" id="schedule" name="schedule"><br><br>
<!-- Boutons radio pour indiquer si c'est la première demande -->
<label>Première demande ?</label><br>
<input type="radio" id="first_request_yes" name="first_request" value="yes">
<label for="first_request_yes">Oui</label>
<input type="radio" id="first_request_no" name="first_request" value="no">
<label for="first_request_no">Non</label><br><br>
<!-- Champ texte pour le message (obligatoire) -->
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea><br><br>
<!-- Boutons de soumission et de remise à zéro -->
<input type="submit" value="Envoyer">
<input type="reset" value="Réinitialiser">
</form>
</body>
</html>

@ -30,7 +30,12 @@
<li> <li>
<a href="form.php">Formulaire</a> <a href="form.php">Formulaire</a>
</li> </li>
<label class="switch">
<input type="checkbox" id="theme-switch">
<span class="slider"></span>
</label>
</ul> </ul>
</nav> </nav>
</head> </head>
<body> <body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -3,6 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="style.css"> <link type="text/css" rel="stylesheet" href="style.css">
<script src="effect.js" defer></script>
<title>Corentin</title> <title>Corentin</title>
<nav class="navbar"> <nav class="navbar">
<ul class="navbar-list"> <ul class="navbar-list">
@ -16,24 +17,120 @@
<li><a href="videos.html">Vidéos</a></li> <li><a href="videos.html">Vidéos</a></li>
</ul> </ul>
</li> </li>
<li><a href="form.php">Formulaire</a></li> <li><a href="form.html">Formulaire</a></li>
<label class="switch">
<input type="checkbox" id="theme-switch">
<span class="slider"></span>
</label>
</ul> </ul>
</nav> </nav>
</head> </head>
<body> <body>
<header> <header>
<h1>Caillot Corentin</h1> <h1>Caillot Corentin</h1>
</div> </div>
<img src="https://odin.iut.uca.fr/trombi/22303327.jpg" alt="profil"title="Corentin"/> <img id="profile" src="img/faced.jpg" alt="profil"title="Corentin" />
<div> <aside>
<aside> <ul class="example-2">
<ul> <li class="icon-content">
<li><a href="https://instagram.com/corentin.caillot54?igsh=MWoyZjM4amV1bXYwZA==">Instagram</a></li> <a
<li><a href="mailto:corentin.caillot03@gmail.com">Mail</a></li> href="https://www.linkedin.com/in/cnal-cocofoot-83254427a"
<li><a href="https://codefirst.iut.uca.fr/containers/corentincaillot-Portfolio/">Portfolio</a></li> target="_blank"
</ul> aria-label="LinkedIn"
</aside> data-social="linkedin"
>
<div class="filled"></div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-linkedin"
viewBox="0 0 16 16"
xml:space="preserve"
>
<path
d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"
fill="currentColor"
></path>
</svg>
</a>
<div class="tooltip">LinkedIn</div>
</li>
<li class="icon-content">
<a href="https://github.com/lennay03" aria-label="GitHub" data-social="github"target="_blank">
<div class="filled"></div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-github"
viewBox="0 0 16 16"
xml:space="preserve"
>
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"
fill="currentColor"
></path>
</svg>
</a>
<div class="tooltip">GitHub</div>
</li>
<li class="icon-content">
<a
href="https://www.instagram.com/corentin.caillot54"
target="_blank"
aria-label="Instagram"
data-social="instagram"
>
<div class="filled"></div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-instagram"
viewBox="0 0 16 16"
xml:space="preserve"
>
<path
d="M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334"
fill="currentColor"
></path>
</svg>
</a>
<div class="tooltip">Instagram</div>
</li>
<li class="icon-content">
<a href="https://youtube.com/" aria-label="Youtube" data-social="youtube"target="_blank">
<div class="filled"></div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-youtube"
viewBox="0 0 16 16"
xml:space="preserve"
>
<path
d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z"
fill="currentColor"
></path>
</svg>
</a>
<div class="tooltip">Youtube</div>
</li>
</ul>
</aside>
<div>
<section> <section>
<article> <article>
<h2>Qui suis-je ?</h2> <h2>Qui suis-je ?</h2>

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="style.css"> <link type="text/css" rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<script src="effect.js" defer></script>
<title>Corentin</title> <title>Corentin</title>
<nav class="navbar"> <nav class="navbar">
<ul class="navbar-list"> <ul class="navbar-list">
@ -19,6 +20,10 @@
</li> </li>
<li><a href="form.php">Formulaire</a></li> <li><a href="form.php">Formulaire</a></li>
</ul> </ul>
<label class="switch">
<input type="checkbox" id="theme-switch">
<span class="slider"></span>
</label>
</nav> </nav>
</head> </head>
<body id="planning"> <body id="planning">

@ -16,17 +16,30 @@ aside {
float: right; float: right;
width: 20%; width: 20%;
height: 400px; height: 400px;
border: 2px black solid;
} }
#profile {
border-radius : 50%;
overflow: hidden; /* Ensures content fits the circular shape */
width: 350px; /* Set a fixed width */
height: 350px; /* Set the height equal to the width */
object-fit: cover; /* Ensures the image scales correctly within the circle */
border: 3px solid #fff; /* Dark line around the profile */
}
table, td, th { table, td, th {
border: solid; border: solid;
border-collapse: collapse; border-collapse: collapse;
} }
body { body.dark-mode {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
background-color: #323438; background-color: #323438;
margin: 0; margin: 0;
@ -34,6 +47,188 @@ body {
color: #f1f1f1; color: #f1f1f1;
} }
/* Light Mode Styles */
body.light-mode {
background-color: #fcf0fa; /* Soft white background */
color: #333333; /* Dark gray text for better readability */
font-family: Arial, sans-serif;
}
/* Light mode headings */
body.light-mode h1,
body.light-mode h2:not(.exclude),
body.light-mode h3:not(.exclude) {
color: #222222; /* Slightly darker headings */
}
body.light-mode p {
color: #444444;
}
/* Light mode navbar */
body.light-mode .navbar {
background: linear-gradient(135deg, #e0eaff, #d1eaff); /* Light blue gradient */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
body.light-mode .navbar-list a {
color: #0056b3; /* Deep blue for links */
}
body.light-mode .navbar-list a:hover {
background-color: #f1f5ff; /* Pale blue hover */
color: #004080; /* Darker blue */
}
/* Dropdown content for light mode */
body.light-mode .dropdown-content {
background-color: #ffffff; /* Clean white */
border: 1px solid #dcdcdc; /* Subtle border */
}
body.light-mode .dropdown-content a {
color: #0056b3;
}
body.light-mode .dropdown-content a:hover {
background-color: #f1f5ff;
color: #004080;
}
/* Light mode for gallery */
body.light-mode .gallery a {
border-color: #e0e0e0;
}
body.light-mode .gallery a:hover {
border-color: #004080; /* Highlight border */
}
body.light-mode .gallery img {
border: 2px solid #e0eaff;
}
/* Light mode table */
body.light-mode table,
body.light-mode td,
body.light-mode th {
border: 1px solid #dcdcdc;
color: #333333;
background-color: #ffffff;
}
/* Light mode timeline */
body.light-mode .timeline::after {
background-color: #cccccc;
}
body.light-mode .container::after {
background-color: #ffffff;
border-color: #ffc107; /* Golden circles */
}
body.light-mode .content {
background-color: #ffffff;
color: #333333;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
/* Light mode switch styling */
body.light-mode .slider {
--background: #cce4ff; /* Light blue slider */
background-color: var(--background);
}
body.light-mode .slider:before {
box-shadow: inset 8px -4px 0px 0px #ffe066; /* Light yellow shadow */
background: var(--background);
}
body.light-mode input:checked + .slider {
background-color: #99d4ff; /* Slightly darker blue */
}
body.light-mode input:checked + .slider:before {
box-shadow: inset 15px -4px 0px 15px #ffc107; /* Golden shadow when active */
}
/* Footer Light mode */
body.light-mode footer {
background-color: #f1f1f1;
color: #333333;
border-top: 1px solid #dcdcdc;
text-align: center;
padding: 10px;
}
body.light-mode #profile {
border-radius: 50%;
/* Keeps the element circular */
overflow: hidden; /* Ensures content fits the circular shape */
width: 350px; /* Set a fixed width */
height: 350px; /* Set the height equal to the width */
object-fit: cover; /* Ensures the image scales correctly within the circle */
border: 3px solid #333333; /* Dark line around the profile */
}
body.light-mode .example-2 .icon-content a {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
border-radius: 50%;
color: #fff;
background-color: #444;
transition: all 0.3s ease-in-out;
}
/* Light Mode Contact Form */
body.light-mode .bg-gray-800 {
background-color: #f9f9f9; /* Light gray background */
color: #333333; /* Dark gray text */
}
body.light-mode .bg-gray-700 {
background-color: #e6e6e6; /* Light input fields */
}
body.light-mode .text-white {
color: #333333; /* Dark text for labels and headings */
}
body.light-mode .focus\:ring-yellow-300:focus {
--tw-ring-color: #ffd966; /* Light yellow focus ring */
}
body.light-mode .w-full.bg-yellow-300 {
background-color: #ffeb99; /* Lighter yellow button */
color: #444444; /* Darker text */
}
body.light-mode .w-full.bg-yellow-300:hover {
background-color: #ffdd66; /* Slightly darker hover effect */
}
body.light-mode .timeline::after {
background-color: #d1d1d1; /* Light gray vertical line */
}
body.light-mode .content{
background-color: #4444;
}
body.light-mode .left::before {
border-color: transparent transparent transparent #cccccc; /* Light gray for left triangle */
}
body.light-mode .right::before {
border-color: transparent #cccccc transparent transparent; /* Light gray for right triangle */
}
h1, h2:not(.exclude), h3:not(.exclude) { h1, h2:not(.exclude), h3:not(.exclude) {
color: #ffffff; color: #ffffff;
} }
@ -322,18 +517,7 @@ figcaption {
} }
/* The circles on the timeline */ /* The circles on the timeline */
.container::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -17px;
background-color: white;
border: 4px solid #FF9F55;
top: 15px;
border-radius: 50%;
z-index: 1;
}
/* Place the container to the left */ /* Place the container to the left */
.left { .left {
@ -430,4 +614,166 @@ figcaption {
#planning{ #planning{
font-family: 'Roboto', Arial, sans-serif; font-family: 'Roboto', Arial, sans-serif;
} }
/********************************************************************************/
/* Dark mode switch */
/* The switch - the box around the slider */
.switch {
font-size: 17px;
position: relative;
display: inline-block;
width: 3.5em;
height: 2em;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
--background: #28096b;
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--background);
transition: .5s;
border-radius: 30px;
}
.slider:before {
position: absolute;
content: "";
height: 1.4em;
width: 1.4em;
border-radius: 50%;
left: 10%;
bottom: 15%;
box-shadow: inset 8px -4px 0px 0px #fff000;
background: var(--background);
transition: .5s;
}
input:checked + .slider {
background-color: #522ba7;
}
input:checked + .slider:before {
transform: translateX(100%);
box-shadow: inset 15px -4px 0px 15px #fff000;
}
/*******************************************************************************/
/* Social networks icons */
ul {
list-style: none;
}
.example-2 {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.example-2 .icon-content {
margin: 0 10px;
position: relative;
padding: 0.5rem;
}
.example-2 .icon-content .tooltip {
position: absolute;
top: 100%;
right: 110%;
transform: translateY(200%);
color: #fff;
padding: 6px 10px;
border-radius: 5px;
opacity: 0;
visibility: hidden;
font-size: 14px;
transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
opacity: 1;
visibility: visible;
top: -50px;
}
.example-2 .icon-content a {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
border-radius: 50%;
color: #444;
background-color: #fff;
transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
position: relative;
z-index: 1;
width: 30px;
height: 30px;
}
.example-2 .icon-content a:hover {
color: white;
}
.example-2 .icon-content a .filled {
position: absolute;
top: auto;
bottom: 0;
left: 0;
width: 100%;
height: 0;
background-color: #000;
transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
height: 100%;
}
.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
background-color: #0274b3;
}
.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"] ~ .tooltip {
background-color: #24262a;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
background: linear-gradient(
45deg,
#405de6,
#5b51db,
#b33ab4,
#c135b4,
#e1306c,
#fd1f1f
);
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
background-color: #ff0000;
}

Loading…
Cancel
Save