Spaces:
Running

deep-space / index.html
Gaubee's picture
Add 2 files
dead689 verified
Raw History Blame Contribute Delete
25 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Personal Site</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>
/* Custom styles that can't be done with Tailwind */
.timeline-item::before {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 100%;
background-color: #e5e7eb;
z-index: 1;
}
.fade-text {
position: relative;
}
.fade-text::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.active-tab {
border-bottom: 3px solid #3b82f6;
color: #3b82f6;
}
@media (max-width: 768px) {
.timeline-item::before {
left: 24px;
}
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="container mx-auto px-4 py-8 max-w-4xl">
<!-- Header -->
<header class="mb-12 text-center">
<h1 class="text-4xl font-bold text-gray-800 mb-2">My Personal Space</h1>
<p class="text-gray-600">Thoughts, projects, and random things</p>
</header>
<!-- Navigation -->
<nav class="mb-12 border-b border-gray-200">
<div class="flex justify-center space-x-8">
<button id="timeline-tab" class="py-2 px-4 font-medium active-tab">Timeline</button>
<button id="projects-tab" class="py-2 px-4 font-medium text-gray-500 hover:text-gray-800">My Projects</button>
<button id="tools-tab" class="py-2 px-4 font-medium text-gray-500 hover:text-gray-800">Tools</button>
</div>
</nav>
<!-- Main Content -->
<main>
<!-- Timeline Section (default visible) -->
<section id="timeline-section" class="space-y-8">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Recent Activity</h2>
<!-- Timeline items -->
<div class="space-y-8">
<!-- Micro-post example -->
<div class="timeline-item relative pl-16 md:pl-0">
<div class="flex flex-col md:flex-row">
<div class="hidden md:block md:w-1/2 pr-8 text-right">
<span class="text-sm text-gray-500">2 hours ago</span>
</div>
<div class="md:w-1/2 md:pl-8">
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 relative">
<div class="absolute -left-14 md:-left-7 top-6 w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center z-10">
<i class="fas fa-comment text-blue-500"></i>
</div>
<div class="md:hidden text-sm text-gray-500 mb-2">2 hours ago</div>
<p class="text-gray-800">Just finished reading "Atomic Habits". Highly recommend for anyone looking to build better habits and break bad ones.</p>
<div class="mt-4 flex space-x-4 text-sm text-gray-500">
<span><i class="far fa-heart"></i> 12</span>
<span><i class="far fa-comment"></i> 3</span>
</div>
</div>
</div>
</div>
</div>
<!-- Article example -->
<div class="timeline-item relative pl-16 md:pl-0">
<div class="flex flex-col md:flex-row">
<div class="hidden md:block md:w-1/2 pr-8 text-right">
<span class="text-sm text-gray-500">Yesterday</span>
</div>
<div class="md:w-1/2 md:pl-8">
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 relative">
<div class="absolute -left-14 md:-left-7 top-6 w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center z-10">
<i class="fas fa-pen-fancy text-purple-500"></i>
</div>
<div class="md:hidden text-sm text-gray-500 mb-2">Yesterday</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">Understanding React Hooks</h3>
<div class="fade-text max-h-40 overflow-hidden relative">
<p class="text-gray-600 mb-4">React Hooks have revolutionized how we write React components. They allow you to use state and other React features without writing a class...</p>
<p class="text-gray-600">In this article, we'll explore useState, useEffect, and useContext hooks with practical examples that you can apply in your projects immediately.</p>
</div>
<button class="mt-2 text-blue-500 text-sm font-medium">Read more...</button>
<div class="mt-4 flex space-x-4 text-sm text-gray-500">
<span><i class="far fa-heart"></i> 28</span>
<span><i class="far fa-comment"></i> 7</span>
<span><i class="far fa-bookmark"></i> Save</span>
</div>
</div>
</div>
</div>
</div>
<!-- Micro-post example -->
<div class="timeline-item relative pl-16 md:pl-0">
<div class="flex flex-col md:flex-row">
<div class="hidden md:block md:w-1/2 pr-8 text-right">
<span class="text-sm text-gray-500">2 days ago</span>
</div>
<div class="md:w-1/2 md:pl-8">
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 relative">
<div class="absolute -left-14 md:-left-7 top-6 w-10 h-10 rounded-full bg-green-100 flex items-center justify-center z-10">
<i class="fas fa-code text-green-500"></i>
</div>
<div class="md:hidden text-sm text-gray-500 mb-2">2 days ago</div>
<p class="text-gray-800">Just published a new open-source library for form validation. Check it out on GitHub!</p>
<div class="mt-4 flex space-x-4 text-sm text-gray-500">
<span><i class="far fa-heart"></i> 34</span>
<span><i class="far fa-comment"></i> 5</span>
</div>
</div>
</div>
</div>
</div>
<!-- Article example -->
<div class="timeline-item relative pl-16 md:pl-0">
<div class="flex flex-col md:flex-row">
<div class="hidden md:block md:w-1/2 pr-8 text-right">
<span class="text-sm text-gray-500">1 week ago</span>
</div>
<div class="md:w-1/2 md:pl-8">
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 relative">
<div class="absolute -left-14 md:-left-7 top-6 w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center z-10">
<i class="fas fa-pen-fancy text-purple-500"></i>
</div>
<div class="md:hidden text-sm text-gray-500 mb-2">1 week ago</div>
<h3 class="text-xl font-semibold text-gray-800 mb-2">CSS Grid vs Flexbox</h3>
<div class="fade-text max-h-40 overflow-hidden relative">
<p class="text-gray-600 mb-4">When it comes to modern CSS layout techniques, both Grid and Flexbox are powerful tools, but they serve different purposes...</p>
<p class="text-gray-600">Flexbox is designed for one-dimensional layouts (either a row or a column), while CSS Grid is designed for two-dimensional layouts (rows and columns at the same time).</p>
<p class="text-gray-600">In this comprehensive guide, we'll compare both layout systems and help you decide when to use each one.</p>
</div>
<button class="mt-2 text-blue-500 text-sm font-medium">Read more...</button>
<div class="mt-4 flex space-x-4 text-sm text-gray-500">
<span><i class="far fa-heart"></i> 42</span>
<span><i class="far fa-comment"></i> 11</span>
<span><i class="far fa-bookmark"></i> Save</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="text-center mt-8">
<button class="px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 transition">Load More</button>
</div>
</section>
<!-- Projects Section (hidden by default) -->
<section id="projects-section" class="hidden">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">My Projects</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Project card 1 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
<i class="fab fa-js text-blue-500 text-xl"></i>
</div>
<div>
<h3 class="font-semibold text-gray-800">Form Validation Library</h3>
<p class="text-sm text-gray-500">JavaScript</p>
</div>
</div>
<p class="text-gray-600 mb-4">A lightweight form validation library with zero dependencies. Supports custom validation rules and async validation.</p>
<div class="flex justify-between items-center text-sm">
<div class="flex space-x-2">
<span class="text-gray-500"><i class="fas fa-star"></i> 128</span>
<span class="text-gray-500"><i class="fas fa-code-branch"></i> 14</span>
</div>
<a href="#" class="text-blue-500 hover:underline">View on GitHub</a>
</div>
</div>
<!-- Project card 2 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-4">
<i class="fab fa-react text-green-500 text-xl"></i>
</div>
<div>
<h3 class="font-semibold text-gray-800">Task Management App</h3>
<p class="text-sm text-gray-500">React, Firebase</p>
</div>
</div>
<p class="text-gray-600 mb-4">A full-featured task management application with real-time updates, drag-and-drop functionality, and team collaboration.</p>
<div class="flex justify-between items-center text-sm">
<div class="flex space-x-2">
<span class="text-gray-500"><i class="fas fa-star"></i> 86</span>
<span class="text-gray-500"><i class="fas fa-code-branch"></i> 7</span>
</div>
<a href="#" class="text-blue-500 hover:underline">View on GitHub</a>
</div>
</div>
<!-- Project card 3 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
<i class="fab fa-node-js text-purple-500 text-xl"></i>
</div>
<div>
<h3 class="font-semibold text-gray-800">REST API Boilerplate</h3>
<p class="text-sm text-gray-500">Node.js, Express</p>
</div>
</div>
<p class="text-gray-600 mb-4">A production-ready REST API boilerplate with JWT authentication, rate limiting, and comprehensive documentation.</p>
<div class="flex justify-between items-center text-sm">
<div class="flex space-x-2">
<span class="text-gray-500"><i class="fas fa-star"></i> 156</span>
<span class="text-gray-500"><i class="fas fa-code-branch"></i> 23</span>
</div>
<a href="#" class="text-blue-500 hover:underline">View on GitHub</a>
</div>
</div>
<!-- Project card 4 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center mr-4">
<i class="fas fa-mobile-alt text-yellow-500 text-xl"></i>
</div>
<div>
<h3 class="font-semibold text-gray-800">Weather App</h3>
<p class="text-sm text-gray-500">React Native</p>
</div>
</div>
<p class="text-gray-600 mb-4">A beautiful weather application with 5-day forecasts, location detection, and animated weather icons.</p>
<div class="flex justify-between items-center text-sm">
<div class="flex space-x-2">
<span class="text-gray-500"><i class="fas fa-star"></i> 72</span>
<span class="text-gray-500"><i class="fas fa-code-branch"></i> 9</span>
</div>
<a href="#" class="text-blue-500 hover:underline">View on GitHub</a>
</div>
</div>
</div>
<div class="text-center mt-8">
<button class="px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 transition">Load More Projects</button>
</div>
</section>
<!-- Tools Section (hidden by default) -->
<section id="tools-section" class="hidden">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">My Tools</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Tool card 1 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mr-4">
<i class="fas fa-ruler-combined text-red-500 text-xl"></i>
</div>
<h3 class="font-semibold text-gray-800">CSS Unit Converter</h3>
</div>
<p class="text-gray-600 mb-4">Convert between px, rem, em, and other CSS units with this handy tool. Perfect for responsive design work.</p>
<button class="text-blue-500 hover:underline">Try it out →</button>
</div>
<!-- Tool card 2 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-4">
<i class="fas fa-palette text-green-500 text-xl"></i>
</div>
<h3 class="font-semibold text-gray-800">Color Palette Generator</h3>
</div>
<p class="text-gray-600 mb-4">Generate beautiful color palettes for your projects. Export as CSS variables, SCSS, or Tailwind config.</p>
<button class="text-blue-500 hover:underline">Try it out →</button>
</div>
<!-- Tool card 3 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
<i class="fas fa-code text-purple-500 text-xl"></i>
</div>
<h3 class="font-semibold text-gray-800">JSON Formatter</h3>
</div>
<p class="text-gray-600 mb-4">Paste your minified JSON and get a beautifully formatted version with syntax highlighting.</p>
<button class="text-blue-500 hover:underline">Try it out →</button>
</div>
<!-- Tool card 4 -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
<i class="fas fa-clock text-blue-500 text-xl"></i>
</div>
<h3 class="font-semibold text-gray-800">Time Zone Converter</h3>
</div>
<p class="text-gray-600 mb-4">Convert times between different time zones. Perfect for scheduling meetings with international teams.</p>
<button class="text-blue-500 hover:underline">Try it out →</button>
</div>
</div>
<div class="mt-8 bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<h3 class="font-semibold text-gray-800 mb-2">More Tools Coming Soon!</h3>
<p class="text-gray-600">I'm constantly building new tools to make development easier. Have an idea for a tool? <a href="#" class="text-blue-500 hover:underline">Let me know</a>!</p>
</div>
</section>
</main>
<!-- Footer -->
<footer class="mt-16 pt-8 border-t border-gray-200 text-center text-gray-500 text-sm">
<p>© 2023 My Personal Site. All rights reserved.</p>
<div class="mt-4 flex justify-center space-x-4">
<a href="#" class="hover:text-gray-800"><i class="fab fa-github"></i></a>
<a href="#" class="hover:text-gray-800"><i class="fab fa-twitter"></i></a>
<a href="#" class="hover:text-gray-800"><i class="fab fa-linkedin"></i></a>
<a href="#" class="hover:text-gray-800"><i class="fas fa-envelope"></i></a>
</div>
</footer>
</div>
<script>
// Tab switching functionality
document.getElementById('timeline-tab').addEventListener('click', function() {
showSection('timeline');
});
document.getElementById('projects-tab').addEventListener('click', function() {
showSection('projects');
});
document.getElementById('tools-tab').addEventListener('click', function() {
showSection('tools');
});
function showSection(section) {
// Hide all sections
document.getElementById('timeline-section').classList.add('hidden');
document.getElementById('projects-section').classList.add('hidden');
document.getElementById('tools-section').classList.add('hidden');
// Remove active class from all tabs
document.getElementById('timeline-tab').classList.remove('active-tab');
document.getElementById('projects-tab').classList.remove('active-tab');
document.getElementById('tools-tab').classList.remove('active-tab');
// Show selected section and mark tab as active
document.getElementById(`${section}-section`).classList.remove('hidden');
document.getElementById(`${section}-tab`).classList.add('active-tab');
document.getElementById(`${section}-tab`).classList.remove('text-gray-500');
document.getElementById(`${section}-tab`).classList.add('text-gray-800');
// Reset other tabs' text color
if (section !== 'timeline') {
document.getElementById('timeline-tab').classList.add('text-gray-500');
document.getElementById('timeline-tab').classList.remove('text-gray-800');
}
if (section !== 'projects') {
document.getElementById('projects-tab').classList.add('text-gray-500');
document.getElementById('projects-tab').classList.remove('text-gray-800');
}
if (section !== 'tools') {
document.getElementById('tools-tab').classList.add('text-gray-500');
document.getElementById('tools-tab').classList.remove('text-gray-800');
}
}
</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=Gaubee/deep-space" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
</html>