first commit
This commit is contained in:
90
apps/web/components/Header.vue
Normal file
90
apps/web/components/Header.vue
Normal file
@@ -0,0 +1,90 @@
|
||||
<template>
|
||||
<header class="site-header">
|
||||
<div class="wrap">
|
||||
<div class="brand">
|
||||
<div class="logo">ga</div>
|
||||
<div>
|
||||
<h2>gob-alert</h2>
|
||||
<span>Radar de datos públicos</span>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<NuxtLink to="/landing">Inicio</NuxtLink>
|
||||
<NuxtLink to="/">Dashboard</NuxtLink>
|
||||
<NuxtLink to="/discover">Descubrir</NuxtLink>
|
||||
<NuxtLink to="/catalog">Catálogo</NuxtLink>
|
||||
<NuxtLink to="/alerts">Alertas</NuxtLink>
|
||||
<NuxtLink to="/plans">Planes</NuxtLink>
|
||||
<NuxtLink to="/admin">Admin</NuxtLink>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.site-header {
|
||||
background: #0f172a;
|
||||
color: #fff;
|
||||
padding: 1.2rem 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
.wrap {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
padding: 0 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
.logo {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: 14px;
|
||||
background: #38bdf8;
|
||||
color: #0f172a;
|
||||
font-weight: 700;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
.brand h2 {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.brand span {
|
||||
font-size: 0.8rem;
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
nav {
|
||||
display: flex;
|
||||
gap: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
nav a {
|
||||
color: rgba(255, 255, 255, 0.75);
|
||||
text-decoration: none;
|
||||
}
|
||||
nav a.router-link-active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.wrap {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
nav {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user