fabricadesoftware-ifc / fabricaNode_FrontEnd

Bem-vindo ao repositório do frontend do Fábrica Node! Utilizando Vue.js e TypeScript, organizamos e distribuímos artigos dos servidores do IFC através de um grafo dinâmico baseado em categorias e palavras-chave. Explore nosso projeto e contribua!
0 stars 1 forks source link

FEAT: Add loged header #32

Open Caussz opened 2 months ago

Caussz commented 2 months ago

Modify Header to Indicate User Login Status

Description:

This task involves modifying the header to indicate when a user is logged in by replacing the "Login" button. The implementation should follow the pre-established design in Figma and be created as a component with v-if logic to conditionally render the appropriate button.

Checklist:

Example:

<template>
    <div class="header-desktop">
        <TextLogo />
        <ul class="routers-desktop">
            <ListTitles class="router-link" v-for="(text, index) in templateStore.titles" :key="index" :title="text.text" :link="text.link" />
        </ul>
        <LoginButton v-if=''i!sLogged />
        <userBasicInfo v-else>
    </div>
</template>

Notes:

Caussz commented 2 months ago

At first I'm going to help you kill this task and show you some interesting ways to implement state management, this task goes quickly