Skip to content

Commit 1820c00

Browse files
committed
Enhance styling and color scheme for improved UI consistency and responsiveness
1 parent dd4f131 commit 1820c00

4 files changed

Lines changed: 31 additions & 13 deletions

File tree

src/App.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Navbar() {
2424
<ul className="flex gap-4">
2525
{navItems.map((item) => (
2626
<li key={item.href}>
27-
<a href={item.href} className="text-gray-200 hover:text-blue-400 transition-colors px-2 py-1 rounded focus:outline-none focus:ring-2 focus:ring-blue-400">
27+
<a href={item.href} className="text-accent hover:text-primary transition-colors px-2 py-1 rounded focus:outline-none focus:ring-2 focus:ring-primary">
2828
{item.label}
2929
</a>
3030
</li>
@@ -229,28 +229,28 @@ function ClubsSection() {
229229

230230
function App() {
231231
return (
232-
<div className="min-h-screen text-white snap-y snap-mandatory overflow-y-scroll h-screen">
232+
<div className="min-h-screen bg-gradient-to-b from-dark via-blackish to-blackish text-accent snap-y snap-mandatory overflow-y-scroll h-screen">
233233
<WebGLBackground />
234234

235235
{/* Hero Section */}
236236
<header className="min-h-screen flex items-center justify-center relative overflow-hidden snap-start">
237237
<div className="container mx-auto px-4 py-16 relative z-10">
238238
<div className="max-w-3xl mx-auto text-center">
239-
<h1 className="text-5xl md:text-7xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-teal-400 animate-fade-in">
239+
<h1 className="text-5xl md:text-7xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary animate-fade-in">
240240
Akhil Devarasetty
241241
</h1>
242-
<p className="text-xl md:text-2xl text-gray-300 mb-8 animate-fade-in animate-delay-200">
242+
<p className="text-xl md:text-2xl text-accent mb-8 animate-fade-in animate-delay-200">
243243
Computer Science and Engineering Student
244244
</p>
245245
<Navbar />
246246
<div className="flex justify-center gap-6 animate-fade-in animate-delay-300">
247-
<a href="https://github.com/DDH2004" className="text-gray-300 hover:text-white transition-colors hover:scale-110 transform duration-200">
247+
<a href="https://github.com/DDH2004" className="text-accent hover:text-primary transition-colors hover:scale-110 transform duration-200">
248248
<Github size={24} />
249249
</a>
250-
<a href="https://www.linkedin.com/in/akhil-devarasetty-073a72244/" className="text-gray-300 hover:text-white transition-colors hover:scale-110 transform duration-200">
250+
<a href="https://www.linkedin.com/in/akhil-devarasetty-073a72244/" className="text-accent hover:text-primary transition-colors hover:scale-110 transform duration-200">
251251
<Linkedin size={24} />
252252
</a>
253-
<a href="mailto:akhild2004@gmail.com" className="text-gray-300 hover:text-white transition-colors hover:scale-110 transform duration-200">
253+
<a href="mailto:akhild2004@gmail.com" className="text-accent hover:text-primary transition-colors hover:scale-110 transform duration-200">
254254
<Mail size={24} />
255255
</a>
256256
</div>
@@ -290,7 +290,7 @@ function App() {
290290
</p>
291291
<a
292292
href="mailto:akhild2004@gmail.com"
293-
className="inline-block px-8 py-3 bg-gradient-to-r from-blue-500 to-teal-500 rounded-lg text-lg font-semibold hover:opacity-90 transition-all duration-300 hover:scale-105 transform"
293+
className="inline-block px-8 py-3 bg-gradient-to-r from-primary to-secondary rounded-lg text-lg font-semibold hover:opacity-90 transition-all duration-300 hover:scale-105 transform"
294294
>
295295
Say Hello
296296
</a>

src/components/WebGLBackground.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ export function WebGLBackground() {
118118
}, []);
119119

120120
return (
121-
<div
122-
ref={containerRef}
123-
className="fixed inset-0 -z-10 pointer-events-none"
124-
style={{ background: 'linear-gradient(to bottom, #000000, #0a192f)' }}
121+
<div
122+
ref={containerRef}
123+
className="fixed inset-0 z-0 pointer-events-none"
124+
style={{ background: 'transparent' }}
125125
/>
126126
);
127127
}

src/index.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,14 @@
5151

5252
html {
5353
scroll-behavior: smooth;
54+
--color-primary: #cb0247;
55+
--color-dark: #01031e;
56+
--color-accent: #81a9ae;
57+
--color-secondary: #126c8e;
58+
--color-blackish: #000520;
59+
}
60+
61+
body {
62+
background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-blackish) 100%);
63+
color: var(--color-accent);
5464
}

tailwind.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
export default {
33
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
44
theme: {
5-
extend: {},
5+
extend: {
6+
colors: {
7+
primary: '#cb0247',
8+
dark: '#01031e',
9+
accent: '#81a9ae',
10+
secondary: '#126c8e',
11+
blackish: '#000520',
12+
},
13+
},
614
},
715
plugins: [
816
require('@tailwindcss/typography'),

0 commit comments

Comments
 (0)