Revert "update"

This reverts commit 75cc618c2b.
This commit is contained in:
pacnpal
2025-09-21 20:11:00 -04:00
parent 75cc618c2b
commit 540f40e689
610 changed files with 4812 additions and 1715 deletions

View File

@@ -1,121 +0,0 @@
{% extends 'base/base.html' %}
{% load static %}
{% block title %}{{ designer.name }} - ThrillWiki{% endblock %}
{% block content %}
<div class="container px-4 mx-auto">
<!-- Header -->
<div class="grid grid-cols-1 gap-6 mb-8 lg:grid-cols-3">
<!-- Designer Info -->
<div class="lg:col-span-2">
<div class="p-6 bg-white rounded-lg shadow dark:bg-gray-800">
<h1 class="mb-2 text-3xl font-bold text-gray-900 dark:text-white">{{ designer.name }}</h1>
{% if designer.description %}
<div class="mt-4 prose dark:prose-invert max-w-none">
{{ designer.description|linebreaks }}
</div>
{% endif %}
</div>
</div>
<!-- Stats Card -->
<div class="lg:col-span-1">
<div class="p-6 bg-white rounded-lg shadow dark:bg-gray-800">
<h2 class="mb-4 text-xl font-semibold text-gray-900 dark:text-white">Quick Stats</h2>
<dl class="grid grid-cols-2 gap-4">
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Total Rides</dt>
<dd class="mt-1 text-3xl font-semibold text-blue-600 dark:text-blue-400">{{ stats.total_rides }}</dd>
</div>
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Roller Coasters</dt>
<dd class="mt-1 text-3xl font-semibold text-blue-600 dark:text-blue-400">{{ stats.total_coasters }}</dd>
</div>
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Parks</dt>
<dd class="mt-1 text-3xl font-semibold text-blue-600 dark:text-blue-400">{{ stats.total_parks }}</dd>
</div>
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Countries</dt>
<dd class="mt-1 text-3xl font-semibold text-blue-600 dark:text-blue-400">{{ stats.total_countries }}</dd>
</div>
</dl>
{% if designer.website %}
<div class="mt-6">
<a href="{{ designer.website }}" target="_blank" rel="noopener noreferrer"
class="inline-flex items-center text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300">
<i class="mr-2 fas fa-external-link-alt"></i>
Visit Website
</a>
</div>
{% endif %}
</div>
</div>
</div>
<!-- Rides List -->
<div class="p-6 bg-white rounded-lg shadow dark:bg-gray-800">
<h2 class="mb-6 text-2xl font-semibold text-gray-900 dark:text-white">Designed Rides</h2>
{% if rides %}
<div class="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
{% for ride in rides %}
<div class="p-4 transition-shadow rounded-lg bg-gray-50 hover:shadow-md dark:bg-gray-700/50">
<div class="flex items-start justify-between">
<div>
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">
<a href="{% url 'parks:rides:ride_detail' park_slug=ride.park.slug ride_slug=ride.slug %}"
class="hover:text-blue-600 dark:hover:text-blue-400">
{{ ride.name }}
</a>
</h3>
<p class="text-sm text-gray-600 dark:text-gray-400">
at <a href="{% url 'parks:park_detail' ride.park.slug %}"
class="text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300">
{{ ride.park.name }}
</a>
</p>
</div>
<span class="px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-full dark:bg-blue-700 dark:text-blue-50">
{{ ride.get_category_display }}
</span>
</div>
<div class="grid grid-cols-2 gap-4 mt-4">
{% if ride.opening_date %}
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Opened</dt>
<dd class="text-gray-900 dark:text-white">{{ ride.opening_date }}</dd>
</div>
{% endif %}
{% if ride.manufacturer %}
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Manufacturer</dt>
<dd class="text-gray-900 dark:text-white">{{ ride.manufacturer.name }}</dd>
</div>
{% endif %}
{% if ride.category == 'RC' and ride.coaster_stats %}
{% if ride.coaster_stats.height_ft %}
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Height</dt>
<dd class="text-gray-900 dark:text-white">{{ ride.coaster_stats.height_ft }} ft</dd>
</div>
{% endif %}
{% if ride.coaster_stats.speed_mph %}
<div>
<dt class="text-sm font-medium text-gray-500 dark:text-gray-400">Speed</dt>
<dd class="text-gray-900 dark:text-white">{{ ride.coaster_stats.speed_mph }} mph</dd>
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<p class="text-gray-500 dark:text-gray-400">No rides found.</p>
{% endif %}
</div>
</div>
{% endblock %}

View File

@@ -1,92 +0,0 @@
{% extends "base/base.html" %}
{% load static %}
{% block title %}Ride Designers - ThrillWiki{% endblock %}
{% block content %}
<div class="container mx-auto px-4 py-8">
<div class="mb-8">
<h1 class="text-3xl font-bold mb-2">Ride Designers</h1>
<p class="text-muted-foreground">
Discover the creative minds behind the world's most innovative attractions.
{{ total_designers }} designer{{ total_designers|pluralize }} found.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{% for designer in designers %}
<div class="bg-card rounded-lg border p-6 hover:shadow-md transition-shadow">
<div class="flex items-start justify-between mb-4">
<div>
<h3 class="text-lg font-semibold mb-1">{{ designer.name }}</h3>
{% if designer.founded_date %}
<p class="text-sm text-muted-foreground">Founded {{ designer.founded_date.year }}</p>
{% endif %}
</div>
<div class="text-right">
<span class="inline-flex items-center rounded-full bg-primary/10 px-2 py-1 text-xs font-medium text-primary">
{{ designer.ride_count }} ride{{ designer.ride_count|pluralize }}
</span>
</div>
</div>
{% if designer.description %}
<p class="text-sm text-muted-foreground mb-4 line-clamp-3">
{{ designer.description|truncatewords:20 }}
</p>
{% endif %}
<div class="flex items-center justify-between">
{% if designer.website %}
<a href="{{ designer.website }}" target="_blank" rel="noopener noreferrer"
class="text-sm text-primary hover:underline">
<i class="fas fa-external-link-alt mr-1"></i>
Website
</a>
{% else %}
<span></span>
{% endif %}
<a href="#" class="text-sm text-primary hover:underline">
View Rides →
</a>
</div>
</div>
{% empty %}
<div class="col-span-full text-center py-12">
<i class="fas fa-drafting-compass text-4xl text-muted-foreground mb-4"></i>
<h3 class="text-lg font-semibold mb-2">No designers found</h3>
<p class="text-muted-foreground">There are no designers to display at this time.</p>
</div>
{% endfor %}
</div>
{% if is_paginated %}
<div class="mt-8 flex justify-center">
<nav class="flex items-center space-x-2">
{% if page_obj.has_previous %}
<a href="?page=1" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
First
</a>
<a href="?page={{ page_obj.previous_page_number }}" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
Previous
</a>
{% endif %}
<span class="px-3 py-2 text-sm font-medium">
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}
</span>
{% if page_obj.has_next %}
<a href="?page={{ page_obj.next_page_number }}" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
Next
</a>
<a href="?page={{ page_obj.paginator.num_pages }}" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
Last
</a>
{% endif %}
</nav>
</div>
{% endif %}
</div>
{% endblock %}