Refactor styles and components for improved UI consistency
- Updated login page layout by removing unnecessary classes. - Redesigned 404 not found page with new layout and styles. - Enhanced public pages with consistent font styling and hover effects. - Improved ranking page header styling for better readability. - Updated rules page with consistent font and link styles. - Enhanced statistics page header styling. - Refined global CSS variables for better theme consistency. - Updated button styles for improved interaction feedback. - Enhanced table styles for better readability and interaction. - Updated Tailwind configuration to include new font families.
This commit is contained in:
@@ -23,67 +23,77 @@
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 0 0% 100%;
|
||||
--foreground: 240 10% 3.9%;
|
||||
--background: 0 0% 3.1%;
|
||||
--foreground: 0 0% 96%;
|
||||
|
||||
--muted: 240 4.8% 95.9%;
|
||||
--muted-foreground: 240 3.8% 46.1%;
|
||||
--muted: 0 0% 10%;
|
||||
--muted-foreground: 0 0% 55%;
|
||||
|
||||
--popover: 0 0% 100%;
|
||||
--popover-foreground: 240 10% 3.9%;
|
||||
--popover: 0 0% 5%;
|
||||
--popover-foreground: 0 0% 96%;
|
||||
|
||||
--card: 0 0% 100%;
|
||||
--card-foreground: 240 10% 3.9%;
|
||||
--card: 0 0% 5%;
|
||||
--card-foreground: 0 0% 96%;
|
||||
|
||||
--border: 240 5.9% 90%;
|
||||
--input: 240 5.9% 90%;
|
||||
--border: 0 0% 12%;
|
||||
--input: 0 0% 12%;
|
||||
|
||||
--primary: 240 5.9% 10%;
|
||||
--primary-foreground: 0 0% 98%;
|
||||
--primary: 38 92% 50%;
|
||||
--primary-foreground: 0 0% 4%;
|
||||
|
||||
--secondary: 240 4.8% 95.9%;
|
||||
--secondary-foreground: 240 5.9% 10%;
|
||||
--secondary: 0 0% 10%;
|
||||
--secondary-foreground: 0 0% 96%;
|
||||
|
||||
--accent: 240 4.8% 95.9%;
|
||||
--accent-foreground: 240 5.9% 10%;
|
||||
--accent: 38 92% 50%;
|
||||
--accent-foreground: 0 0% 4%;
|
||||
|
||||
--destructive: 0 84.2% 60.2%;
|
||||
--destructive-foreground: 0 0% 98%;
|
||||
|
||||
--ring: 240 5% 64.9%;
|
||||
--ring: 38 92% 50%;
|
||||
|
||||
--radius: 0.5rem;
|
||||
--radius: 0;
|
||||
|
||||
--sw-bg: #080808;
|
||||
--sw-bg-raised: #0c0c0c;
|
||||
--sw-bg-surface: #111111;
|
||||
--sw-amber: #f59e0b;
|
||||
--sw-amber-light: #fbbf24;
|
||||
--sw-amber-dim: rgba(245, 158, 11, 0.15);
|
||||
--sw-text: #f5f5f5;
|
||||
--sw-text-muted: #a3a3a3;
|
||||
--sw-border: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: 240 10% 3.9%;
|
||||
--foreground: 0 0% 98%;
|
||||
--background: 0 0% 3.1%;
|
||||
--foreground: 0 0% 96%;
|
||||
|
||||
--muted: 240 3.7% 15.9%;
|
||||
--muted-foreground: 240 5% 64.9%;
|
||||
--muted: 0 0% 10%;
|
||||
--muted-foreground: 0 0% 55%;
|
||||
|
||||
--popover: 240 10% 3.9%;
|
||||
--popover-foreground: 0 0% 98%;
|
||||
--popover: 0 0% 5%;
|
||||
--popover-foreground: 0 0% 96%;
|
||||
|
||||
--card: 240 10% 3.9%;
|
||||
--card-foreground: 0 0% 98%;
|
||||
--card: 0 0% 5%;
|
||||
--card-foreground: 0 0% 96%;
|
||||
|
||||
--border: 240 3.7% 15.9%;
|
||||
--input: 240 3.7% 15.9%;
|
||||
--border: 0 0% 12%;
|
||||
--input: 0 0% 12%;
|
||||
|
||||
--primary: 0 0% 98%;
|
||||
--primary-foreground: 240 5.9% 10%;
|
||||
--primary: 38 92% 50%;
|
||||
--primary-foreground: 0 0% 4%;
|
||||
|
||||
--secondary: 240 3.7% 15.9%;
|
||||
--secondary-foreground: 0 0% 98%;
|
||||
--secondary: 0 0% 10%;
|
||||
--secondary-foreground: 0 0% 96%;
|
||||
|
||||
--accent: 240 3.7% 15.9%;
|
||||
--accent-foreground: 0 0% 98%;
|
||||
--accent: 38 92% 50%;
|
||||
--accent-foreground: 0 0% 4%;
|
||||
|
||||
--destructive: 0 62.8% 30.6%;
|
||||
--destructive-foreground: 0 85.7% 97.3%;
|
||||
|
||||
--ring: 240 3.7% 15.9%;
|
||||
--ring: 38 92% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,6 +103,13 @@
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
background-color: var(--sw-bg);
|
||||
color: var(--sw-text);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba(245, 158, 11, 0.3);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
article {
|
||||
@@ -101,15 +118,26 @@
|
||||
}
|
||||
|
||||
code {
|
||||
@apply dark:text-neutral-400 text-neutral-800;
|
||||
color: var(--sw-amber-light);
|
||||
background: rgba(245, 158, 11, 0.08);
|
||||
padding: 0.15em 0.4em;
|
||||
}
|
||||
|
||||
pre.astro-code {
|
||||
@apply w-fit p-4 rounded-md border-2 border-gray-600 my-4;
|
||||
@apply w-fit p-4 my-4;
|
||||
border: 1px solid var(--sw-border);
|
||||
background: var(--sw-bg) !important;
|
||||
}
|
||||
|
||||
a {
|
||||
@apply text-neutral-800 dark:text-neutral-400 hover:underline;
|
||||
color: var(--sw-amber);
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid transparent;
|
||||
transition: border-color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border-bottom-color: var(--sw-amber);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,56 +18,137 @@
|
||||
*/
|
||||
|
||||
.btn {
|
||||
@apply bg-yellow-400 font-bold py-2 px-4 rounded cursor-pointer select-none mx-0.5 md:mx-2 text-black flex flex-row;
|
||||
@apply hover:bg-yellow-300 hover:text-black hover:shadow-2xl hover:scale-105;
|
||||
transition: all 0.5s cubic-bezier(.2, 3, .67, .6),
|
||||
background-color .1s ease-in-out,
|
||||
outline-width .1s ease-in-out,
|
||||
outline-color .1s ease-in-out;
|
||||
@apply active:scale-90;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-family: "Barlow Condensed", sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
padding: 0.5rem 1.2rem;
|
||||
color: #f5f5f5;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: all 0.25s ease;
|
||||
clip-path: polygon(
|
||||
0 0,
|
||||
calc(100% - 8px) 0,
|
||||
100% 8px,
|
||||
100% 100%,
|
||||
8px 100%,
|
||||
0 calc(100% - 8px)
|
||||
);
|
||||
|
||||
.btn__text {
|
||||
@apply inline-block;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: rgba(245, 158, 11, 0.08);
|
||||
border-color: rgba(245, 158, 11, 0.4);
|
||||
color: #fbbf24;
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
transform: scale(0.96);
|
||||
}
|
||||
|
||||
.btn-dropdown {
|
||||
@apply relative mx-0.5 md:mx-2;
|
||||
position: relative;
|
||||
|
||||
> :nth-child(1) {
|
||||
@apply !mx-0;
|
||||
}
|
||||
|
||||
> :nth-child(2) {
|
||||
@apply hidden absolute top-full left-1/2 -translate-x-1/2 bg-gray-800 list-none text-white rounded py-2 flex-col text-sm z-20;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: #111111;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
list-style: none;
|
||||
padding: 0.5rem 0;
|
||||
flex-direction: column;
|
||||
font-size: 0.8rem;
|
||||
z-index: 20;
|
||||
min-width: 10rem;
|
||||
}
|
||||
|
||||
> :nth-child(2) .btn {
|
||||
clip-path: none;
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
border: none;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
&:hover, &:focus-within {
|
||||
> :nth-child(2) {
|
||||
@apply flex;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
@apply px-6 text-xl;
|
||||
@apply bg-transparent border-2 border-yellow-400 shadow-2xl shadow-yellow-400 backdrop-blur text-neutral-800 font-bold bg-gradient-to-br from-yellow-400 to-yellow-200 rounded-xl;
|
||||
@apply hover:border-yellow-300 hover:shadow-yellow-800 hover:scale-110;
|
||||
padding: 0.8rem 2.8rem;
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.2em;
|
||||
color: #fbbf24;
|
||||
background: rgba(245, 158, 11, 0.04);
|
||||
border: 1px solid rgba(245, 158, 11, 0.5);
|
||||
backdrop-filter: blur(12px);
|
||||
clip-path: polygon(
|
||||
0 0,
|
||||
calc(100% - 14px) 0,
|
||||
100% 14px,
|
||||
100% 100%,
|
||||
14px 100%,
|
||||
0 calc(100% - 14px)
|
||||
);
|
||||
}
|
||||
|
||||
.btn-ghost:hover {
|
||||
background: rgba(245, 158, 11, 0.12);
|
||||
border-color: rgba(245, 158, 11, 0.85);
|
||||
color: #fff;
|
||||
box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
|
||||
transform: scale(1.04);
|
||||
}
|
||||
|
||||
.btn-gray {
|
||||
@apply bg-gray-800 text-white;
|
||||
background: transparent;
|
||||
border-color: rgba(255, 255, 255, 0.06);
|
||||
color: rgba(212, 212, 212, 0.9);
|
||||
}
|
||||
|
||||
.btn-gray:hover {
|
||||
background: rgba(245, 158, 11, 0.06);
|
||||
border-color: rgba(245, 158, 11, 0.3);
|
||||
color: #fbbf24;
|
||||
}
|
||||
|
||||
.btn-neutral {
|
||||
@apply bg-neutral-800 text-white;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border-color: rgba(255, 255, 255, 0.08);
|
||||
color: #f5f5f5;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
@apply bg-transparent underline text-white;
|
||||
@apply hover:bg-transparent hover:outline hover:outline-1;
|
||||
|
||||
.btn__text {
|
||||
@apply underline;
|
||||
}
|
||||
background: transparent;
|
||||
border: none;
|
||||
clip-path: none;
|
||||
color: #f59e0b;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
|
||||
.btn-text:hover {
|
||||
background: transparent;
|
||||
border-bottom-color: #f59e0b;
|
||||
color: #fbbf24;
|
||||
}
|
||||
|
||||
@@ -18,20 +18,42 @@
|
||||
*/
|
||||
|
||||
table {
|
||||
@apply w-full overflow-clip;
|
||||
|
||||
:not(:has([data-no-head])) {
|
||||
}
|
||||
width: 100%;
|
||||
overflow: clip;
|
||||
border-collapse: collapse;
|
||||
|
||||
thead {
|
||||
border-bottom: 1px solid white;
|
||||
border-bottom: 2px solid rgba(245, 158, 11, 0.3);
|
||||
font-family: "Barlow Condensed", sans-serif;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
thead th {
|
||||
padding: 0.6rem 0.8rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
tbody {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tr:nth-child(odd) {
|
||||
@apply backdrop-brightness-125;
|
||||
}
|
||||
tbody td {
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(odd) {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: rgba(245, 158, 11, 0.04);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user