diff --git a/.gitignore b/.gitignore index 01355d6..6c9c37e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,3 @@ node_modules package-lock.json ontologies - -next-movie-database -react-movie-database \ No newline at end of file diff --git a/examples/next-movie-database/.eslintrc.json b/examples/next-movie-database/.eslintrc.json new file mode 100644 index 0000000..913cdba --- /dev/null +++ b/examples/next-movie-database/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next", "next/core-web-vitals", "prettier"] +} diff --git a/examples/next-movie-database/.gitignore b/examples/next-movie-database/.gitignore new file mode 100644 index 0000000..fd3dbb5 --- /dev/null +++ b/examples/next-movie-database/.gitignore @@ -0,0 +1,36 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/examples/next-movie-database/.vscode/settings.json b/examples/next-movie-database/.vscode/settings.json new file mode 100644 index 0000000..100de18 --- /dev/null +++ b/examples/next-movie-database/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.tabSize": 2 +} diff --git a/examples/next-movie-database/README.md b/examples/next-movie-database/README.md new file mode 100644 index 0000000..a1a93a3 --- /dev/null +++ b/examples/next-movie-database/README.md @@ -0,0 +1,20 @@ +# Linked Data Movie Database + +This is a IMDb-like movie database based on Linked Data and DBpedia. + +Build with [LDkit](https://ldkit.io), React, TailwindCSS and Next.js. + +## Getting Started + +1. Install dependencies +```bash +npm install +``` + +2. Run the development server: + +```bash +npm run dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. diff --git a/examples/next-movie-database/app/favicon.ico b/examples/next-movie-database/app/favicon.ico new file mode 100644 index 0000000..718d6fe Binary files /dev/null and b/examples/next-movie-database/app/favicon.ico differ diff --git a/examples/next-movie-database/app/globals.css b/examples/next-movie-database/app/globals.css new file mode 100644 index 0000000..1a39b4a --- /dev/null +++ b/examples/next-movie-database/app/globals.css @@ -0,0 +1,21 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 255, 255, 255; + --background-end-rgb: 255, 255, 255; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } +} + +body { + color: rgb(var(--foreground-rgb)); +} diff --git a/examples/next-movie-database/app/layout.tsx b/examples/next-movie-database/app/layout.tsx new file mode 100644 index 0000000..5e64926 --- /dev/null +++ b/examples/next-movie-database/app/layout.tsx @@ -0,0 +1,27 @@ +import type { Metadata } from "next"; +import "./globals.css"; +import { Header } from "@/components/Header"; +import { Footer } from "@/components/Footer"; + +export const metadata: Metadata = { + title: "Linked Data Movie Database", + description: "Browse and search movies and actors from Wikidata", +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + +
+
+ {children} +
+