Skip to content
Open
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
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

196 changes: 0 additions & 196 deletions index.html

This file was deleted.

41 changes: 41 additions & 0 deletions lssd-community-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
36 changes: 36 additions & 0 deletions lssd-community-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
13 changes: 13 additions & 0 deletions lssd-community-app/app/agents/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use client'
import { useArrests } from '../../lib/useArrests'

export default function Suspects() {
const fullData = useArrests()
// Termine avec ton filtering & rendering existants
return (
<div className="container mx-auto p-4">
<h1 className="text-3xl font-bold mb-6">Liste des suspects</h1>
{/* filtre & carte suspects ici */}
</div>
)
}
Binary file added lssd-community-app/app/favicon.ico
Binary file not shown.
26 changes: 26 additions & 0 deletions lssd-community-app/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@import "tailwindcss";

:root {
--background: #ffffff;
--foreground: #171717;
}

@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
26 changes: 26 additions & 0 deletions lssd-community-app/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});

const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="fr">
<body>{children}</body>
</html>
)
}
18 changes: 18 additions & 0 deletions lssd-community-app/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use client'
import Link from 'next/link'

export default function Home() {
return (
<main className="min-h-screen flex flex-col items-center justify-center bg-gray-100 text-gray-900 p-4">
<h1 className="text-3xl font-bold mb-8">Département du Shériff</h1>
<div className="flex flex-col gap-4 w-full max-w-xs">
<Link className="p-4 bg-blue-600 text-white rounded-xl text-lg font-semibold hover:bg-blue-700 text-center" href="/suspects">
Voir les suspects
</Link>
<Link className="p-4 bg-green-600 text-white rounded-xl text-lg font-semibold hover:bg-green-700 text-center" href="/agents">
Voir les agents
</Link>
</div>
</main>
)
}
Loading