Skip to content

Commit

Permalink
style: Update styling in header and apps creation pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Aug 13, 2024
1 parent 900682d commit c3c7818
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/views/components/header.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<header style="flex: 0;">
<header style="flex: 0; display: flex; flex-direction: column; gap: 10px;">
<div>
<h1><a href="/">Notify</a></h1>
<p>send notification to discord, email, and sms</p>
</div>

<nav style="display: flex; justify-content: space-between; align-items: center;">
<div>
<div style="display: flex; align-items: center; gap: 10px;">
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>;" href="/apps">Apps</a>
<a style="font-weight: <%= path === '/profile' ? 'bold' : 'normal' %>;" href="/profile">Profile</a>
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>;" href="/settings">Settings</a>
Expand Down
20 changes: 17 additions & 3 deletions src/views/pages/apps-create.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
<div>
<h2>Apps / New</h2>
<p>Create a new app</p>
<div style="display: flex; flex-direction: column; gap: 10px;">
<div>
<h2>Apps / New</h2>
<p>Create a new app</p>
</div>

<form style=" border-style: dashed; border-radius: 5px; padding: 10px; width: fit-content ;" action="/apps" method="POST">
<div>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div>
<label for="is_active">Active:</label>
<input type="checkbox" id="is_active" name="is_active">
</div>
<button type="submit">Submit</button>
</form>
</div>

0 comments on commit c3c7818

Please sign in to comment.