dwyl / mvp

📲 simplest version of the @dwyl app
https://mvp.fly.dev
GNU General Public License v2.0
87 stars 2 forks source link

Top Nav #108

Closed nelsonic closed 2 years ago

nelsonic commented 2 years ago

In preparation for adding auth_plug #104 to allow people to save their data, We need a way of showing people that: a) they are not currently logged in -> b) they can login -> login button! c) when they are logged in, an avatar d) a logout button

So I'm thinking of doing a quick side-quest to add a responsive navigation bar to the top of the "page" (App) as per the "crappy" UI sketch I made a while back:

mvp-proposed-ux

We currently already have a lot of this interface in place: https://github.com/dwyl/app-mvp-phoenix/issues/89#issuecomment-1188810720

mvp-showing-checkbox-ends-timer

While we could easily get away with adding auth_plug without a nav or logout button. 💭
After all this is a "scrappy" MVP that doesn't need to have the bells and whistles ... 🔔 We want to have this [nice-to-have] feature so that we can start learning from and iterating on it. 📱

Todo

nelsonic commented 2 years ago

Logo:

<a href="https://dwyl.com" class="flex items-center">
    <img src="https://dwyl.com/img/favicon-32x32.png" class="mr-3 h-6 sm:h-9" alt="dwyl logo">
</a>
nelsonic commented 2 years ago

Drawing inspiration from: https://flowbite.com/docs/components/navbar/

nelsonic commented 2 years ago

Reading: https://tailwindcss.com/docs/reusing-styles#loops

nelsonic commented 2 years ago

Basic Static Top Nav:

image

nelsonic commented 2 years ago

Integrated into the App:

image

Full screen:

image

Consider this done. ✅