Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/hobbies/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function HobbyPage({ params }: PageProps) {
const filteredPosts = posts.filter((post) => post.hobby?.slug === slug);

return (
<div className="relative p-4 w-full space-y-4">
<div className="relative px-4 pt-12 pb-40 w-full space-y-4">
<NewPost />
<div className="w-full grid grid-cols-1 gap-4 md:grid-cols-2 ">
{filteredPosts.map((post) => (
Expand Down
1 change: 1 addition & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function RootLayout({
<SessionProviderWrapper>
<Header />
<main className="flex-grow">{children}</main>
<div className="flex-grow mt-50" />
</SessionProviderWrapper>
<Footer />
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function LoginPage() {
}

return (
<div className="flex items-center justify-center mt-8 flex-col">
<div className="flex items-center justify-center mt-12 flex-col">
<form
onSubmit={handleSubmit}
className="flex flex-col gap-4 items-center w-72"
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default async function Home() {
const session = await getServerSession(authOptions);

return (
<div className="flex flex-col gap-8 items-center justify-center m-8 font-bold text-xl h-full">
<div className="flex flex-col gap-12 items-center justify-center m-20 font-bold text-xl h-full">
<div>
{session ? (
<p>Velkommen, {session.user?.name}!</p>
Expand Down
2 changes: 1 addition & 1 deletion app/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function RegisterPage() {
}

return (
<div className="flex items-center justify-center my-6 flex-col">
<div className="flex items-center justify-center my-12 flex-col">
<form
onSubmit={handleSubmit}
className="flex flex-col gap-4 items-center w-72"
Expand Down
2 changes: 0 additions & 2 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function Header() {
const [ending, setEnding] = useState("kompis");
const [bergenser, setBergenser] = useState(false);

// 🧠 Update ending when bergenser changes
useEffect(() => {
if (bergenser) {
setEnding("tjommi");
Expand All @@ -25,7 +24,6 @@ export function Header() {
}
}, [bergenser]);

// 🧠 Update title and bade when pathname or ending changes
useEffect(() => {
if (pathname.startsWith("/hobbies/")) {
const hobby = pathname.split("/")[2];
Expand Down
4 changes: 2 additions & 2 deletions components/interestsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default async function InterestMenu() {
const user = session?.user;

return (
<div className="flex flex-col gap-8 items-center justify-center m-6 font-bold text-xl">
<h1>Hvilke interesser har du?</h1>
<div className="flex flex-col gap-16 items-center justify-center m-6 font-bold text-xl">
<h1 className="text-3xl">Hvilke interesser har du?</h1>

<div className="w-full max-w-screen overflow-hidden">
<div className="animate-scroll flex gap-4 whitespace-nowrap w-max">
Expand Down