+
{item.description}
) : null}
diff --git a/apps/login/lib/demos.ts b/apps/login/lib/demos.ts
index 9f54c2a737e..8761a824016 100644
--- a/apps/login/lib/demos.ts
+++ b/apps/login/lib/demos.ts
@@ -6,47 +6,47 @@ export type Item = {
export const demos: { name: string; items: Item[] }[] = [
{
- name: 'Pages',
+ name: "Routes",
items: [
{
- name: 'Login',
- slug: 'login',
- description: 'The entrypoint of the application',
+ name: "Login",
+ slug: "login",
+ description: "The entrypoint of the application",
},
{
- name: 'Password',
- slug: 'password',
- description: 'The page to request a users password',
+ name: "Password",
+ slug: "password",
+ description: "The page to request a users password",
},
{
- name: 'Set Password',
- slug: 'password/set',
- description: 'The page to set a users password',
+ name: "Set Password",
+ slug: "password/set",
+ description: "The page to set a users password",
},
{
- name: 'MFA',
- slug: 'mfa',
- description: 'The page to request a users mfa method',
+ name: "MFA",
+ slug: "mfa",
+ description: "The page to request a users mfa method",
},
{
- name: 'MFA',
- slug: 'mfa/set',
- description: 'The page to set a users mfa method',
+ name: "MFA Set",
+ slug: "mfa/set",
+ description: "The page to set a users mfa method",
},
{
- name: 'MFA Create',
- slug: 'mfa/create',
- description: 'The page to create a users mfa method',
+ name: "MFA Create",
+ slug: "mfa/create",
+ description: "The page to create a users mfa method",
},
{
- name: 'Passwordless',
- slug: 'passwordless',
- description: 'The page to login a user with his passwordless device',
+ name: "Passwordless",
+ slug: "passwordless",
+ description: "The page to login a user with his passwordless device",
},
{
- name: 'Passwordless Create',
- slug: 'passwordless/create',
- description: 'The page to add a users passwordless device',
+ name: "Passwordless Create",
+ slug: "passwordless/create",
+ description: "The page to add a users passwordless device",
},
],
},
diff --git a/apps/login/package.json b/apps/login/package.json
index 1ff9cbeb733..a5047b3a261 100644
--- a/apps/login/package.json
+++ b/apps/login/package.json
@@ -17,15 +17,16 @@
"*": "prettier --write --ignore-unknown"
},
"dependencies": {
- "@zitadel/server": "workspace:*",
- "@zitadel/react": "workspace:*",
- "@zitadel/next": "workspace:*",
+ "@headlessui/react": "^1.7.14",
"@heroicons/react": "2.0.13",
- "@next/font": "13.0.5",
"@tailwindcss/forms": "0.5.3",
+ "@zitadel/next": "workspace:*",
+ "@zitadel/react": "workspace:*",
+ "@zitadel/server": "workspace:*",
"clsx": "1.2.1",
"date-fns": "2.29.3",
- "next": "13.2.3",
+ "next": "13.3.1-canary.13",
+ "next-themes": "^0.2.1",
"nice-grpc": "2.0.1",
"react": "18.2.0",
"react-dom": "18.2.0",
@@ -34,8 +35,6 @@
"tinycolor2": "1.4.2"
},
"devDependencies": {
- "@zitadel/tsconfig": "workspace:*",
- "eslint-config-zitadel": "workspace:*",
"@bufbuild/buf": "^1.14.0",
"@types/ms": "0.7.31",
"@types/node": "18.11.9",
@@ -43,8 +42,10 @@
"@types/react-dom": "18.0.9",
"@types/tinycolor2": "1.4.3",
"@vercel/git-hooks": "1.0.0",
+ "@zitadel/tsconfig": "workspace:*",
"autoprefixer": "10.4.13",
"del-cli": "5.0.0",
+ "eslint-config-zitadel": "workspace:*",
"grpc-tools": "1.11.3",
"lint-staged": "13.0.3",
"make-dir-cli": "3.0.0",
diff --git a/apps/login/public/grid.svg b/apps/login/public/grid-dark.svg
similarity index 100%
rename from apps/login/public/grid.svg
rename to apps/login/public/grid-dark.svg
diff --git a/apps/login/public/grid-light.svg b/apps/login/public/grid-light.svg
new file mode 100644
index 00000000000..114c1186fe8
--- /dev/null
+++ b/apps/login/public/grid-light.svg
@@ -0,0 +1,5 @@
+
+
diff --git a/apps/login/styles/globals.css b/apps/login/styles/globals.css
index 2bc67dcc335..bbcde40e0f9 100755
--- a/apps/login/styles/globals.css
+++ b/apps/login/styles/globals.css
@@ -2,11 +2,13 @@
@tailwind components;
@tailwind utilities;
-h1,
-.ztdl-h1 {
- @apply text-xl;
-}
+@layer base {
+ h1,
+ .ztdl-h1 {
+ @apply text-2xl;
+ }
-.ztdl-p {
- @apply text-sm;
+ .ztdl-p {
+ @apply text-sm;
+ }
}
diff --git a/apps/login/tailwind.config.js b/apps/login/tailwind.config.js
index 8d634124778..fa538e7f8cb 100644
--- a/apps/login/tailwind.config.js
+++ b/apps/login/tailwind.config.js
@@ -82,7 +82,7 @@ module.exports = {
},
backgroundImage: ({ theme }) => ({
"dark-vc-border-gradient": `radial-gradient(at left top, ${theme(
- "colors.gray.500"
+ "colors.gray.800"
)}, 50px, ${theme("colors.gray.800")} 50%)`,
"vc-border-gradient": `radial-gradient(at left top, ${theme(
"colors.gray.200"
diff --git a/apps/login/ui/AddressBar.tsx b/apps/login/ui/AddressBar.tsx
index 96de112f529..740af95fe57 100644
--- a/apps/login/ui/AddressBar.tsx
+++ b/apps/login/ui/AddressBar.tsx
@@ -32,6 +32,7 @@ export function AddressBar() {
{pathname
.split("/")
.slice(1)
+ .filter((s) => !!s)
.map((segment) => {
return (
diff --git a/apps/login/ui/Byline.tsx b/apps/login/ui/Byline.tsx
new file mode 100644
index 00000000000..b17025298b0
--- /dev/null
+++ b/apps/login/ui/Byline.tsx
@@ -0,0 +1,18 @@
+import Theme from "./Theme";
+
+export default function Byline() {
+ return (
+
+ );
+}
diff --git a/apps/login/ui/GlobalNav.tsx b/apps/login/ui/GlobalNav.tsx
index 9c73f048c0e..5cd977f8b31 100644
--- a/apps/login/ui/GlobalNav.tsx
+++ b/apps/login/ui/GlobalNav.tsx
@@ -25,7 +25,7 @@ export function GlobalNav() {