Skip to content

Commit

Permalink
💄 - redesigned form and updated color pallete
Browse files Browse the repository at this point in the history
  • Loading branch information
NaviTheCoderboi committed Mar 31, 2024
1 parent 2e747b3 commit 7a18dbf
Show file tree
Hide file tree
Showing 15 changed files with 342 additions and 288 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
},
"type": "module",
"dependencies": {
"@internationalized/date": "^3.5.2",
"@neondatabase/serverless": "^0.9.0",
"@prisma/adapter-neon": "^5.11.0",
"@prisma/client": "5.11.0",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ body {
.field input:valid ~ label,
.field input:focus ~ label {
transform: translateY(-50%);
font-size: 15px;
color: #fff;
font-size: 0.9rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
transition: all 1000000s ease-in-out 0s;
}

::-webkit-scrollbar {
background-color: theme(colors.slate.800);
width: 12px;
}

::-webkit-scrollbar-thumb {
background-color: theme(colors.slate.700);
}
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" class="text-dark bg-dark">
<body data-sveltekit-preload-data="hover" class="text-white bg-slate-900">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
Binary file modified src/lib/assets/logo.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/components/LoadingBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</script>

<div
class="absolute top-0 left-0 bg-primary-light dark:bg-primary-dark h-1 z-50"
class="absolute top-0 left-0 bg-primary-500 h-0.5 z-50"
style="width: {$styles}%;"
bind:this={div}
/>
52 changes: 52 additions & 0 deletions src/lib/components/VisuallyHidden.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<script lang="ts">
import { dev } from '$app/environment';
import { onMount } from 'svelte';
let forceShow = false;
if (dev) {
const shortcut = 'Alt';
const handleKeyDown = (ev: KeyboardEvent) => {
if (ev.key === shortcut) {
forceShow = true;
}
};
const handleKeyUp = (ev: KeyboardEvent) => {
if (ev.key === shortcut) {
forceShow = false;
}
};
onMount(() => {
window.addEventListener('keydown', handleKeyDown);
window.addEventListener('keyup', handleKeyUp);
return () => {
window.removeEventListener('keydown', handleKeyDown);
window.removeEventListener('keyup', handleKeyUp);
};
});
}
</script>

{#if forceShow}
<slot />
{:else}
<span {...$$restProps}>
<slot />
</span>
{/if}

<style>
span {
display: inline-block;
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
</style>
225 changes: 0 additions & 225 deletions src/lib/components/ui/Field/DateField.svelte

This file was deleted.

Loading

0 comments on commit 7a18dbf

Please sign in to comment.