Skip to content

Commit

Permalink
update navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
nachat-ayoub committed Feb 17, 2024
1 parent 6805137 commit 6dc78cf
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/WYR-Logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Would You Rather? Shorts Generator</title>
</head>
Expand Down
12 changes: 12 additions & 0 deletions public/WYR-Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

20 changes: 15 additions & 5 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function App() {
<Nav />
<header class='py-4'>
<h1 class='text-xl md:text-3xl font-bold text-center'>
Would You Rather? Shorts Generator
Would You Rather Shorts Generator
</h1>
</header>
<main class='mt-10'>
Expand Down Expand Up @@ -48,6 +48,7 @@ export function App() {
setError('Please enter your email address.');
return;
}

// check if email is valid
else if (
!email.value.match(
Expand All @@ -68,10 +69,10 @@ export function App() {
}
});
}}
class='flex justify-center items-center flex-col gap-y-2'
class='w-full md:px-10 flex justify-center items-center flex-col gap-y-2'
>
<div className='flex justify-center items-center gap-x-2'>
<label class='input input-bordered flex items-center gap-2'>
<div className='w-full flex justify-center items-center gap-x-2'>
<label class='w-full input input-bordered flex items-center gap-2'>
<svg
class='w-4 h-4 opacity-70'
xmlns='http://www.w3.org/2000/svg'
Expand Down Expand Up @@ -145,7 +146,16 @@ export function App() {

function Nav() {
return (
<nav class='w-full navbar navbar-end mb-10'>
<nav class='w-full navbar justify-between mb-10'>
<div className='flex justify-center items-center gap-x-2.5'>
<img
class={'w-10 h-10'}
src='/wyr-shorts-generator/WYR-Logo.svg'
alt='WYR Logo'
/>
<span class={'text-base font-bold'}>WYR Shorts Generator</span>
</div>

<div class='dropdown dropdown-end'>
<div tabIndex={0} role='button' class='btn m-1'>
Theme
Expand Down
1 change: 0 additions & 1 deletion src/assets/preact.svg

This file was deleted.

0 comments on commit 6dc78cf

Please sign in to comment.