-
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.
style: Update styling in settings page and layout files
- Loading branch information
Showing
3 changed files
with
76 additions
and
4 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
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,32 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<%- include('../components/head.html') %> | ||
|
||
<body style="display: flex; flex-direction: column; gap: 20px; min-height: 100vh;"> | ||
|
||
<%- include('../components/header.html') %> | ||
|
||
<main style="flex: 1; display: flex; flex-direction: column; gap: 10px;"> | ||
|
||
<h2>Settings</h2> | ||
|
||
<div style="display: grid; grid-template-columns: 15% 85%; flex: 1;"> | ||
<aside style="display: inline-block; border-right: dashed; height: 100%;"> | ||
<div style="display: flex; flex-direction: column; gap: 10px"> | ||
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>; <%= path === '/settings' ? 'text-decoration: underline' : null %>" href="/settings">Settings</a> | ||
</div> | ||
</aside> | ||
|
||
<div style="display: inline-block; padding-left: 40px;"> | ||
<%- body %> | ||
</div> | ||
|
||
</div> | ||
|
||
</main> | ||
|
||
<%- include('../components/footer.html') %> | ||
|
||
</body> | ||
</html> |
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,4 +1,44 @@ | ||
<div> | ||
<h2>Settings</h2> | ||
<p>Settings</p> | ||
<div style="display: flex; flex-direction: column; gap: 20px; max-width: 100%;"> | ||
|
||
<div style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;"> | ||
<h2 style="margin: 0;">Settings</h2> | ||
<span>settings</span> | ||
</div> | ||
|
||
<div style="display: flex; flex-direction: column; gap: 20px; max-width: 100%;"> | ||
<form | ||
style="border-style: dashed; border-radius: 5px; padding: 20px; width: fit-content; display: flex; flex-direction: column; gap: 10px;" | ||
action="#" method="POST"> | ||
|
||
<div> | ||
<h3>Account</h3> | ||
<p>Manage your account details.</p> | ||
</div> | ||
|
||
<div> | ||
<label for="name">Username:</label> | ||
<input type="text" id="username" name="username" required> | ||
</div> | ||
|
||
<div> | ||
<label for="name">Email:</label> | ||
<input type="text" id="email" name="email" required> | ||
</div> | ||
|
||
<button type="submit">Update</button> | ||
</form> | ||
|
||
<form | ||
style="border-style: dashed; border-radius: 5px; padding: 20px; width: fit-content; display: flex; flex-direction: column; gap: 10px;" | ||
action="#" method="POST"> | ||
|
||
<div> | ||
<h3>Danger Zone</h3> | ||
<p>The following actions are destructive and cannot be reversed.</p> | ||
</div> | ||
|
||
<button type="submit">Delete my account</button> | ||
</form> | ||
</div> | ||
|
||
</div> |