mirror of
https://github.com/web3privacy/web
synced 2024-10-15 18:26:27 +02:00
add news to menu, fix responsivity
This commit is contained in:
parent
67fc203919
commit
23d1fe3710
2 changed files with 5 additions and 4 deletions
|
@ -17,6 +17,8 @@ header:
|
|||
# url: /leaderboard
|
||||
- name: Explorer
|
||||
link: explorer
|
||||
- name: News
|
||||
link: news
|
||||
- name: Docs
|
||||
link: docs
|
||||
#- name: Manifesto
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { ViewTransitions } from 'astro:transitions';
|
||||
//import { ViewTransitions } from 'astro:transitions';
|
||||
|
||||
import * as config from '../config.yaml';
|
||||
import core from '../core.json';
|
||||
|
@ -22,7 +22,6 @@ function genHeading(str) {
|
|||
<meta name="description" content={description} />
|
||||
<title>{title ? title + ' | ' + config.title : config.title}</title>
|
||||
|
||||
<ViewTransitions />
|
||||
<link
|
||||
rel="preload"
|
||||
href="/fonts/archivo-regular-latin-ext.woff2"
|
||||
|
@ -50,7 +49,7 @@ function genHeading(str) {
|
|||
<div class="w-full">
|
||||
{config.header.menu.map((menuItem) => (
|
||||
<div class="uppercase w-full">
|
||||
<a href={core.links[menuItem.link] || menuItem.url} class="inline-block hover:underline px-4 py-2" class:list={[menuItem.url?.match(/^http/) ? "external" : "", Astro.url.pathname === menuItem.url ? "text-white" : ""]}>{menuItem.name}</a>
|
||||
<a href={core.links[menuItem.link] || menuItem.url} class="inline-block hover:underline px-4 py-2" class:list={[menuItem.url?.match(/^http/) ? "external" : ""]}>{menuItem.name}</a>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue