Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 151 additions & 12 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,181 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
Comment thread
Maheshghosh marked this conversation as resolved.

/* =========================================
ROOT VARIABLES
========================================= */

:root {
--max-width: 1280px;

--primary-color: #646cff;
--react-color: #61dafb;

--text-muted: #94a3b8;

--card-bg: rgba(255, 255, 255, 0.05);
--card-border: rgba(255, 255, 255, 0.08);

--shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
--shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);

--transition: 0.3s ease;
--radius: 1rem;
}

/* =========================================
GLOBAL STYLES
========================================= */

* {
box-sizing: border-box;
}

body {
margin: 0;

min-width: 320px;
min-height: 100vh;

font-family: Inter, sans-serif;

background: linear-gradient(
135deg,
#0f172a,
#111827
);

color: white;

-webkit-font-smoothing: antialiased;
}
Comment thread
Maheshghosh marked this conversation as resolved.

/* =========================================
ROOT CONTAINER
========================================= */

#root {
max-width: 1280px;
margin: 0 auto;
max-width: var(--max-width);

margin-inline: auto;

padding: 2rem;

text-align: center;
}

/* =========================================
LOGO
========================================= */

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
height: 6rem;

padding: 1.25rem;

border-radius: 50%;

transition:
transform var(--transition),
filter var(--transition);

will-change: transform, filter;
}

.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
transform: scale(1.05);

filter:
drop-shadow(0 0 2rem rgba(100, 108, 255, 0.6));
}

.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
filter:
drop-shadow(0 0 2rem rgba(97, 218, 251, 0.7));
}

/* =========================================
SPIN ANIMATION
========================================= */

@keyframes logo-spin {
from {
transform: rotate(0deg);
}

to {
transform: rotate(360deg);
}
}

/* Motion-safe animation */

@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
.logo-spin {
animation:
logo-spin 20s linear infinite;
}
}

/* =========================================
CARD
========================================= */

.card {
padding: 2em;
padding: 2rem;

margin-top: 2rem;

border-radius: var(--radius);

background: var(--card-bg);

border: 1px solid var(--card-border);

backdrop-filter: blur(12px);

box-shadow: var(--shadow-sm);

transition:
transform var(--transition),
box-shadow var(--transition);
}

.card:hover {
transform: translateY(-4px);

box-shadow: var(--shadow-md);
}

/* =========================================
TEXT
========================================= */

.read-the-docs {
color: #888;
margin-top: 1rem;

color: var(--text-muted);

font-size: 0.95rem;

line-height: 1.6;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 768px) {
#root {
padding: 1rem;
}

.logo {
height: 4.5rem;
}

.card {
padding: 1.5rem;
}
}
Loading
Loading