From 389846330a2903bbaa7797288ac9f7a89a7b8b6d Mon Sep 17 00:00:00 2001 From: Gokalp Sen Date: Wed, 4 Dec 2024 22:20:26 +0300 Subject: [PATCH] Push --- css/style.css | 368 ++++++++++++++++++++++++++++++ index.html | 79 +++++++ js/main.js | 115 ++++++++++ projects_display.json | 18 ++ www.gsdistance.org.code-workspace | 8 + 5 files changed, 588 insertions(+) create mode 100644 css/style.css create mode 100644 index.html create mode 100644 js/main.js create mode 100644 projects_display.json create mode 100644 www.gsdistance.org.code-workspace diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..cc7bc42 --- /dev/null +++ b/css/style.css @@ -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; + } +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..836fdae --- /dev/null +++ b/index.html @@ -0,0 +1,79 @@ + + + + + + GsDistance + + + + +
+ +
+

Welcome to GsDistance

+

Modern problems, require ancient solutions

+
+
+ +
+
+

About Us

+
+

GsDistance is a sofware devolopment organization which does not know what they are doing, but... uhh i think i will just stop talking.

+
+
+ +
+

Our Services

+
+
+ +

Cheese

+

I forgot it outside

+
+
+ +

Fully open source

+

Check out our github

+
+
+
+ +
+

Featured Projects

+
+ +
+
+
+ + + + + + diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..71dcf8f --- /dev/null +++ b/js/main.js @@ -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 => ` +
+
+ ${project.name} + ${project.date} +
+

${project.description}

+ +
+ `).join(''); + } catch (error) { + console.error('Error loading projects:', error); + document.getElementById('projectsContainer').innerHTML = ` +

Failed to load projects. Please try again later.

+ `; + } + } + + // 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); + }); +}); diff --git a/projects_display.json b/projects_display.json new file mode 100644 index 0000000..ec5e495 --- /dev/null +++ b/projects_display.json @@ -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" + } + ] +} diff --git a/www.gsdistance.org.code-workspace b/www.gsdistance.org.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/www.gsdistance.org.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file