mirror of
https://git.aramjonghu.nl/AramJonghu/aramjonghu-site.git
synced 2026-06-07 01:28:24 +02:00
chore: format frontend with prettier
This commit is contained in:
@@ -27,11 +27,7 @@ export default function Header({ theme }) {
|
|||||||
|
|
||||||
<nav className="flex flex-wrap gap-3 items-center">
|
<nav className="flex flex-wrap gap-3 items-center">
|
||||||
{navItems.map((item) => (
|
{navItems.map((item) => (
|
||||||
<a
|
<a key={item.label} href={item.url} className="ui-btn ui-btn:hover">
|
||||||
key={item.label}
|
|
||||||
href={item.url}
|
|
||||||
className="ui-btn ui-btn:hover"
|
|
||||||
>
|
|
||||||
{item.label}
|
{item.label}
|
||||||
</a>
|
</a>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -113,8 +113,7 @@ export default function ProjectsReadme({ repoUrl }) {
|
|||||||
code({ className, children, ...props }) {
|
code({ className, children, ...props }) {
|
||||||
const isBlock =
|
const isBlock =
|
||||||
className ||
|
className ||
|
||||||
(typeof children === "string" &&
|
(typeof children === "string" && children.includes("\n"));
|
||||||
children.includes("\n"));
|
|
||||||
|
|
||||||
if (isBlock) {
|
if (isBlock) {
|
||||||
return (
|
return (
|
||||||
@@ -171,20 +170,14 @@ export default function ProjectsReadme({ repoUrl }) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
ul: ({ children }) => (
|
ul: ({ children }) => (
|
||||||
<ul className="list-disc pl-6 mb-4">
|
<ul className="list-disc pl-6 mb-4">{children}</ul>
|
||||||
{children}
|
|
||||||
</ul>
|
|
||||||
),
|
),
|
||||||
|
|
||||||
ol: ({ children }) => (
|
ol: ({ children }) => (
|
||||||
<ol className="list-decimal pl-6 mb-4">
|
<ol className="list-decimal pl-6 mb-4">{children}</ol>
|
||||||
{children}
|
|
||||||
</ol>
|
|
||||||
),
|
),
|
||||||
|
|
||||||
li: ({ children }) => (
|
li: ({ children }) => <li className="mb-1">{children}</li>,
|
||||||
<li className="mb-1">{children}</li>
|
|
||||||
),
|
|
||||||
|
|
||||||
a: ({ children, href }) => (
|
a: ({ children, href }) => (
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ export default function Home() {
|
|||||||
◀︎ Prev
|
◀︎ Prev
|
||||||
</button>
|
</button>
|
||||||
<span className="self-center mx-6 font-medium">
|
<span className="self-center mx-6 font-medium">
|
||||||
{projectList[projIdx].name} ({projIdx + 1}/
|
{projectList[projIdx].name} ({projIdx + 1}/{projectList.length})
|
||||||
{projectList.length})
|
|
||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
onClick={nextProject}
|
onClick={nextProject}
|
||||||
@@ -73,16 +72,14 @@ export default function Home() {
|
|||||||
return (
|
return (
|
||||||
<div className="text-ctp-text flex flex-col items-center justify-center px-6 py-6">
|
<div className="text-ctp-text flex flex-col items-center justify-center px-6 py-6">
|
||||||
<div className="w-full max-w-6xl text-center">
|
<div className="w-full max-w-6xl text-center">
|
||||||
<h1 className="text-4xl font-bold text-ctp-mauve">
|
<h1 className="text-4xl font-bold text-ctp-mauve">AramJonghu</h1>
|
||||||
AramJonghu
|
|
||||||
</h1>
|
|
||||||
<p className="mt-4">
|
<p className="mt-4">
|
||||||
Software engineer building systems, services, and
|
Software engineer building systems, services, and experiments across a
|
||||||
experiments across a self-hosted environment.
|
self-hosted environment.
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-3">
|
<p className="mt-3">
|
||||||
This site acts as a hub for projects, infrastructure, and
|
This site acts as a hub for projects, infrastructure, and personal
|
||||||
personal tooling.
|
tooling.
|
||||||
</p>
|
</p>
|
||||||
<div className="mt-10 border rounded p-4">
|
<div className="mt-10 border rounded p-4">
|
||||||
<div className="flex flex-wrap justify-center gap-12 mb-6">
|
<div className="flex flex-wrap justify-center gap-12 mb-6">
|
||||||
@@ -91,9 +88,7 @@ export default function Home() {
|
|||||||
key={section.id}
|
key={section.id}
|
||||||
onClick={() => setActiveTab(section.id)}
|
onClick={() => setActiveTab(section.id)}
|
||||||
className={`ui-btn ${
|
className={`ui-btn ${
|
||||||
activeTab === section.id
|
activeTab === section.id ? "ui-btn-active" : ""
|
||||||
? "ui-btn-active"
|
|
||||||
: ""
|
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{section.title}
|
{section.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user