Push
This commit is contained in:
commit
389846330a
5 changed files with 588 additions and 0 deletions
368
css/style.css
Normal file
368
css/style.css
Normal file
|
|
@ -0,0 +1,368 @@
|
|||
:root {
|
||||
--primary-color: #bb86fc;
|
||||
--background-dark: #121212;
|
||||
--background-light: #ffffff;
|
||||
--text-dark: #e0e0e0;
|
||||
--text-light: #121212;
|
||||
--card-dark: #1f1b24;
|
||||
--card-light: #f5f5f5;
|
||||
}
|
||||
|
||||
/* General Reset */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
background-color: var(--background-dark);
|
||||
color: var(--text-dark);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: background-color 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
/* Light theme */
|
||||
body.light-theme {
|
||||
background-color: var(--background-light);
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
.navbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 2rem;
|
||||
background: rgba(18, 18, 18, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
z-index: 1000;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.light-theme .navbar {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
color: var(--text-dark);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.light-theme .nav-links a {
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
/* Theme Toggle Button */
|
||||
.theme-toggle {
|
||||
background: var(--card-dark);
|
||||
border: 2px solid var(--primary-color);
|
||||
color: var(--primary-color);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
|
||||
}
|
||||
|
||||
.light-theme .theme-toggle {
|
||||
background: var(--card-light);
|
||||
}
|
||||
|
||||
.theme-toggle:hover {
|
||||
transform: rotate(360deg);
|
||||
background: var(--primary-color);
|
||||
color: var(--background-dark);
|
||||
box-shadow: 0 0 20px rgba(187, 134, 252, 0.4);
|
||||
}
|
||||
|
||||
.theme-toggle i {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero {
|
||||
text-align: center;
|
||||
padding: 8rem 1rem 4rem;
|
||||
background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
|
||||
}
|
||||
|
||||
.light-theme .hero {
|
||||
background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 3rem;
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.hero .subtitle {
|
||||
font-size: 1.2rem;
|
||||
opacity: 0.8;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
padding: 1rem 2rem;
|
||||
background-color: var(--primary-color);
|
||||
color: var(--background-dark);
|
||||
text-decoration: none;
|
||||
border-radius: 25px;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3);
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
.section {
|
||||
padding: 4rem 2rem;
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
transition: opacity 0.6s ease, transform 0.6s ease;
|
||||
}
|
||||
|
||||
.section.animate-in {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.section h2 {
|
||||
text-align: center;
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* Services Grid */
|
||||
.services-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 2rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.service-card {
|
||||
background: var(--card-dark);
|
||||
padding: 2rem;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.light-theme .service-card {
|
||||
background: var(--card-light);
|
||||
}
|
||||
|
||||
.service-card:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.service-card i {
|
||||
font-size: 2.5rem;
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* Project Grid */
|
||||
.project-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.project-card {
|
||||
background: var(--card-dark);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
padding: 1.5rem;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
border: 1px solid rgba(187, 134, 252, 0.1);
|
||||
}
|
||||
|
||||
.light-theme .project-card {
|
||||
background: var(--card-light);
|
||||
}
|
||||
|
||||
.project-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 16px rgba(187, 134, 252, 0.2);
|
||||
}
|
||||
|
||||
.project-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.project-name {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.project-date {
|
||||
font-size: 0.9rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.project-description {
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.6;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.project-links {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.project-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-size: 0.9rem;
|
||||
transition: opacity 0.3s ease;
|
||||
padding: 0.5rem 1rem;
|
||||
border: 1px solid var(--primary-color);
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.project-link:hover {
|
||||
opacity: 0.8;
|
||||
background: rgba(187, 134, 252, 0.1);
|
||||
}
|
||||
|
||||
.project-link i {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
background: var(--card-dark);
|
||||
padding: 2rem;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.light-theme footer {
|
||||
background: var(--card-light);
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: var(--text-dark);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.light-theme .footer-links a {
|
||||
color: var(--text-light);
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.social-links {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.social-links a {
|
||||
color: var(--primary-color);
|
||||
font-size: 1.5rem;
|
||||
margin: 0 0.5rem;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.social-links a:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.copyright {
|
||||
opacity: 0.7;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
.navbar {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.services-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.hero {
|
||||
padding: 6rem 1rem 3rem;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
79
index.html
Normal file
79
index.html
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>GsDistance</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="http://storage.gsdistance.org//store/icons/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar">
|
||||
<div class="logo">GsDistance</div>
|
||||
<div class="nav-links">
|
||||
<a href="#about">About</a>
|
||||
<a href="#services">Services</a>
|
||||
<a href="#projects">Projects</a>
|
||||
<button class="theme-toggle">
|
||||
<i class="fas fa-moon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="hero">
|
||||
<h1>Welcome to GsDistance</h1>
|
||||
<p class="subtitle">Modern problems, require ancient solutions</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section id="about" class="section">
|
||||
<h2>About Us</h2>
|
||||
<div class="content">
|
||||
<p>GsDistance is a sofware devolopment organization which does not know what they are doing, but... uhh i think i will just stop talking.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="services" class="section">
|
||||
<h2>Our Services</h2>
|
||||
<div class="services-grid">
|
||||
<div class="service-card">
|
||||
<i class="fas fa-code"></i>
|
||||
<h3>Cheese</h3>
|
||||
<p>I forgot it outside</p>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<i class="fab fa-github"></i>
|
||||
<h3>Fully open source</h3>
|
||||
<p>Check out our github</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="projects" class="section">
|
||||
<h2>Featured Projects</h2>
|
||||
<div class="project-grid" id="projectsContainer">
|
||||
<!-- Projects will be loaded dynamically -->
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="footer-content">
|
||||
<div class="footer-links">
|
||||
<a href="#about">About</a>
|
||||
<a href="#services">Services</a>
|
||||
<a href="#projects">Projects</a>
|
||||
</div>
|
||||
<div class="social-links">
|
||||
<a href="https://github.com/GsDistance" target="_blank"><i class="fab fa-github">GsD</i></a>
|
||||
<a href="https://github.com/tyuXX" target="_blank"><i class="fab fa-github">tyuXX</i></a>
|
||||
<!-- Add more social links as needed -->
|
||||
</div>
|
||||
<p class="copyright"> 2024 GsDistance. All rights reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
115
js/main.js
Normal file
115
js/main.js
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// Theme toggle functionality
|
||||
const themeToggle = document.querySelector('.theme-toggle');
|
||||
const body = document.body;
|
||||
|
||||
// Check for saved theme preference
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
if (savedTheme) {
|
||||
body.classList.toggle('light-theme', savedTheme === 'light');
|
||||
updateThemeIcon();
|
||||
}
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
body.classList.toggle('light-theme');
|
||||
updateThemeIcon();
|
||||
// Save theme preference
|
||||
localStorage.setItem('theme', body.classList.contains('light-theme') ? 'light' : 'dark');
|
||||
});
|
||||
|
||||
function updateThemeIcon() {
|
||||
const icon = themeToggle.querySelector('i');
|
||||
if (body.classList.contains('light-theme')) {
|
||||
icon.className = 'fas fa-moon';
|
||||
} else {
|
||||
icon.className = 'fas fa-sun';
|
||||
}
|
||||
}
|
||||
|
||||
// Smooth scrolling for navigation links
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
const target = document.querySelector(this.getAttribute('href'));
|
||||
if (target) {
|
||||
target.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Load and display projects
|
||||
async function loadProjects() {
|
||||
try {
|
||||
const response = await fetch('projects_display.json');
|
||||
const data = await response.json();
|
||||
const projectsContainer = document.getElementById('projectsContainer');
|
||||
|
||||
projectsContainer.innerHTML = data.projects.map(project => `
|
||||
<div class="project-card">
|
||||
<div class="project-header">
|
||||
<a href="${project.githubUrl}" class="project-name">${project.name}</a>
|
||||
<span class="project-date">${project.date}</span>
|
||||
</div>
|
||||
<p class="project-description">${project.description}</p>
|
||||
<div class="project-links">
|
||||
<a href="${project.githubUrl}" class="project-link" target="_blank">
|
||||
<i class="fab fa-github"></i>
|
||||
View on GitHub
|
||||
</a>
|
||||
${project.liveUrl ? `
|
||||
<a href="${project.liveUrl}" class="project-link" target="_blank">
|
||||
<i class="fas fa-external-link-alt"></i>
|
||||
Live
|
||||
</a>
|
||||
` : ''}
|
||||
</div>
|
||||
</div>
|
||||
`).join('');
|
||||
} catch (error) {
|
||||
console.error('Error loading projects:', error);
|
||||
document.getElementById('projectsContainer').innerHTML = `
|
||||
<p class="error-message">Failed to load projects. Please try again later.</p>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
// Load projects when the page loads
|
||||
loadProjects();
|
||||
|
||||
// Navbar scroll effect
|
||||
const navbar = document.querySelector('.navbar');
|
||||
let lastScroll = 0;
|
||||
|
||||
window.addEventListener('scroll', () => {
|
||||
const currentScroll = window.pageYOffset;
|
||||
|
||||
if (currentScroll > lastScroll && currentScroll > 100) {
|
||||
navbar.style.transform = 'translateY(-100%)';
|
||||
} else {
|
||||
navbar.style.transform = 'translateY(0)';
|
||||
}
|
||||
|
||||
lastScroll = currentScroll;
|
||||
});
|
||||
|
||||
// Add animation to elements when they come into view
|
||||
const observerOptions = {
|
||||
threshold: 0.1
|
||||
};
|
||||
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('animate-in');
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, observerOptions);
|
||||
|
||||
document.querySelectorAll('.section').forEach(section => {
|
||||
observer.observe(section);
|
||||
});
|
||||
});
|
||||
18
projects_display.json
Normal file
18
projects_display.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"projects": [
|
||||
{
|
||||
"name": "[tyuXX]",
|
||||
"description": "tyuXX's project page",
|
||||
"githubUrl": "https://github.com/tyuXX/tyuxx.gsdistance.org",
|
||||
"liveUrl": "https://tyuxx.gsdistance.org/",
|
||||
"date": "20/11/2024"
|
||||
},
|
||||
{
|
||||
"name": "GsDistance Permanent File Storage",
|
||||
"description": "Permanent file storage for GsDistance",
|
||||
"githubUrl": "https://github.com/GsDistance/storage",
|
||||
"liveUrl": "https://storage.gsdistance.org/",
|
||||
"date": "27/11/2023"
|
||||
}
|
||||
]
|
||||
}
|
||||
8
www.gsdistance.org.code-workspace
Normal file
8
www.gsdistance.org.code-workspace
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue