Skip to content

Commit bebfe66

Browse files
committed
Add title
1 parent 7828103 commit bebfe66

File tree

3 files changed

+35
-29
lines changed

3 files changed

+35
-29
lines changed

app/layout.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
import "@/index.css"
2+
13
export const metadata = {
2-
title: "Next.js",
3-
description: "Generated by Next.js",
4+
title: "NEP Search",
5+
description: "Search for Fair Digital Objects"
46
}
57

6-
export default function RootLayout({
7-
children,
8-
}: {
9-
children: React.ReactNode
10-
}) {
8+
export default function RootLayout({ children }: { children: React.ReactNode }) {
119
return (
1210
<html lang="en">
1311
<body>{children}</body>

app/page.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import type { FairDOConfig } from "@/config/FairDOConfig"
22
import { FairDOElasticSearch } from "@/components/FairDOElasticSearch"
3-
import "@/index.css"
43

54
const demoConfig: FairDOConfig = {
65
logo: "",
7-
title: "NEP",
6+
title: "NEP Search",
87
debug: false,
98
alwaysSearchOnInitialLoad: true,
109
// host: "https://matwerk.datamanager.kit.edu/search-proxy/api/v1",
@@ -45,5 +44,14 @@ const demoConfig: FairDOConfig = {
4544
}
4645

4746
export default function Page() {
48-
return <FairDOElasticSearch config={demoConfig} />
47+
return (
48+
<div className="flex flex-col items-center">
49+
<div className="bg-muted font-bold w-full p-10">
50+
<h1 className="text-4xl">NEP Search</h1>
51+
</div>
52+
<div className="max-w-[1300px] w-[min(1300px,100vw)]">
53+
<FairDOElasticSearch config={demoConfig} />
54+
</div>
55+
</div>
56+
)
4957
}

tailwind.config.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@ import animatePlugin from "tailwindcss-animate"
44

55
export default {
66
darkMode: ["class"],
7-
content: ["./src/**/*.{ts,tsx,js,jsx,css}"],
7+
content: ["./src/**/*.{ts,tsx,js,jsx,css}", "./app/**/*.{ts,tsx}"],
88
theme: {
99
extend: {
1010
borderRadius: {
1111
lg: "var(--radius)",
1212
md: "calc(var(--radius) - 2px)",
13-
sm: "calc(var(--radius) - 4px)",
13+
sm: "calc(var(--radius) - 4px)"
1414
},
1515
colors: {
1616
background: "hsl(var(--background))",
1717
foreground: "hsl(var(--foreground))",
1818
card: {
1919
DEFAULT: "hsl(var(--card))",
20-
foreground: "hsl(var(--card-foreground))",
20+
foreground: "hsl(var(--card-foreground))"
2121
},
2222
popover: {
2323
DEFAULT: "hsl(var(--popover))",
24-
foreground: "hsl(var(--popover-foreground))",
24+
foreground: "hsl(var(--popover-foreground))"
2525
},
2626
primary: {
2727
DEFAULT: "hsl(var(--primary))",
28-
foreground: "hsl(var(--primary-foreground))",
28+
foreground: "hsl(var(--primary-foreground))"
2929
},
3030
secondary: {
3131
DEFAULT: "hsl(var(--secondary))",
32-
foreground: "hsl(var(--secondary-foreground))",
32+
foreground: "hsl(var(--secondary-foreground))"
3333
},
3434
muted: {
3535
DEFAULT: "hsl(var(--muted))",
36-
foreground: "hsl(var(--muted-foreground))",
36+
foreground: "hsl(var(--muted-foreground))"
3737
},
3838
accent: {
3939
DEFAULT: "hsl(var(--accent))",
40-
foreground: "hsl(var(--accent-foreground))",
40+
foreground: "hsl(var(--accent-foreground))"
4141
},
4242
destructive: {
4343
DEFAULT: "hsl(var(--destructive))",
44-
foreground: "hsl(var(--destructive-foreground))",
44+
foreground: "hsl(var(--destructive-foreground))"
4545
},
4646
border: "hsl(var(--border))",
4747
input: "hsl(var(--input))",
@@ -51,23 +51,23 @@ export default {
5151
2: "hsl(var(--chart-2))",
5252
3: "hsl(var(--chart-3))",
5353
4: "hsl(var(--chart-4))",
54-
5: "hsl(var(--chart-5))",
55-
},
54+
5: "hsl(var(--chart-5))"
55+
}
5656
},
5757
keyframes: {
5858
"outline-ping": {
5959
"0%, 100%": {
60-
outline: "5px solid transparent",
60+
outline: "5px solid transparent"
6161
},
6262
"75%": {
63-
outline: "5px solid hsl(var(--primary))",
64-
},
65-
},
63+
outline: "5px solid hsl(var(--primary))"
64+
}
65+
}
6666
},
6767
animation: {
68-
"outline-ping": "outline-ping 1s ease-in-out",
69-
},
70-
},
68+
"outline-ping": "outline-ping 1s ease-in-out"
69+
}
70+
}
7171
},
72-
plugins: [animatePlugin],
72+
plugins: [animatePlugin]
7373
}

0 commit comments

Comments
 (0)