mirror of
https://github.com/0xShay/halflink.git
synced 2026-01-11 13:13:25 +00:00
Clicking on header redirects to base URL
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Halflink",
|
title: "Halflink",
|
||||||
@@ -14,7 +15,13 @@ export default function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className="">
|
<body className="">
|
||||||
{children}
|
<div className="bg-stone-300 flex min-h-screen flex-col items-center justify-center py-2 text-center">
|
||||||
|
<Link className="cursor-pointer" href="/">
|
||||||
|
<h1 className="text-3xl font-bold text-red-950">halflink</h1>
|
||||||
|
<p className="text-black">Shorten a link with ease.</p>
|
||||||
|
</Link>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -59,10 +59,7 @@ export default function Home() {
|
|||||||
}, [params.id]);
|
}, [params.id]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-stone-300 flex min-h-screen flex-col items-center justify-center py-2 text-center">
|
<div>
|
||||||
<h1 className="text-3xl font-bold text-red-950">halflink</h1>
|
|
||||||
<p className="text-black">Shorten a link with ease.</p>
|
|
||||||
|
|
||||||
{errorMessage && (
|
{errorMessage && (
|
||||||
<p className="mt-4 text-red-800 font-bold">{errorMessage}</p>
|
<p className="mt-4 text-red-800 font-bold">{errorMessage}</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -44,10 +44,7 @@ export default function Home() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-stone-300 flex min-h-screen flex-col items-center justify-center py-2 text-center">
|
<div>
|
||||||
<h1 className="text-3xl font-bold text-red-950">halflink</h1>
|
|
||||||
<p className="text-black">Shorten a link with ease.</p>
|
|
||||||
|
|
||||||
<form className="mt-4 flex w-full max-w-xl" onSubmit={handleSubmit}>
|
<form className="mt-4 flex w-full max-w-xl" onSubmit={handleSubmit}>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
Reference in New Issue
Block a user