Starter Projekt angefangen, etwas aufzubohren und ein paar grundlegend benötigte Collections, Teheming-Styles und Komponenten hinzugefügt. (WIP)
This commit is contained in:
37
src/components/widgets/ScrollTo.svelte
Normal file
37
src/components/widgets/ScrollTo.svelte
Normal file
@@ -0,0 +1,37 @@
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from "svelte"
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
</script>
|
||||
|
||||
<div class="scroll-to-top">
|
||||
<div class="circle-email">
|
||||
<a
|
||||
href="/#"
|
||||
on:click="{() => {
|
||||
dispatch('scrollTo', {
|
||||
element: 'contact',
|
||||
})
|
||||
}}"
|
||||
>
|
||||
<!-- <img src="img/icon/contact.svg" alt="" /> -->
|
||||
</a>
|
||||
</div>
|
||||
<div class="circle-contact">
|
||||
<a
|
||||
href="/#"
|
||||
on:click="{() => {
|
||||
dispatch('scrollTo', {
|
||||
element: 'recipe',
|
||||
})
|
||||
}}"
|
||||
>
|
||||
<!-- <img src="img/icon/recipe.svg" alt="" /> -->
|
||||
</a>
|
||||
</div>
|
||||
<div class="circle-top">
|
||||
<a href="/#">
|
||||
<!-- <img src="img/icon/chevron-up.svg" alt="" /> -->
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user