Skip to content

Commit

Permalink
Add links and, html and generic formatting to staging.zemn.me
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed Jun 6, 2023
1 parent 92f80b1 commit fdd1325
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
3 changes: 3 additions & 0 deletions project/zemn.me/next/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ ts_project(
"//:node_modules/@types/react",
"//:node_modules/next",
"//:node_modules/react",
"//:node_modules/immutable",
"//project/zemn.me/bio",
"//project/zemn.me/elements/TimeEye",
"//ts/next.js",
"//ts/react/lang",
],
)

Expand Down
31 changes: 29 additions & 2 deletions project/zemn.me/next/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,48 @@
import Head from 'next/head';
import * as bio from 'project/zemn.me/bio';
import { TimeEye } from 'project/zemn.me/elements/TimeEye';
import * as lang from 'ts/react/lang';

export default function Main() {
return (
<>
<Head>
<title>zemn.me</title>
<title lang={lang.get(bio.Bio.who.handle)}>
{lang.text(bio.Bio.who.handle)}
</title>
<meta
content="zemn.me git https://github.com/zemnmez/go.git"
name="go-import"
/>
</Head>

<header>
<h1>zemnmez</h1>
<h1 lang={lang.get(bio.Bio.who.handle)}>
{lang.text(bio.Bio.who.handle)}
</h1>
</header>
<main>
<section>
<header>
<TimeEye />
<h2 lang={lang.get(bio.Bio.who.fullName)}>
{lang.text(bio.Bio.who.fullName)}
</h2>
</header>
{bio.Bio.links !== undefined ? (
<nav>
{bio.Bio.links.map(([text, url]) => (
<a
href={url.toString()}
key={lang.get(text)}
lang={lang.get(text)}
>
{lang.text(text)}
</a>
))}
</nav>
) : null}
</section>
<TimeEye />
</main>
</>
Expand Down

0 comments on commit fdd1325

Please sign in to comment.