Skip to content

Commit

Permalink
feat: get started button on homepage
Browse files Browse the repository at this point in the history
Signed-off-by: Wilfred Almeida <almeidawilfred642@gmail.com>
  • Loading branch information
WilfredAlmeida committed Sep 10, 2023
1 parent 870b663 commit 6d7de0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/(private)/dashboard/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { error, fail, redirect } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
import { invalidate } from '$app/navigation';

export const load: PageServerLoad = async ({ locals }) => {
const { supabase } = locals;
Expand Down Expand Up @@ -34,7 +33,7 @@ export const load: PageServerLoad = async ({ locals }) => {

// console.log(projectData);

return { projects: projectData };
return { projects: projectData.reverse() };
};

export const actions = {
Expand Down
10 changes: 10 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
];
</script>

<div class="flex justify-between p-4">
<div></div> <!-- Empty div to push the button to the right -->
<Button
variant="ghost"
class="rounded-full font-semibold border border-green-400 hover:bg-green-400 text-green-400 hover:text-black py-2 px-6 mt-8"
on:click={() => goto('/dashboard')}>Get Started</Button
>
</div>


<div class=" text-white py-10">
<div class="container mx-auto text-center items-center justify-center flex flex-col">
<div class="w-40 h-40 text-center items-center justify-center flex">
Expand Down

0 comments on commit 6d7de0d

Please sign in to comment.