File tree Expand file tree Collapse file tree 2 files changed +36
-8
lines changed Expand file tree Collapse file tree 2 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ import { getStorage } from "firebase/storage";
55import { writable , type Readable , derived } from "svelte/store" ;
66
77const firebaseConfig = {
8- // Your firebase config
8+ apiKey : "AIzaSyAYC2plXHclSmOd6BhuLu_BlcsAT5w5E0o" ,
9+ authDomain : "svelte-course-ddbd8.firebaseapp.com" ,
10+ projectId : "svelte-course-ddbd8" ,
11+ storageBucket : "svelte-course-ddbd8.appspot.com" ,
12+ messagingSenderId : "196708682694" ,
13+ appId : "1:196708682694:web:fce0d167ce3055810180c7"
914} ;
1015
1116// Initialize Firebase
Original file line number Diff line number Diff line change 1+ <script >
2+ import { userData } from " $lib/firebase" ;
13
2-
3-
4-
5- <h1 class =" text-green-400" >Welcome to SvelteKit</h1 >
6- <p >Visit <a href =" https://kit.svelte.dev" >kit.svelte.dev</a > to read the documentation</p >
7-
8- <button class =" btn btn-primary" >Button</button >
4+ </script >
5+
6+ <svelte:head >
7+ <title >Kung.foo - a place for links</title >
8+ <meta name =" description" content =" Demo project for the Full SvelteKit Course by Fireship" />
9+ </svelte:head >
10+
11+ <main class =" flex w-full min-h-screen" >
12+
13+ <div class =" hero bg-base-200" >
14+ <div class =" hero-content text-center" >
15+ <div class =" w-full" >
16+ <h1 class =" text-7xl font-bold" >Kung.foo</h1 >
17+ <p class =" py-6 text-2xl" >One simple link to share your entire developer portfolio</p >
18+ {#if $userData ?.username }
19+ <a href ="/ {$userData .username }/edit" class =" btn btn-primary" >Edit Profile</a >
20+ {:else }
21+ <a href =" /login" class =" btn btn-primary" >Get Started</a >
22+ <a href =" /fireship" class =" btn btn-secondary" >Example Profile</a >
23+ {/if }
24+ <p class =" py-6" >Learn how to build this app from scratch in the <a class =" link" href =" https://fireship.io/courses/sveltekit" >Full SvelteKit Course</a ></p >
25+ </div >
26+ </div >
27+ </div >
28+
29+ </main >
30+
31+
You can’t perform that action at this time.
0 commit comments