mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
feat: init components structure
This commit is contained in:
parent
f08b8dea77
commit
8902901acf
0
src/lib/components/atoms/Button.svelte
Normal file
0
src/lib/components/atoms/Button.svelte
Normal file
0
src/lib/components/atoms/Input.svelte
Normal file
0
src/lib/components/atoms/Input.svelte
Normal file
0
src/lib/components/molecules/SearchBar.svelte
Normal file
0
src/lib/components/molecules/SearchBar.svelte
Normal file
0
src/lib/components/organisms/Footer.svelte
Normal file
0
src/lib/components/organisms/Footer.svelte
Normal file
0
src/lib/components/organisms/NavBar.svelte
Normal file
0
src/lib/components/organisms/NavBar.svelte
Normal file
14
src/lib/components/templates/Page.svelte
Normal file
14
src/lib/components/templates/Page.svelte
Normal file
@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
import NavBar from '$components/organisms/NavBar.svelte';
|
||||
import Footer from '$components/organisms/Footer.svelte';
|
||||
|
||||
type Props = { children: Snippet };
|
||||
let { children }: Props = $props();
|
||||
</script>
|
||||
|
||||
<main>
|
||||
<NavBar />
|
||||
{@render children()}
|
||||
<Footer />
|
||||
</main>
|
@ -4,7 +4,14 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
preprocess: vitePreprocess(),
|
||||
kit: { adapter: adapter() }
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
alias: {
|
||||
$components: './src/lib/components',
|
||||
$api: './src/lib/api',
|
||||
$lib: './src/lib'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
Loading…
x
Reference in New Issue
Block a user