Test
This commit is contained in:
parent
7ae57aeab0
commit
57416517f2
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,8 @@
|
||||
from django.contrib import admin
|
||||
from .models import Event
|
||||
|
||||
# Register your models here.
|
||||
@admin.register(Event)
|
||||
class EventAdmin(admin.ModelAdmin):
|
||||
list_display = ('artist_name', 'venue_name', 'date', 'city', 'status', 'age_restriction')
|
||||
list_filter = ('status', 'city', 'date', 'age_restriction')
|
||||
search_fields = ('artist_name', 'venue_name', 'city')
|
||||
@ -1,3 +1,29 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Event(models.Model):
|
||||
AGE_CHOICES = [
|
||||
('18+', '18+'),
|
||||
('21+', '21+'),
|
||||
('All Ages', 'All Ages'),
|
||||
]
|
||||
STATUS_CHOICES = [
|
||||
('Open', 'Open'),
|
||||
('Closed', 'Closed'),
|
||||
]
|
||||
|
||||
artist_name = models.CharField(max_length=200)
|
||||
date = models.DateField()
|
||||
venue_name = models.CharField(max_length=200)
|
||||
city = models.CharField(max_length=100)
|
||||
state = models.CharField(max_length=100)
|
||||
age_restriction = models.CharField(max_length=10, choices=AGE_CHOICES, default='21+')
|
||||
status = models.CharField(max_length=10, choices=STATUS_CHOICES, default='Open')
|
||||
description = models.TextField(blank=True)
|
||||
featured_image = models.URLField(max_length=200, blank=True)
|
||||
ticket_url = models.URLField(max_length=200, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.artist_name} at {self.venue_name} on {self.date}"
|
||||
|
||||
class Meta:
|
||||
ordering = ['date']
|
||||
@ -1,11 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Knowledge Base{% endblock %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Sacred Hive Promo Dashboard{% endblock %}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="/">Sacred Hive</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav ms-auto">
|
||||
<li class="nav-item"><a class="nav-link active" href="/">Home</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Events</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">About</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#">Merch</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer class="py-4 text-center">
|
||||
<div class="container">
|
||||
<p class="mb-0">© 2025 Sacred Hive. All Rights Reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,154 +1,45 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{{ project_name }}{% endblock %}
|
||||
{% block title %}Home - Sacred Hive Promo Dashboard{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
{% if project_description %}
|
||||
<meta name="description" content="{{ project_description }}">
|
||||
<meta property="og:description" content="{{ project_description }}">
|
||||
<meta property="twitter:description" content="{{ project_description }}">
|
||||
{% endif %}
|
||||
{% if project_image_url %}
|
||||
<meta property="og:image" content="{{ project_image_url }}">
|
||||
<meta property="twitter:image" content="{{ project_image_url }}">
|
||||
{% endif %}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@keyframes bg-pan {
|
||||
0% {
|
||||
background-position: 0% 0%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2.5rem 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
|
||||
font-weight: 700;
|
||||
margin: 0 0 1.2rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.loader {
|
||||
margin: 1.5rem auto;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border: 4px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.runtime code {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
padding: 0.15rem 0.45rem;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 0.85rem;
|
||||
opacity: 0.75;
|
||||
}
|
||||
</style>
|
||||
<meta name="description" content="The official promo dashboard for Sacred Hive events. Apply for influencer promotions and manage your event participation.">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your app…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
<div class="hero-section text-center">
|
||||
<div class="container">
|
||||
<h1 class="hero-title">Sacred Hive Promo Dashboard</h1>
|
||||
<p class="hero-tagline">Your portal to the underground. Apply, promote, and get on the list.</p>
|
||||
</div>
|
||||
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
|
||||
<p class="runtime">
|
||||
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
|
||||
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<div class="container content-section">
|
||||
<h2 class="section-title">Upcoming Events</h2>
|
||||
<div class="row gy-4">
|
||||
{% if events %}
|
||||
{% for event in events %}
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="event-card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-start mb-2">
|
||||
<h5 class="card-title">{{ event.artist_name }}</h5>
|
||||
<span class="badge status-badge status-{{ event.status|lower }}">{{ event.status }}</span>
|
||||
</div>
|
||||
<p class="card-text"><span class="icon">📅</span> {{ event.date|date:"m/d/y" }}</p>
|
||||
<p class="card-text"><span class="icon">📍</span> {{ event.venue_name }} - {{ event.city }}, {{ event.state }}</p>
|
||||
<p class="card-text"><span class="icon">🔞</span> {{ event.age_restriction }}</p>
|
||||
<a href="#" class="stretched-link"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="col">
|
||||
<p class="text-center">No upcoming events. Check back soon!</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@ -1,25 +1,9 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
from django import get_version as django_version
|
||||
from django.shortcuts import render
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
def home(request):
|
||||
"""Render the landing screen with loader and environment details."""
|
||||
host_name = request.get_host().lower()
|
||||
agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
|
||||
now = timezone.now()
|
||||
from .models import Event
|
||||
|
||||
def index(request):
|
||||
events = Event.objects.all()
|
||||
context = {
|
||||
"project_name": "New Style",
|
||||
"agent_brand": agent_brand,
|
||||
"django_version": django_version(),
|
||||
"python_version": platform.python_version(),
|
||||
"current_time": now,
|
||||
"host_name": host_name,
|
||||
"project_description": os.getenv("PROJECT_DESCRIPTION", ""),
|
||||
"project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
|
||||
'events': events,
|
||||
}
|
||||
return render(request, "core/index.html", context)
|
||||
return render(request, "core/index.html", context)
|
||||
133
static/css/custom.css
Normal file
133
static/css/custom.css
Normal file
@ -0,0 +1,133 @@
|
||||
:root {
|
||||
--dark-indigo: #0D0C1D;
|
||||
--purple-accent: #9F70FD;
|
||||
--blue-accent: #4A90E2;
|
||||
--light-text: #FFFFFF;
|
||||
--muted-text: #a0aec0;
|
||||
--status-open: #7ED321;
|
||||
--status-closed: #888888;
|
||||
--card-bg: #1A192D;
|
||||
--card-border: rgba(159, 112, 253, 0.2);
|
||||
--font-headings: 'Poppins', sans-serif;
|
||||
--font-body: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--dark-indigo);
|
||||
color: var(--light-text);
|
||||
font-family: var(--font-body);
|
||||
padding-top: 70px; /* For fixed navbar */
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background-color: rgba(13, 12, 29, 0.85);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-family: var(--font-headings);
|
||||
font-weight: 700;
|
||||
font-size: 1.5rem;
|
||||
color: var(--purple-accent) !important;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
font-weight: 500;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.nav-link:hover, .nav-link.active {
|
||||
color: var(--purple-accent) !important;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 6rem 0;
|
||||
background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(159, 112, 253, 0.1));
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-family: var(--font-headings);
|
||||
font-size: clamp(2.5rem, 5vw, 4rem);
|
||||
font-weight: 700;
|
||||
color: var(--light-text);
|
||||
}
|
||||
|
||||
.hero-tagline {
|
||||
font-size: 1.25rem;
|
||||
color: var(--muted-text);
|
||||
max-width: 600px;
|
||||
margin: 1rem auto 0;
|
||||
}
|
||||
|
||||
.content-section {
|
||||
padding: 4rem 0;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: var(--font-headings);
|
||||
font-weight: 600;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 2.5rem;
|
||||
text-align: center;
|
||||
color: var(--light-text);
|
||||
}
|
||||
|
||||
.event-card {
|
||||
background-color: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 12px;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.event-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(159, 112, 253, 0.1);
|
||||
}
|
||||
|
||||
.event-card .card-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.event-card .card-title {
|
||||
font-family: var(--font-headings);
|
||||
font-weight: 600;
|
||||
font-size: 1.3rem;
|
||||
color: var(--light-text);
|
||||
}
|
||||
|
||||
.event-card .card-text {
|
||||
color: var(--muted-text);
|
||||
margin-bottom: 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.event-card .card-text .icon {
|
||||
margin-right: 0.75rem;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
padding: 0.4em 0.8em;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.status-open {
|
||||
background-color: rgba(126, 211, 33, 0.15);
|
||||
color: var(--status-open);
|
||||
}
|
||||
|
||||
.status-closed {
|
||||
background-color: rgba(136, 136, 136, 0.15);
|
||||
color: var(--status-closed);
|
||||
}
|
||||
|
||||
footer {
|
||||
background-color: var(--card-bg);
|
||||
color: var(--muted-text);
|
||||
border-top: 1px solid var(--card-border);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user