Skip to content

Commit

Permalink
Merge pull request #15 from tskaigi/feature/header
Browse files Browse the repository at this point in the history
feat: 🎸 add header
  • Loading branch information
masayaO authored Nov 22, 2024
2 parents 0a62b09 + 22b6edd commit 7864e0f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
30 changes: 30 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from "next";
import { Noto_Sans_JP, Outfit } from "next/font/google";
import type React from "react";
import "./globals.css";
import { Header } from "@/components/Header";

const outfit = Outfit({
subsets: ["latin"],
Expand All @@ -26,6 +27,7 @@ export default function RootLayout({
return (
<html lang="ja" suppressHydrationWarning>
<body className={`${outfit.variable} ${notoSansJP.variable} font-sans`}>
<Header />
{children}
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SeekingSponsorsSection } from "@/components/SeekingSponsorsSection";

export default function Home() {
return (
<div className="flex flex-col items-center justify-center min-h-screen gap-4">
<div className="flex flex-col items-center justify-center gap-4">
<h1 className="text-4xl font-bold">TSKaigi 2025</h1>
<SeekingSponsorsSection />
</div>
Expand Down
9 changes: 9 additions & 0 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

export function Header() {
return (
<header className="sticky top-0 w-full p-4 lg:p-8 bg-background">
<img src="/logo.svg" className="w-40 lg:w-64" alt="logo" />
</header>
);
}

0 comments on commit 7864e0f

Please sign in to comment.