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

Added linktree page #410

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
Binary file added images/code_social_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
531 changes: 350 additions & 181 deletions index.html

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions join_community.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
transition: background-color 0.3s ease;
}

.container {
background-color: #fff;
padding: 20px;
border-radius: 15px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
text-align: center;
width: 90%;
max-width: 400px;
transition: background-color 0.3s ease;
}

.profile-pic {
width: 100px; /* Set the desired width */
height: auto; /* Maintain aspect ratio */
max-width: 100%; /* Ensure it fits within the parent element */
max-height: 100%; /* Ensure it fits within the parent element */
object-fit: cover; /* This will help maintain the aspect ratio while covering the box */
}


h1 {
font-size: 24px;
color: #333;
transition: color 0.3s ease;
}

.bio {
font-size: 14px;
color: #666;
margin-bottom: 20px;
transition: color 0.3s ease;
}

.links .link-btn {
display: block;
background-color: #4CAF50;
color: white;
padding: 10px;
text-decoration: none;
border-radius: 5px;
margin: 10px 0;
font-size: 18px;
transition: background-color 0.3s ease;
}

.links .link-btn:hover {
background-color: #45a049;
}

.theme-btn {
margin-top: 20px;
padding: 10px;
background-color: #333;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}

.theme-btn:hover {
background-color: #555;
}

/* Dark mode styles */
.dark-mode {
background-color: #121212;
}

.dark-mode .container {
background-color: #1e1e1e;
}

.dark-mode h1 {
color: #f1f1f1;
}

.dark-mode .bio {
color: #aaa;
}

.dark-mode .link-btn {
background-color: #bb86fc;
}

.dark-mode .link-btn:hover {
background-color: #9d69e3;
}

.dark-mode .theme-btn {
background-color: #bb86fc;
}

.dark-mode .theme-btn:hover {
background-color: #9d69e3;
}
31 changes: 31 additions & 0 deletions join_community.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LinkTree</title>
<link rel="stylesheet" href="join_community.css">
</head>
<body>
<div class="container">
<div class="profile">
<img src="images/code_social_logo.png" alt="Profile" class="profile-pic">
<h1>Stay Connected</h1>

</div>

<div class="links">
<a href="https://whatsapp.com" class="link-btn" target="_blank">WhatsApp</a>
<a href="https://instagram.com" class="link-btn" target="_blank">Instagram</a>
<a href="https://discord.com" class="link-btn" target="_blank">Discord</a>
<a href="https://youtube.com" class="link-btn" target="_blank">Youtube</a>
<a href="https://reddit.com" class="link-btn" target="_blank">Reddit</a>

</div>

<button id="themeToggle" class="theme-btn">Switch to Dark Mode</button>
</div>

<script src="join_community.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions join_community.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// JavaScript to toggle between light and dark themes
const toggleThemeBtn = document.getElementById("themeToggle");

toggleThemeBtn.addEventListener("click", () => {
document.body.classList.toggle("dark-mode");

// Change the button text when toggling the theme
if (document.body.classList.contains("dark-mode")) {
toggleThemeBtn.textContent = "Switch to Light Mode";
} else {
toggleThemeBtn.textContent = "Switch to Dark Mode";
}
});
83 changes: 83 additions & 0 deletions learning.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,93 @@
hr{
margin-top: 50px;
}
.circle {
height: 24px;
width: 24px;
border-radius: 50%;
position: fixed;
background-color: black; /* Default color of circles */
pointer-events: none; /* Prevent interaction with circles */
z-index: 9999;
transition: transform 0.1s ease-out;
}
</style>
</head>

<body>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<script>
// Store the mouse coordinates
const coords = { x: 0, y: 0 };

// Select all circles (you can add more circles to HTML as needed)
const circles = document.querySelectorAll(".circle");

// Customize the colors for the circles (optional)
const colors = ["#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d", "#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d", "#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060", "#680060", "#60005f", "#48005f", "#3d005e"];

// Initialize circle positions
circles.forEach((circle, index) => {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length]; // Assign colors
});

// Update mouse coordinates on move
window.addEventListener("mousemove", (e) => {
coords.x = e.clientX;
coords.y = e.clientY;
});

// Animation loop for circles
function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach((circle, index) => {
circle.style.left = `${x - 12}px`; // Offset for center alignment
circle.style.top = `${y - 12}px`;

circle.style.transform = `scale(${(circles.length - index) / circles.length})`; // Shrink effect

circle.x = x;
circle.y = y;

const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});

requestAnimationFrame(animateCircles);
}

// Start animation
animateCircles();

</script>
<!-- Navbar Section -->
<nav class="navbar">
<a href="index.html" class="flex"
Expand Down
84 changes: 84 additions & 0 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,94 @@
font-size: 14px;
}
}

.circle {
height: 24px;
width: 24px;
border-radius: 50%;
position: fixed;
background-color: black; /* Default color of circles */
pointer-events: none; /* Prevent interaction with circles */
z-index: 9999;
transition: transform 0.1s ease-out;
}
</style>
</head>

<body>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<script>
// Store the mouse coordinates
const coords = { x: 0, y: 0 };

// Select all circles (you can add more circles to HTML as needed)
const circles = document.querySelectorAll(".circle");

// Customize the colors for the circles (optional)
const colors = ["#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d", "#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d", "#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060", "#680060", "#60005f", "#48005f", "#3d005e"];

// Initialize circle positions
circles.forEach((circle, index) => {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length]; // Assign colors
});

// Update mouse coordinates on move
window.addEventListener("mousemove", (e) => {
coords.x = e.clientX;
coords.y = e.clientY;
});

// Animation loop for circles
function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach((circle, index) => {
circle.style.left = `${x - 12}px`; // Offset for center alignment
circle.style.top = `${y - 12}px`;

circle.style.transform = `scale(${(circles.length - index) / circles.length})`; // Shrink effect

circle.x = x;
circle.y = y;

const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});

requestAnimationFrame(animateCircles);
}

// Start animation
animateCircles();

</script>
<div class="login-container">
<h2>Login</h2>
<form id="loginForm">
Expand Down
Loading