From 8af2ce694164789486452dfc6faeb36d6f147040 Mon Sep 17 00:00:00 2001 From: Matiss Jurevics Date: Mon, 15 Dec 2025 23:59:05 +0000 Subject: [PATCH] style: Refactor global CSS by deleting `styles/index.css`, updating import paths, and modifying `index.css` styles. --- src/App.jsx | 2 +- src/index.css | 26 +++++++++++++++------ src/main.jsx | 2 +- src/styles/index.css | 54 -------------------------------------------- 4 files changed, 21 insertions(+), 63 deletions(-) delete mode 100644 src/styles/index.css diff --git a/src/App.jsx b/src/App.jsx index 2c2d17c..c589b07 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -4,7 +4,7 @@ import HeroModel from './canvas/HeroModel'; import ProductGrid from './components/ProductGrid'; import InfoTabs from './components/InfoTabs'; import Footer from './components/Footer'; -import './styles/index.css'; +import './index.css'; import gsap from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import Lenis from '@studio-freight/lenis' diff --git a/src/index.css b/src/index.css index a69b090..accb784 100644 --- a/src/index.css +++ b/src/index.css @@ -25,8 +25,6 @@ a:hover { body { margin: 0; - display: flex; - place-items: center; min-width: 320px; min-height: 100vh; } @@ -40,11 +38,9 @@ h1 { .footer-input { background: transparent; border: none; - border-bottom: 1px solid #333; color: #fff; - padding: 15px 0; - font-size: 1.2rem; - font-family: inherit; + padding: 5px 0; + font-size: 0.9rem; flex: 1; outline: none; transition: all 0.3s ease; @@ -56,7 +52,6 @@ h1 { .footer-input::placeholder { color: #666; - font-size: 1.1rem; transition: color 0.3s ease; } @@ -64,6 +59,23 @@ h1 { color: #888; } +/* Footer Links */ +footer ul { + list-style: none; + padding: 0; + margin: 0; +} + +footer a { + color: #888; + text-decoration: none; + transition: color 0.3s ease; +} + +footer a:hover { + color: #ff4d00; +} + button { border-radius: 8px; border: 1px solid transparent; diff --git a/src/main.jsx b/src/main.jsx index c7dd74d..299bc52 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,7 +1,7 @@ import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' -import './styles/index.css' +import './index.css' ReactDOM.createRoot(document.getElementById('root')).render( diff --git a/src/styles/index.css b/src/styles/index.css deleted file mode 100644 index 8c590fa..0000000 --- a/src/styles/index.css +++ /dev/null @@ -1,54 +0,0 @@ -@import './variables.css'; - -* { - box-sizing: border-box; - margin: 0; - padding: 0; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -body { - background-color: var(--bg-color); - color: var(--text-main); - font-family: var(--font-main); - font-size: 14px; - line-height: 1.5; - overflow-x: hidden; - /* Hide scrollbar potentially */ -} - -a { - color: inherit; - text-decoration: none; -} - -ul { - list-style: none; -} - -/* Utilities */ -.uppercase { - text-transform: uppercase; - letter-spacing: 0.05em; -} - -.mono { - font-family: monospace; -} - -canvas { - touch-action: none; -} - -/* Utility to hide scrollbar */ -.hide-scrollbar { - -ms-overflow-style: none !important; - /* IE and Edge */ - scrollbar-width: none !important; - /* Firefox */ -} - -.hide-scrollbar::-webkit-scrollbar { - display: none !important; -} \ No newline at end of file