-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make navbar hide on scroll down on mobile
- Loading branch information
Showing
5 changed files
with
102 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,42 @@ | ||
<script lang="ts"> | ||
import type { ActionData, PageServerData } from "./$types"; | ||
import type { ActionData, PageServerData } from "./$types"; | ||
export let form: ActionData; | ||
export let data: PageServerData; | ||
export let form: ActionData; | ||
export let data: PageServerData; | ||
</script> | ||
|
||
<h1>{data.title}</h1> | ||
<p>{data.description}</p> | ||
|
||
<form method="POST" class="flex flex-col gap-5"> | ||
<form | ||
method="POST" | ||
class="flex flex-col gap-5" | ||
> | ||
<div> | ||
<label for="name">Name</label> | ||
<input type="text" name="name" placeholder="Name" /> | ||
<input | ||
type="text" | ||
name="name" | ||
placeholder="Name" | ||
/> | ||
</div> | ||
|
||
<div> | ||
<label for="email">Email</label> | ||
<input type="email" name="email" placeholder="[email protected]" /> | ||
<input | ||
type="email" | ||
name="email" | ||
placeholder="[email protected]" | ||
/> | ||
</div> | ||
|
||
<div> | ||
<label for="message">Message</label> | ||
<textarea name="message" placeholder="[...]" rows="5"></textarea> | ||
<textarea | ||
name="message" | ||
placeholder="[...]" | ||
rows="5" | ||
/> | ||
</div> | ||
|
||
{#if form?.success} | ||
|
@@ -32,7 +47,11 @@ export let data: PageServerData; | |
{form.message} | ||
{/if} | ||
|
||
<button type="submit" class="transition-filter duration-200 hover:brightness-75">Send message <div class="i-ic:outline-arrow-circle-right" /></button> | ||
<button | ||
type="submit" | ||
class="transition-filter duration-200 hover:brightness-75" | ||
>Send message <div class="i-ic:outline-arrow-circle-right" /></button | ||
> | ||
</form> | ||
|
||
<style> | ||
|
@@ -44,7 +63,9 @@ export let data: PageServerData; | |
@apply text-xl font-semibold; | ||
} | ||
form > div > input, form > div > textarea, form > button { | ||
form > div > input, | ||
form > div > textarea, | ||
form > button { | ||
@apply w-110 lt-sm\:w-70 px-2 py-1 bg-secondary rounded flex items-center gap-2 text-lg; | ||
} | ||
</style> | ||
</style> |