initial commit

This commit is contained in:
Joren de Graaf
2026-09-26 20:59:01 +02:00
parent e07f08c791
commit e572257f67
201 changed files with 36684 additions and 0 deletions
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+5
View File
@@ -0,0 +1,5 @@
from django.apps import AppConfig
class HelloConfig(AppConfig):
name = 'hello'
View File
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
+150
View File
@@ -0,0 +1,150 @@
:root {
color-scheme: light;
--ink: #172554;
--muted: #64748b;
--card: rgba(255, 255, 255, 0.88);
--accent: #7c3aed;
--accent-light: #ddd6fe;
}
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
margin: 0;
display: grid;
place-items: center;
padding: 2rem;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--ink);
background:
radial-gradient(circle at top left, #bfdbfe 0, transparent 32rem),
radial-gradient(circle at bottom right, #ddd6fe 0, transparent 30rem),
#f8fafc;
}
.welcome-card {
width: min(100%, 42rem);
position: relative;
overflow: hidden;
padding: clamp(2rem, 7vw, 4.5rem);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 1.5rem;
background: var(--card);
box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.16);
backdrop-filter: blur(12px);
}
.welcome-card::before {
content: "";
width: 11rem;
height: 11rem;
position: absolute;
top: -5.5rem;
right: -4rem;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent-light), #93c5fd);
opacity: 0.75;
}
.eyebrow {
margin: 0 0 0.75rem;
color: var(--accent);
font-size: 0.8rem;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
max-width: 26rem;
margin: 0;
font-size: clamp(2.25rem, 7vw, 4.25rem);
line-height: 1.05;
letter-spacing: -0.055em;
}
.subject {
display: inline-flex;
align-items: center;
gap: 0.55rem;
margin: 1.5rem 0 0;
padding: 0.8rem 1rem;
border-radius: 0.85rem;
color: var(--muted);
font-size: 1.1rem;
background: #f8fafc;
}
.subject strong {
color: var(--ink);
}
.sparkle {
color: var(--accent);
font-size: 1.25rem;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.8rem 1.25rem;
border: 1px solid transparent;
border-radius: 12px;
background: #7c3aed;
color: #fff;
font: inherit;
font-weight: 600;
line-height: 1;
text-decoration: none;
cursor: pointer;
box-shadow:
0 4px 10px rgba(124, 58, 237, 0.18),
0 1px 2px rgba(15, 23, 42, 0.08);
transition:
background-color 150ms ease,
box-shadow 150ms ease,
transform 150ms ease;
}
.button:hover {
background: #6d28d9;
color: #fff;
box-shadow:
0 6px 16px rgba(124, 58, 237, 0.24),
0 2px 4px rgba(15, 23, 42, 0.08);
transform: translateY(-1px);
}
.button:active {
background: #5b21b6;
transform: translateY(0);
box-shadow:
0 2px 6px rgba(124, 58, 237, 0.18);
}
.button:focus-visible {
outline: 3px solid rgba(124, 58, 237, 0.25);
outline-offset: 3px;
}
.button:disabled,
.button[aria-disabled="true"] {
opacity: 0.5;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
+34
View File
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welkom · Sound Signal</title>
<style>
:root { --ink:#eef3ff; --muted:#aab9d8; --line:#2b3d68; --blue:#8abaff; --violet:#b69cff; --amber:#ffbd62; }
* { box-sizing:border-box; }
body { min-width:320px; min-height:100vh; display:grid; place-items:center; margin:0; padding:1.5rem; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d; }
.welcome-card { width:min(100%,44rem); position:relative; overflow:hidden; padding:clamp(2rem,7vw,4.75rem); border:1px solid var(--line); border-radius:1.5rem; background:linear-gradient(145deg,#172443e8,#10182ddd); box-shadow:0 1.75rem 5rem #01030c99; backdrop-filter:blur(16px); }
.welcome-card::before { content:""; width:15rem; height:15rem; position:absolute; top:-8rem; right:-6rem; border-radius:50%; background:linear-gradient(135deg,#609df177,#b27be266); filter:blur(1px); }.welcome-card::after { content:""; width:10rem; height:10rem; position:absolute; bottom:-6rem; left:-4rem; border-radius:50%; background:#f4a74225; }
.brand { display:flex; align-items:center; gap:.65rem; margin-bottom:clamp(2rem,5vw,4rem); color:#d9e5ff; font-size:.78rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }.brand-mark { display:grid; width:2.2rem; aspect-ratio:1; place-items:center; border-radius:.7rem; color:#17132b; font-size:1.1rem; background:linear-gradient(135deg,#fcd34d,#fb7185); box-shadow:0 .5rem 1.5rem #fb718550; }
.eyebrow { margin:0 0 .8rem; color:#bad3ff; font-size:.76rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }.eyebrow::before { content:""; display:inline-block; width:.55rem; height:.55rem; margin-right:.45rem; border-radius:50%; background:var(--amber); box-shadow:0 0 0 .25rem #fbbf2430; }
h1 { max-width:10ch; margin:0; font-size:clamp(2.8rem,8vw,5.75rem); line-height:.96; letter-spacing:-.065em; }.subject { max-width:33rem; margin:1.35rem 0 0; color:var(--muted); font-size:clamp(1rem,2vw,1.15rem); line-height:1.65; }.subject strong { color:#e8efff; }.sparkle { color:var(--violet); font-size:1.2em; }
.actions { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:2.25rem; }.button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; }.button:hover { transform:translateY(-2px); filter:brightness(1.08); }.button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; }.hint { color:#99add2; font-size:.82rem; }
@media (max-width:30rem) { .welcome-card { padding:2rem 1.5rem; }.actions { align-items:stretch; flex-direction:column; }.button { width:100%; }.hint { text-align:center; } }
@media (prefers-reduced-motion:reduce) { .button { transition:none; } }
</style>
</head>
<body>
<main class="welcome-card">
<div class="brand"><span class="brand-mark">✦</span> Sound Signal</div>
<p class="eyebrow">Control room</p>
<h1>Welkom {{ naam }}</h1>
<p class="subject"><span class="sparkle">✦</span> Je leert <strong>{{ vak }}</strong>. Explore the prototype for live audio classification and future sensor mapping.</p>
<div class="actions">
<a href="{% url 'fireworks_detect:fireworks' %}" class="button">Open vuurwerk detector <span aria-hidden="true">→</span></a>
<a href="{% url 'fireworks_detect:map' %}" class="button">Open kaart concept <span aria-hidden="true">→</span></a>
<span class="hint">Audio analysis · Sensor map</span>
</div>
</main>
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+6
View File
@@ -0,0 +1,6 @@
from django.urls import path
from .views import hello_view
urlpatterns = [
path('', hello_view, name='hello')
]
+7
View File
@@ -0,0 +1,7 @@
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def hello_view(request):
context = {"naam" :"Joren", "vak": "django"}
return render(request, "home.html", context)