Spaces:
Sleeping
Sleeping
Update client/src/index.css
Browse files- client/src/index.css +61 -36
client/src/index.css
CHANGED
|
@@ -3,8 +3,6 @@
|
|
| 3 |
--glass-border: rgba(255, 255, 255, 0.2);
|
| 4 |
--glass-bg: rgba(255, 255, 255, 0.1);
|
| 5 |
--glass-highlight: rgba(255, 255, 255, 0.15);
|
| 6 |
-
--text-primary: #ffffff;
|
| 7 |
-
--text-secondary: rgba(255, 255, 255, 0.7);
|
| 8 |
--accent-pink: #ff0080;
|
| 9 |
}
|
| 10 |
|
|
@@ -13,19 +11,28 @@ body {
|
|
| 13 |
color: white;
|
| 14 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
| 15 |
overflow-x: hidden;
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
#
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
min-height: 100vh;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
/*
|
| 29 |
.glass-panel {
|
| 30 |
background: var(--glass-bg);
|
| 31 |
backdrop-filter: blur(24px);
|
|
@@ -35,13 +42,11 @@ body {
|
|
| 35 |
border-radius: 24px;
|
| 36 |
}
|
| 37 |
|
| 38 |
-
/* Glass Pills (Dropdowns & Buttons) */
|
| 39 |
.glass-pill {
|
| 40 |
background: var(--glass-bg);
|
| 41 |
backdrop-filter: blur(16px);
|
| 42 |
-
-webkit-backdrop-filter: blur(16px);
|
| 43 |
border: 1px solid var(--glass-border);
|
| 44 |
-
border-radius: 9999px;
|
| 45 |
padding: 8px 16px;
|
| 46 |
color: white;
|
| 47 |
font-size: 14px;
|
|
@@ -49,36 +54,62 @@ body {
|
|
| 49 |
cursor: pointer;
|
| 50 |
transition: all 0.2s ease;
|
| 51 |
outline: none;
|
| 52 |
-
/* Fix for blank spots: explicit width/height ensures visibility */
|
| 53 |
min-width: 80px;
|
| 54 |
}
|
| 55 |
-
|
| 56 |
.glass-pill:hover {
|
| 57 |
background: var(--glass-highlight);
|
| 58 |
border-color: rgba(255, 255, 255, 0.4);
|
| 59 |
-
transform: translateY(-1px);
|
| 60 |
}
|
|
|
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
/* THE "TEK" LOGO (Frosted Box) */
|
| 68 |
-
.logo-box {
|
| 69 |
background: rgba(255, 255, 255, 0.1);
|
| 70 |
border: 1px solid rgba(255, 255, 255, 0.25);
|
| 71 |
backdrop-filter: blur(20px);
|
| 72 |
-
border-radius:
|
| 73 |
padding: 8px 16px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
font-weight: 900;
|
| 75 |
letter-spacing: 2px;
|
| 76 |
text-transform: uppercase;
|
| 77 |
font-size: 0.9rem;
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
textarea {
|
| 83 |
background: rgba(0, 0, 0, 0.3);
|
| 84 |
border: 1px solid var(--glass-border);
|
|
@@ -93,7 +124,7 @@ textarea:focus {
|
|
| 93 |
outline: none;
|
| 94 |
}
|
| 95 |
|
| 96 |
-
/*
|
| 97 |
.run-btn {
|
| 98 |
background: linear-gradient(135deg, #ff0080 0%, #ff4e50 100%);
|
| 99 |
border: none;
|
|
@@ -101,12 +132,9 @@ textarea:focus {
|
|
| 101 |
color: white;
|
| 102 |
box-shadow: 0 10px 20px rgba(255, 0, 80, 0.3);
|
| 103 |
transition: transform 0.2s;
|
| 104 |
-
display: flex;
|
| 105 |
-
align-items: center;
|
| 106 |
-
justify-content: center;
|
| 107 |
}
|
| 108 |
.run-btn:active { transform: scale(0.95); }
|
| 109 |
-
.run-btn:disabled { filter: grayscale(1); opacity: 0.7; }
|
| 110 |
|
| 111 |
/* HOLO UPLOAD BOX */
|
| 112 |
.holo-box {
|
|
@@ -117,7 +145,4 @@ textarea:focus {
|
|
| 117 |
position: relative;
|
| 118 |
transition: all 0.3s;
|
| 119 |
}
|
| 120 |
-
.holo-box:hover {
|
| 121 |
-
background: rgba(255, 255, 255, 0.1);
|
| 122 |
-
border-color: white;
|
| 123 |
-
}
|
|
|
|
| 3 |
--glass-border: rgba(255, 255, 255, 0.2);
|
| 4 |
--glass-bg: rgba(255, 255, 255, 0.1);
|
| 5 |
--glass-highlight: rgba(255, 255, 255, 0.15);
|
|
|
|
|
|
|
| 6 |
--accent-pink: #ff0080;
|
| 7 |
}
|
| 8 |
|
|
|
|
| 11 |
color: white;
|
| 12 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
| 13 |
overflow-x: hidden;
|
| 14 |
+
|
| 15 |
+
/* --- 1. THE LIQUID ANIMATION --- */
|
| 16 |
+
background: linear-gradient(
|
| 17 |
+
300deg,
|
| 18 |
+
#ff0080, /* Neon Pink */
|
| 19 |
+
#7928ca, /* Deep Purple */
|
| 20 |
+
#ff4d4d, /* Hot Red */
|
| 21 |
+
#2a0010 /* Dark Base */
|
| 22 |
+
);
|
| 23 |
+
background-size: 240% 240%; /* Zoomed in to create "movement" */
|
| 24 |
+
animation: liquidFlow 18s ease infinite; /* The slow flow */
|
| 25 |
min-height: 100vh;
|
| 26 |
}
|
| 27 |
|
| 28 |
+
/* MOVEMENT KEYFRAMES */
|
| 29 |
+
@keyframes liquidFlow {
|
| 30 |
+
0% { background-position: 0% 50%; }
|
| 31 |
+
50% { background-position: 100% 50%; }
|
| 32 |
+
100% { background-position: 0% 50%; }
|
| 33 |
+
}
|
| 34 |
|
| 35 |
+
/* --- GLASS COMPONENTS --- */
|
| 36 |
.glass-panel {
|
| 37 |
background: var(--glass-bg);
|
| 38 |
backdrop-filter: blur(24px);
|
|
|
|
| 42 |
border-radius: 24px;
|
| 43 |
}
|
| 44 |
|
|
|
|
| 45 |
.glass-pill {
|
| 46 |
background: var(--glass-bg);
|
| 47 |
backdrop-filter: blur(16px);
|
|
|
|
| 48 |
border: 1px solid var(--glass-border);
|
| 49 |
+
border-radius: 9999px;
|
| 50 |
padding: 8px 16px;
|
| 51 |
color: white;
|
| 52 |
font-size: 14px;
|
|
|
|
| 54 |
cursor: pointer;
|
| 55 |
transition: all 0.2s ease;
|
| 56 |
outline: none;
|
|
|
|
| 57 |
min-width: 80px;
|
| 58 |
}
|
|
|
|
| 59 |
.glass-pill:hover {
|
| 60 |
background: var(--glass-highlight);
|
| 61 |
border-color: rgba(255, 255, 255, 0.4);
|
|
|
|
| 62 |
}
|
| 63 |
+
.glass-pill option { background: #2a0010; color: white; }
|
| 64 |
|
| 65 |
+
/* --- 2. THE EXPANDING LOGO --- */
|
| 66 |
+
.logo-expand-container {
|
| 67 |
+
display: flex;
|
| 68 |
+
align-items: center;
|
|
|
|
|
|
|
|
|
|
| 69 |
background: rgba(255, 255, 255, 0.1);
|
| 70 |
border: 1px solid rgba(255, 255, 255, 0.25);
|
| 71 |
backdrop-filter: blur(20px);
|
| 72 |
+
border-radius: 9999px; /* Pill shape */
|
| 73 |
padding: 8px 16px;
|
| 74 |
+
cursor: default;
|
| 75 |
+
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth snap */
|
| 76 |
+
overflow: hidden;
|
| 77 |
+
width: 32px; /* Start small (approx width of just 'TEK') */
|
| 78 |
+
white-space: nowrap;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
/* HOVER STATE: Expand width */
|
| 82 |
+
.logo-expand-container:hover {
|
| 83 |
+
width: 110px; /* Expand to fit 'TEK BUILD' */
|
| 84 |
+
background: rgba(255, 255, 255, 0.2);
|
| 85 |
+
box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.logo-main {
|
| 89 |
font-weight: 900;
|
| 90 |
letter-spacing: 2px;
|
| 91 |
text-transform: uppercase;
|
| 92 |
font-size: 0.9rem;
|
| 93 |
+
margin-right: 8px;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.logo-hidden {
|
| 97 |
+
opacity: 0;
|
| 98 |
+
font-size: 0.8rem;
|
| 99 |
+
letter-spacing: 1px;
|
| 100 |
+
font-weight: 400;
|
| 101 |
+
color: rgba(255, 255, 255, 0.8);
|
| 102 |
+
transform: translateX(-10px);
|
| 103 |
+
transition: all 0.3s ease;
|
| 104 |
}
|
| 105 |
|
| 106 |
+
/* REVEAL TEXT ON HOVER */
|
| 107 |
+
.logo-expand-container:hover .logo-hidden {
|
| 108 |
+
opacity: 1;
|
| 109 |
+
transform: translateX(0);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
/* INPUT FIELD */
|
| 113 |
textarea {
|
| 114 |
background: rgba(0, 0, 0, 0.3);
|
| 115 |
border: 1px solid var(--glass-border);
|
|
|
|
| 124 |
outline: none;
|
| 125 |
}
|
| 126 |
|
| 127 |
+
/* RUN BUTTON */
|
| 128 |
.run-btn {
|
| 129 |
background: linear-gradient(135deg, #ff0080 0%, #ff4e50 100%);
|
| 130 |
border: none;
|
|
|
|
| 132 |
color: white;
|
| 133 |
box-shadow: 0 10px 20px rgba(255, 0, 80, 0.3);
|
| 134 |
transition: transform 0.2s;
|
| 135 |
+
display: flex; align-items: center; justify-content: center;
|
|
|
|
|
|
|
| 136 |
}
|
| 137 |
.run-btn:active { transform: scale(0.95); }
|
|
|
|
| 138 |
|
| 139 |
/* HOLO UPLOAD BOX */
|
| 140 |
.holo-box {
|
|
|
|
| 145 |
position: relative;
|
| 146 |
transition: all 0.3s;
|
| 147 |
}
|
| 148 |
+
.holo-box:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }
|
|
|
|
|
|
|
|
|