starrtree / index.html
mastarrmind's picture
Add 3 files
597cd50 verified
Raw History Blame Contribute Delete
15.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StarrTree - Rooted in Light</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Quicksand', sans-serif;
background: radial-gradient(circle at center, #0f0524 0%, #050014 100%);
overflow-x: hidden;
min-height: 100vh;
color: #f5f5f5;
}
.starseed {
width: 80px;
height: 80px;
background: radial-gradient(circle, #f9d71c 0%, #e8b10e 70%, #d49b04 100%);
border-radius: 50%;
box-shadow: 0 0 30px 10px rgba(248, 212, 52, 0.4);
position: relative;
animation: pulse 4s infinite ease-in-out;
z-index: 20;
}
.starseed::before {
content: '';
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
border-radius: 50%;
background: radial-gradient(circle, rgba(248, 212, 52, 0.6) 0%, transparent 70%);
z-index: -1;
animation: pulse 4s infinite ease-in-out 0.5s;
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
box-shadow: 0 0 30px 10px rgba(248, 212, 52, 0.4);
}
50% {
transform: scale(1.05);
box-shadow: 0 0 40px 15px rgba(248, 212, 52, 0.6);
}
}
.branch {
position: absolute;
height: 2px;
transform-origin: left center;
z-index: 1;
background: transparent;
overflow: visible;
}
.branch-path {
stroke-width: 2;
fill: none;
stroke-linecap: round;
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: draw 3s forwards;
}
@keyframes draw {
to {
stroke-dashoffset: 0;
}
}
.leaf {
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
cursor: pointer;
transition: all 0.3s ease;
position: absolute;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.1);
z-index: 10;
transform: translate(-50%, -50%);
}
.leaf:hover {
transform: translate(-50%, -50%) scale(1.2);
background: rgba(255, 255, 255, 0.15);
}
.leaf::after {
content: '';
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
border-radius: 50%;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}
.leaf:hover::after {
opacity: 0.8;
}
/* Unique highlight colors for each leaf */
.leaf.music:hover {
box-shadow: 0 0 20px 5px rgba(75, 192, 192, 0.6);
}
.leaf.music::after {
background: rgba(75, 192, 192, 0.3);
}
.leaf.ai:hover {
box-shadow: 0 0 20px 5px rgba(255, 99, 132, 0.6);
}
.leaf.ai::after {
background: rgba(255, 99, 132, 0.3);
}
.leaf.design:hover {
box-shadow: 0 0 20px 5px rgba(54, 162, 235, 0.6);
}
.leaf.design::after {
background: rgba(54, 162, 235, 0.3);
}
.leaf.engineering:hover {
box-shadow: 0 0 20px 5px rgba(153, 102, 255, 0.6);
}
.leaf.engineering::after {
background: rgba(153, 102, 255, 0.3);
}
.particle {
position: absolute;
background: radial-gradient(circle, rgba(248, 212, 52, 0.8) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
z-index: 0;
opacity: 0.6;
animation: float linear infinite;
}
@keyframes float {
0% {
transform: translateY(0) rotate(0deg);
opacity: 0;
}
10% {
opacity: 0.6;
}
90% {
opacity: 0.6;
}
100% {
transform: translateY(-100vh) rotate(360deg);
opacity: 0;
}
}
.tagline {
text-shadow: 0 0 10px rgba(248, 212, 52, 0.5);
letter-spacing: 2px;
font-weight: 300;
}
.container {
position: relative;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.branches-container {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.leaves-container {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.tooltip {
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.7);
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.leaf:hover .tooltip {
opacity: 1;
}
@media (max-width: 768px) {
.starseed {
width: 60px;
height: 60px;
}
.leaf {
width: 50px;
height: 50px;
font-size: 20px;
}
}
</style>
</head>
<body>
<div class="container">
<!-- Floating particles -->
<div id="particles"></div>
<!-- Branches container -->
<div id="branches-container" class="branches-container"></div>
<!-- Leaves container -->
<div id="leaves-container" class="leaves-container"></div>
<!-- Main content -->
<div class="relative z-30 flex flex-col items-center justify-center">
<div id="starseed" class="starseed mb-8"></div>
<h1 class="text-4xl font-light mb-2 tracking-wider">STARRTREE</h1>
<p class="tagline text-xl mb-12">Rooted in Light</p>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Create particles
createParticles();
// Create branches and leaves
createBranchesAndLeaves();
// Animate particles continuously
setInterval(createParticles, 1000);
// Handle window resize
window.addEventListener('resize', function() {
// Clear existing branches and leaves
document.getElementById('branches-container').innerHTML = '';
document.getElementById('leaves-container').innerHTML = '';
// Recreate them
createBranchesAndLeaves();
});
});
function createParticles() {
const particlesContainer = document.getElementById('particles');
const particleCount = 10;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
// Random properties
const size = Math.random() * 10 + 5;
const posX = Math.random() * window.innerWidth;
const duration = Math.random() * 15 + 10;
const delay = Math.random() * 5;
particle.style.width = `${size}px`;
particle.style.height = `${size}px`;
particle.style.left = `${posX}px`;
particle.style.top = `${window.innerHeight + size}px`;
particle.style.animationDuration = `${duration}s`;
particle.style.animationDelay = `${delay}s`;
particlesContainer.appendChild(particle);
// Remove particle after animation completes
setTimeout(() => {
particle.remove();
}, (duration + delay) * 1000);
}
}
function createBranchesAndLeaves() {
const branchesContainer = document.getElementById('branches-container');
const leavesContainer = document.getElementById('leaves-container');
const starseed = document.getElementById('starseed');
// Get starseed position and dimensions
const starseedRect = starseed.getBoundingClientRect();
const starseedCenterX = starseedRect.left + starseedRect.width / 2;
const starseedCenterY = starseedRect.top + starseedRect.height / 2;
// Calculate responsive distance based on viewport
const baseDistance = Math.min(window.innerWidth, window.innerHeight) * 0.3;
// Leaf data
const leaves = [
{
icon: 'fa-music',
angle: 45,
distance: baseDistance,
label: 'Music',
class: 'music',
branchColor: 'rgba(75, 192, 192, 0.7)',
link: '#music'
},
{
icon: 'fa-robot',
angle: 135,
distance: baseDistance,
label: 'AI Work',
class: 'ai',
branchColor: 'rgba(255, 99, 132, 0.7)',
link: '#ai'
},
{
icon: 'fa-paint-brush',
angle: 225,
distance: baseDistance,
label: 'Design & Film',
class: 'design',
branchColor: 'rgba(54, 162, 235, 0.7)',
link: '#design'
},
{
icon: 'fa-rocket',
angle: 315,
distance: baseDistance,
label: 'Engineering',
class: 'engineering',
branchColor: 'rgba(153, 102, 255, 0.7)',
link: '#engineering'
}
];
leaves.forEach(leaf => {
// Calculate leaf position
const angleRad = (leaf.angle * Math.PI) / 180;
const leafX = starseedCenterX + Math.cos(angleRad) * leaf.distance;
const leafY = starseedCenterY + Math.sin(angleRad) * leaf.distance;
// Create curved branch
const branch = document.createElement('div');
branch.classList.add('branch');
branch.style.left = '0';
branch.style.top = '0';
branch.style.width = '100%';
branch.style.height = '100%';
// Create SVG path for the curved branch
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('width', '100%');
svg.setAttribute('height', '100%');
svg.style.position = 'absolute';
svg.style.overflow = 'visible';
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
path.classList.add('branch-path');
// Create a curved path (quadratic bezier)
const controlX = starseedCenterX + Math.cos(angleRad) * (leaf.distance/2) + (Math.random() * 40 - 20);
const controlY = starseedCenterY + Math.sin(angleRad) * (leaf.distance/2) + (Math.random() * 40 - 20);
const pathData = `M ${starseedCenterX} ${starseedCenterY} Q ${controlX} ${controlY}, ${leafX} ${leafY}`;
path.setAttribute('d', pathData);
path.setAttribute('stroke', leaf.branchColor);
svg.appendChild(path);
branch.appendChild(svg);
branchesContainer.appendChild(branch);
// Create leaf
const leafElement = document.createElement('a');
leafElement.href = leaf.link;
leafElement.classList.add('leaf', leaf.class);
leafElement.style.left = `${leafX}px`;
leafElement.style.top = `${leafY}px`;
const icon = document.createElement('i');
icon.classList.add('fas', leaf.icon);
leafElement.appendChild(icon);
// Add tooltip
const tooltip = document.createElement('div');
tooltip.classList.add('tooltip');
tooltip.textContent = leaf.label;
leafElement.appendChild(tooltip);
leavesContainer.appendChild(leafElement);
});
}
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=mastarrmind/starrtree" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>