Skip to content

Commit 573a3d9

Browse files
Reworked Stack Auth demo (stack-auth#624)
![image](https://github.com/user-attachments/assets/453c4ea5-9649-4a34-94b1-15f6c8bcecde) <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Reworked Stack Auth demo with UI enhancements and code refactoring for improved user experience and maintainability. > > - **UI Enhancements**: > - Updated `global.css` to change background colors for light and dark themes. > - Added `Image` components in `page-client.tsx` and `header.tsx` for visual elements. > - Refactored `page-client.tsx` to use `Card`, `CardContent`, `CardFooter`, and `CardHeader` for user information display. > - **Code Refactoring**: > - Removed `stack-scope` class from `SelectTrigger` in `select.tsx`. > - Updated button layout and text in `page-client.tsx` for sign-in/sign-up and user information. > - Enhanced header layout in `header.tsx` with logo and theme toggle improvements. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup> for c7a9f30. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent 0b9ccfb commit 573a3d9

7 files changed

Lines changed: 70 additions & 17 deletions

File tree

33.7 KB
Loading
Lines changed: 5 additions & 0 deletions
Loading

examples/demo/public/logo.svg

Lines changed: 5 additions & 0 deletions
Loading

examples/demo/src/app/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55

66
:root {
7-
--background: white;
7+
--background: rgb(240, 240, 240);
88
--foreground: black;
99
}
1010

1111
html:has(head > [data-stack-theme="dark"]) {
12-
--background: black;
12+
--background: rgb(16, 16, 18);
1313
--foreground: white;
1414
}
1515

0 commit comments

Comments
 (0)