diff --git a/src/consts.ts b/src/consts.ts index bf5d8e7..45b9219 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -107,6 +107,6 @@ export const WORLDS: World[] = [ export const MAIN_NAV = [ { label: 'Новости', href: '/' }, { label: 'О нас', href: '/o-nas/' }, - { label: 'Миры', href: '/#worlds' }, + { label: 'Миры', href: '/miry/' }, { label: 'Друзья', href: '/nashi-druzya/' }, ]; diff --git a/src/pages/index.astro b/src/pages/index.astro index bfd2481..05c61e1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,7 +7,7 @@ const posts = (await getCollection('posts')) .sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); const totalPosts = posts.length; -const totalWorlds = WORLDS.length; +const totalWorlds = WORLDS.length; // используется в hero-meta const oldestYear = posts.length ? posts[posts.length - 1].data.pubDate.getFullYear() : SITE_FOUNDED; const fmtDate = (d: Date) => @@ -57,27 +57,4 @@ const fmtDate = (d: Date) => -
-
-

Миры и проекты

- -
- -
diff --git a/src/pages/miry.astro b/src/pages/miry.astro new file mode 100644 index 0000000..c1d33c8 --- /dev/null +++ b/src/pages/miry.astro @@ -0,0 +1,36 @@ +--- +import BaseLayout from '../layouts/BaseLayout.astro'; +import { WORLDS } from '../consts'; +--- + +
+ Игровые проекты +

Миры

+

+ Восемь вселенных проекта — каждая со своим тоном, правилами и многолетней историей игр. +

+
+ +
+ +
+