Styles from the Figmas
This commit is contained in:
parent
a7b3104a23
commit
7051c33ca9
56
src/app.html
56
src/app.html
|
|
@ -1,33 +1,31 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html class="bg-white" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>WebNative Template</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="robots" content="index,follow">
|
||||||
|
<meta name="googlebot" content="index,follow">
|
||||||
|
<meta name="description" content="TODO">
|
||||||
|
<meta property="og:title" content="WebNative Template">
|
||||||
|
<meta property="og:description" content="A template for WebNative applications">
|
||||||
|
<meta property="og:url" content="TODO">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:image" content="TODO">
|
||||||
|
<meta property="og:image:alt" content="WebNative Template">
|
||||||
|
<meta property="og:image:width" content="1200">
|
||||||
|
<meta property="og:image:height" content="630">
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
<meta name="twitter:title" content="WebNative Template">
|
||||||
|
<meta name="twitter:description" content="A template for WebNative applications">
|
||||||
|
<meta name="twitter:image" content="TODO">
|
||||||
|
<meta name="twitter:image:alt" content="WebNative Template">
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" sizes="any">
|
||||||
|
|
||||||
<head>
|
%sveltekit.head%
|
||||||
<title>WebNative Template</title>
|
</head>
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<meta name="robots" content="index,follow">
|
|
||||||
<meta name="googlebot" content="index,follow">
|
|
||||||
<meta name="description" content="TODO">
|
|
||||||
<meta property="og:title" content="WebNative Template">
|
|
||||||
<meta property="og:description" content="A template for WebNative applications">
|
|
||||||
<meta property="og:url" content="TODO">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:image" content="TODO">
|
|
||||||
<meta property="og:image:alt" content="WebNative Template">
|
|
||||||
<meta property="og:image:width" content="1200">
|
|
||||||
<meta property="og:image:height" content="630">
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
|
||||||
<meta name="twitter:title" content="WebNative Template">
|
|
||||||
<meta name="twitter:description" content="A template for WebNative applications">
|
|
||||||
<meta name="twitter:image" content="TODO">
|
|
||||||
<meta name="twitter:image:alt" content="WebNative Template">
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" sizes="any">
|
|
||||||
|
|
||||||
%sveltekit.head%
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="svelte">%sveltekit.body%</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="svelte">%sveltekit.body%</div>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
<header>
|
<header class="navbar bg-base-100">
|
||||||
<a href="/connect">Connect</a>
|
<div class="flex-1">
|
||||||
|
<button class="btn btn-sm btn-square btn-ghost">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block w-5 h-5 stroke-current"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex-none">
|
||||||
|
<a class="btn btn-sm btn-primary normal-case" href="/connect">Connect</a>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -1,4 +1,16 @@
|
||||||
|
|
||||||
<div>Connect</div>
|
|
||||||
|
|
||||||
<a href="/register">Register</a>
|
<input type="checkbox" id="my-modal-5" checked class="modal-toggle" />
|
||||||
|
<div class="modal">
|
||||||
|
<div class="modal-box w-80 relative text-center">
|
||||||
|
<a href="/" class="btn btn-xs btn-circle absolute right-2 top-2">✕</a>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h3 class="mb-7 text-xl font-serif">Connect to AppName</h3>
|
||||||
|
<div>
|
||||||
|
<a class="btn btn-primary mb-5 w-11/12" href="/register">Create a new account</a>
|
||||||
|
<a class="btn btn-primary btn-outline w-11/12" href="/">I have an existing account</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -17,18 +17,25 @@
|
||||||
|
|
||||||
<input type="checkbox" id="my-modal-5" checked class="modal-toggle" />
|
<input type="checkbox" id="my-modal-5" checked class="modal-toggle" />
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<div class="modal-box w-11/12 max-w-5xl">
|
<div class="modal-box w-80 relative text-center">
|
||||||
|
<a href="/" class="btn btn-xs btn-circle absolute right-2 top-2">✕</a>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3>Choose a username</h3>
|
<h3 class="mb-7 text-xl font-serif">Choose a username</h3>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Type here"
|
placeholder="Type here"
|
||||||
class="input input-bordered w-full max-w-xs"
|
class="input input-bordered w-11/12 mb-3 block"
|
||||||
on:input={checkUsername}
|
on:input={checkUsername}
|
||||||
/>
|
/>
|
||||||
<div>
|
<div class="text-left">
|
||||||
<a class="btn btn-secondary" href="/connect">Back</a>
|
<input type="checkbox" id="shared-computer" class="appearance-none w-5 h-5 border border-primary rounded-md" />
|
||||||
<button class="btn btn-primary">Register</button>
|
<label for="shared-computer" class="ml-1 text-sm text-slate-700">This is a shared computer</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-5">
|
||||||
|
<a class="btn btn-primary btn-outline" href="/connect">Back</a>
|
||||||
|
<button class="btn btn-primary" disabled>Register</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ export type Theme = 'light' | 'dark'
|
||||||
|
|
||||||
export const loadTheme = (): Theme => {
|
export const loadTheme = (): Theme => {
|
||||||
if (browser) {
|
if (browser) {
|
||||||
return localStorage.getItem('theme') as Theme ?? 'dark'
|
return localStorage.getItem('theme') as Theme ?? 'light'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,8 @@
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<div data-theme={$theme}>
|
<div data-theme={$theme}>
|
||||||
<Header></Header>
|
<Header></Header>
|
||||||
|
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Connect from '$components/auth/Connect.svelte'
|
import Connect from '$components/auth/Connect.svelte'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Connect></Connect>
|
<Connect></Connect>
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
init()
|
init()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>Hello world!</h1>
|
<h1 class="text-center">Application Interface</h1>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -13,22 +13,25 @@ module.exports = {
|
||||||
neutral: "#282828",
|
neutral: "#282828",
|
||||||
"base-content": "#ffffff",
|
"base-content": "#ffffff",
|
||||||
"base-100": "#111111",
|
"base-100": "#111111",
|
||||||
"--rounded-box": "2px",
|
"--rounded-box": "16px",
|
||||||
"--rounded-btn": "2px",
|
"--rounded-btn": "8px",
|
||||||
"--rounded-badge": "2px",
|
"--rounded-badge": "2px",
|
||||||
"--tab-radius": "2px"
|
"--tab-radius": "2px",
|
||||||
|
"--btn-text-case": "normal-case"
|
||||||
},
|
},
|
||||||
light : {
|
light: {
|
||||||
primary: "#43919b",
|
primary: "#407FF3",
|
||||||
secondary: "#30aadd",
|
secondary: "#30aadd",
|
||||||
accent: "#00ffc6",
|
accent: "#00ffc6",
|
||||||
neutral: "#e5e5e5",
|
neutral: "#e5e5e5",
|
||||||
"base-content": "#000000",
|
"base-content": "#000000",
|
||||||
"base-100": "#ffffff",
|
"base-100": "#ffffff",
|
||||||
"--rounded-box": "2px",
|
"--rounded-box": "16px",
|
||||||
"--rounded-btn": "2px",
|
"--rounded-btn": "8px",
|
||||||
"--rounded-badge": "2px",
|
"--rounded-badge": "2px",
|
||||||
"--tab-radius": "2px"
|
"--tab-radius": "2px",
|
||||||
|
"--btn-text-case": "normal-case"
|
||||||
|
// 2rem padding on modal-box
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue