Skip to content

Commit f14dce9

Browse files
committed
landing page and layout fix
1 parent 97f6040 commit f14dce9

12 files changed

Lines changed: 526 additions & 34 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ build/
2626
*.0
2727
*.so
2828
*.dll
29+
imgui.ini
2930

3031

3132
# Node

frontend/public/landing.mp4

1.26 MB
Binary file not shown.

frontend/public/poster.jpeg

346 KB
Loading

frontend/src/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import RegisterPage from './pages/RegisterPage'
88
import { AnalyticsPage } from './pages/AnalyticsPage'
99
import { SettingsPage } from './pages/SettingsPage'
1010
import { DownloadPage } from './pages/DownloadPage'
11+
import { LandingPage } from './pages/LandingPage'
12+
1113

1214

1315
const queryClient = new QueryClient()
@@ -23,8 +25,15 @@ function App() {
2325
<QueryClientProvider client={queryClient}>
2426
<BrowserRouter>
2527
<Routes>
28+
<Route
29+
path='/'
30+
element={
31+
<LandingPage/>
32+
}
33+
/>
2634
<Route path="/register" element={<RegisterPage/>}/>
2735
<Route path='/login' element={<LoginPage />} />
36+
2837
<Route path='/dashboard'
2938
element={
3039
<PrivateRoute>

frontend/src/index.css

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
33

44

5-
*{
6-
margin: 0;
7-
bottom: 0;
8-
box-sizing: border-box;
5+
*,
6+
*::before,
7+
*::after {
8+
box-sizing: border-box;
9+
}
10+
11+
body {
12+
margin: 0;
913
}
1014

1115
@theme {
@@ -34,7 +38,7 @@ body::before {
3438
left: 0;
3539
width: 100%;
3640
height: 100%;
37-
background:
41+
background:
3842
radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
3943
radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
4044
radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
@@ -58,26 +62,27 @@ body::before {
5862
}
5963

6064
/* Light Theme */
61-
.light body{
65+
.light body {
6266
background: linear-gradient(to bottom right, #f8fafc, #f3e8ff, #f8fafc);
6367
color: #0f172a;
6468
}
6569

66-
.light body::before{
67-
background:
68-
radial-gradient(circle at 20% 50% ,rgba(167,139,250,0.15) 0%,transparent 50%),
69-
radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
70-
radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
70+
.light body::before {
71+
background:
72+
radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
73+
radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
74+
radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
7175
}
7276

7377
/* Glass morphism - LIGHT */
74-
.light .glass-strong{
78+
.light .glass-strong {
7579
background: rgba(255, 255, 255, 0.8);
7680
backdrop-filter: blur(10px);
77-
border:1px solid rgba(0,0,0,0.15) ;
78-
81+
border: 1px solid rgba(0, 0, 0, 0.15);
82+
7983
}
80-
body.light .text-slate-400{
84+
85+
body.light .text-slate-400 {
8186
@apply text-slate-600;
8287
}
8388
body.light .text-slate-300 {
@@ -93,8 +98,15 @@ body.light .text-white {
9398

9499

95100
@keyframes meshMove {
96-
0%, 100% { transform: translate(0, 0) scale(1); }
97-
50% { transform: translate(50px, 50px) scale(1.1); }
101+
102+
0%,
103+
100% {
104+
transform: translate(0, 0) scale(1);
105+
}
106+
107+
50% {
108+
transform: translate(50px, 50px) scale(1.1);
109+
}
98110
}
99111

100112
/* Smooth scrollbar */
@@ -111,9 +123,9 @@ body.light ::-webkit-scrollbar-track {
111123
}
112124

113125
::-webkit-scrollbar-thumb {
114-
@apply bg-purple-500/50 rounded-full;
126+
@apply bg-slate-600/50 rounded-full;
115127
}
116128

117129
::-webkit-scrollbar-thumb:hover {
118-
@apply bg-purple-500/70;
119-
}
130+
@apply bg-slate-900/50;
131+
}

frontend/src/pages/AnalyticsPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export const AnalyticsPage = () => {
9797
];
9898

9999
return (
100-
<div className='min-h-screen p-6 flex flex-col gap-10'>
100+
<div className='min-h-screen flex justify-center'>
101+
<div className="w-full px-6 py-6 flex flex-col gap-2">
101102
<button
102103
onClick={() => navigate(-1)}
103104
className="flex items-center gap-2 text-slate-400 hover:text-slate-200 transition-colors mb-8 cursor-pointer"
@@ -227,5 +228,6 @@ export const AnalyticsPage = () => {
227228
</div>
228229
</GlassCard>
229230
</div>
231+
</div>
230232
);
231233
};

frontend/src/pages/DashboardPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export const DashboardPage = () => {
3838

3939

4040
return (
41-
<div className="min-h-screen p-6 flex flex-col gap-10">
41+
<div className="min-h-screen flex justify-center">
42+
<div className="w-full px-6 py-6 flex flex-col gap-5">
4243
{/* Header with Logout */}
4344
<motion.div
4445
initial={{ y: -20, opacity: 0 }}
@@ -173,7 +174,7 @@ export const DashboardPage = () => {
173174
<PostureTimeline data={analytics.timelineData} />
174175
) : (
175176
<GlassCard >
176-
<div className="text-center py-8n text-slate-400">
177+
<div className="text-center py-8 text-slate-400">
177178
<p className="text-sm mt-2">No posture data yet today</p>
178179
<p>P.S start your desktop application to begin tracking</p>
179180
</div>
@@ -183,6 +184,7 @@ export const DashboardPage = () => {
183184
}
184185

185186
</motion.div>
187+
</div>
186188
</div>
187189
)
188190
}

frontend/src/pages/DownloadPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ export const DownloadPage = () => {
77
const navigate = useNavigate();
88

99
return (
10-
<div className="min-h-screen w-full flex justify-center">
10+
<div className="min-h-screen flex justify-center">
11+
12+
<div className="w-full px-6 py-6 flex flex-col gap-2">
1113

12-
<div className="w-full p-6 ">
1314

1415
<button
1516
onClick={() => navigate(-1)}

0 commit comments

Comments
 (0)