-
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.
- Loading branch information
Showing
7 changed files
with
48 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>Advanced settings</h1> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>Credits</h1> |
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,16 +1,16 @@ | ||
<script> | ||
import { onMount } from 'svelte'; | ||
import { onMount } from 'svelte' | ||
import deffaultProfile from '$lib/assets/images/deffaultProfile.png' | ||
let profilePicture = deffaultProfile; | ||
let username = 'John Doe'; | ||
let email = '[email protected]'; | ||
let password = '********'; | ||
let profilePicture = deffaultProfile | ||
let username = 'John Doe' | ||
let email = '[email protected]' | ||
let password = '********' | ||
onMount(() => { | ||
// Fetch profile picture and user data from API | ||
// and update the variables accordingly | ||
}); | ||
}) | ||
function changeProfilePicture() { | ||
// Logic to change the profile picture | ||
|
@@ -32,26 +32,41 @@ | |
Change Profile Picture | ||
</button> | ||
</div> | ||
|
||
<div class="mt-8 border-b-4 pb-5"> | ||
<div class="mb-4 ml-4 grid grid-cols-2 w-fit"> | ||
<label for="username" class="font-bold mb-2">Username</label> | ||
<input type="text" id="username" class="p-2 rounded border border-slate text-slate-600" bind:value={username} /> | ||
<input | ||
type="text" | ||
id="username" | ||
class="p-2 rounded border border-slate text-slate-600" | ||
bind:value={username} | ||
/> | ||
</div> | ||
|
||
<div class="mb-4 ml-4 grid grid-cols-2 w-fit"> | ||
<label for="email" class="font-bold mb-2">Email</label> | ||
<input type="email" id="email" class="p-2 rounded border border-slate text-slate-600" bind:value={email} /> | ||
<input | ||
type="email" | ||
id="email" | ||
class="p-2 rounded border border-slate text-slate-600" | ||
bind:value={email} | ||
/> | ||
</div> | ||
|
||
<div class="mb-4 ml-4 grid grid-cols-2 w-fit"> | ||
<label for="password" class="font-bold mb-2">Password</label> | ||
<input type="password" id="password" class="p-2 rounded border border-slate text-slate-600" bind:value={password} /> | ||
<input | ||
type="password" | ||
id="password" | ||
class="p-2 rounded border border-slate text-slate-600" | ||
bind:value={password} | ||
/> | ||
</div> | ||
|
||
<button class="bg-red-600 text-slate py-2 px-4 rounded ml-4" on:click={saveModifications}> | ||
Save Modifications | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
33 changes: 15 additions & 18 deletions
33
src/lib/components/ui/profile/sidebar.svelte → ...mponents/dashboard/profile/Sidebar.svelte
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 +1,7 @@ | ||
<script lang="ts"> | ||
import Sidebar from '$components/ui/profile/sidebar.svelte' | ||
import Sidebar from '$components/dashboard/profile/Sidebar.svelte' | ||
</script> | ||
|
||
<slot /> | ||
|
||
<Sidebar /> | ||
|