Skip to content

Commit 91d900e

Browse files
authored
Merge pull request #3 from OpenElements/daniel-dev-rebuild
feat: Implement home page and improve navigation and layout
2 parents 17f77fa + 6bbca47 commit 91d900e

23 files changed

+1015
-90
lines changed

nextjs/app/blog/page.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { Metadata } from "next";
2+
3+
export const metadata: Metadata = {
4+
title: "Blog",
5+
description: "Latest updates, announcements, and community stories from the Hiero ecosystem.",
6+
};
7+
8+
export default function BlogPage() {
9+
return (
10+
<div id="hero" className="bg-linear-to-br from-red-dark via-red to-red relative">
11+
<div className="container py-14 sm:py-25 xl:py-36 text-white text-center">
12+
<h1 className="text-[42px] sm:text-5xl leading-none relative mb-2.5">Hiero Blog</h1>
13+
<p className="text-[24px] tracking-[-0.081rem] sm:text-xl relative">
14+
Stay up to date with our latest news and announcements.
15+
</p>
16+
</div>
17+
</div>
18+
);
19+
}

nextjs/app/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ nav a.active::after {
151151
}
152152
}
153153

154+
.active-navigation {
155+
@apply flex;
156+
}
157+
154158
/* ============================================
155159
Anchors & section offsets
156160
============================================ */

nextjs/app/not-found.tsx

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import Link from "next/link";
2+
import Image from "next/image";
3+
4+
export default function NotFound() {
5+
return (
6+
<section className="relative overflow-hidden bg-white min-h-[calc(100vh-90px)] flex items-center py-16 sm:py-24">
7+
<div className="pointer-events-none absolute inset-0">
8+
<div className="absolute -top-28 -left-20 h-72 w-72 rounded-full bg-red/10 blur-3xl" />
9+
<div className="absolute -bottom-36 -right-20 h-96 w-96 rounded-full bg-red-dark/10 blur-3xl" />
10+
</div>
11+
12+
<div className="container relative">
13+
<div className="grid grid-cols-1 gap-10 lg:grid-cols-[1.15fr_0.85fr] lg:gap-14 items-center">
14+
<div className="rounded-3xl bg-linear-to-br from-red-dark via-red to-red text-white p-8 sm:p-10 lg:p-12 shadow-[0_20px_50px_rgba(0,0,0,0.18)]">
15+
<p className="text-sm tracking-[0.2em] uppercase text-white-dark mb-3">Error 404</p>
16+
<h1 className="text-5xl sm:text-6xl lg:text-7xl leading-none tracking-[-0.08rem] mb-4">
17+
This Page
18+
<br />
19+
Is Missing
20+
</h1>
21+
<p className="text-base sm:text-lg text-white-dark max-w-xl">
22+
The link may be outdated, the page may have moved, or the URL might be typed incorrectly.
23+
</p>
24+
25+
<div className="mt-8 flex flex-col gap-3 sm:flex-row sm:items-center">
26+
<Link
27+
href="/"
28+
className="rounded-full bg-white text-charcoal px-6 py-3 text-center font-medium no-underline hover:bg-sand transition-colors"
29+
>
30+
Return Home
31+
</Link>
32+
<Link
33+
href="/blog"
34+
className="rounded-full border border-white text-white px-6 py-3 text-center font-medium no-underline hover:bg-white hover:text-charcoal transition-colors"
35+
>
36+
Visit Blog
37+
</Link>
38+
<Link
39+
href="/#meet"
40+
className="rounded-full border border-white/70 text-white px-6 py-3 text-center font-medium no-underline hover:bg-white hover:text-charcoal transition-colors"
41+
>
42+
Join Community
43+
</Link>
44+
</div>
45+
</div>
46+
47+
<aside className="rounded-3xl border border-white-dark bg-white p-6 sm:p-8 lg:p-10">
48+
<div className="flex items-center gap-4 mb-6">
49+
<Image src="/images/Hiero-Icon.svg" alt="Hiero" width={40} height={40} />
50+
<p className="text-lg font-medium">Try one of these paths</p>
51+
</div>
52+
53+
<ul className="space-y-3 text-base">
54+
<li>
55+
<Link href="/" className="text-red underline hover:text-red-dark">
56+
hiero.org/
57+
</Link>
58+
</li>
59+
<li>
60+
<Link href="/blog" className="text-red underline hover:text-red-dark">
61+
hiero.org/blog
62+
</Link>
63+
</li>
64+
<li>
65+
<a
66+
href="https://github.com/hiero-ledger"
67+
target="_blank"
68+
rel="noreferrer noopener"
69+
className="text-red underline hover:text-red-dark"
70+
>
71+
github.com/hiero-ledger
72+
</a>
73+
</li>
74+
</ul>
75+
76+
<div className="mt-8 rounded-2xl bg-gray-light p-5">
77+
<p className="text-sm text-gray mb-2">Tip</p>
78+
<p className="text-base">
79+
If you entered this URL manually, double-check spelling and punctuation.
80+
</p>
81+
</div>
82+
</aside>
83+
</div>
84+
</div>
85+
</section>
86+
);
87+
}

0 commit comments

Comments
 (0)