Readying for design

This commit is contained in:
Jennie Robinson Faber 2026-03-04 18:24:20 +00:00
parent d73256ca2b
commit fadf473dde
50 changed files with 1478 additions and 1259 deletions

View file

@ -1,27 +1,27 @@
<template>
<div>
<div class="bg-white border-b">
<div class="bg-guild-900 border-b border-guild-700">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="py-6">
<div class="flex items-center gap-4 mb-2">
<NuxtLink to="/admin/series-management" class="text-gray-500 hover:text-gray-700">
<NuxtLink to="/admin/series-management" class="text-guild-500 hover:text-guild-100">
<Icon name="heroicons:arrow-left" class="w-5 h-5" />
</NuxtLink>
<h1 class="text-2xl font-bold text-gray-900">Create New Series</h1>
<h1 class="text-display font-bold text-guild-100">Create New Series</h1>
</div>
<p class="text-gray-600">Create a new event series to group related events together</p>
<p class="text-guild-400">Create a new event series to group related events together</p>
</div>
</div>
</div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Error Summary -->
<div v-if="formErrors.length > 0" class="mb-6 p-4 bg-red-50 border border-red-200 rounded-lg">
<div v-if="formErrors.length > 0" class="mb-6 p-4 bg-ember-900/20 border border-ember-800 rounded-lg">
<div class="flex">
<Icon name="heroicons:exclamation-circle" class="w-5 h-5 text-red-500 mr-3 mt-0.5" />
<Icon name="heroicons:exclamation-circle" class="w-5 h-5 text-ember-400 mr-3 mt-0.5" />
<div>
<h3 class="text-sm font-medium text-red-800 mb-2">Please fix the following errors:</h3>
<ul class="text-sm text-red-700 space-y-1">
<h3 class="text-sm font-medium text-ember-400 mb-2">Please fix the following errors:</h3>
<ul class="text-sm text-ember-400 space-y-1">
<li v-for="error in formErrors" :key="error"> {{ error }}</li>
</ul>
</div>
@ -29,11 +29,11 @@
</div>
<!-- Success Message -->
<div v-if="showSuccessMessage" class="mb-6 p-4 bg-green-50 border border-green-200 rounded-lg">
<div v-if="showSuccessMessage" class="mb-6 p-4 bg-candlelight-900/20 border border-candlelight-800 rounded-lg">
<div class="flex">
<Icon name="heroicons:check-circle" class="w-5 h-5 text-green-500 mr-3 mt-0.5" />
<Icon name="heroicons:check-circle" class="w-5 h-5 text-candlelight-400 mr-3 mt-0.5" />
<div>
<h3 class="text-sm font-medium text-green-800">Series created successfully!</h3>
<h3 class="text-sm font-medium text-candlelight-400">Series created successfully!</h3>
</div>
</div>
</div>
@ -41,56 +41,56 @@
<form @submit.prevent="createSeries">
<!-- Series Information -->
<div class="mb-8">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Series Information</h2>
<h2 class="text-lg font-semibold text-guild-100 mb-4">Series Information</h2>
<div class="grid grid-cols-1 gap-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">
Series Title <span class="text-red-500">*</span>
<label class="block text-sm font-medium text-guild-100 mb-2">
Series Title <span class="text-ember-400">*</span>
</label>
<input
v-model="seriesForm.title"
type="text"
placeholder="e.g., Cooperative Game Development Fundamentals"
required
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-purple-500 focus:border-transparent"
:class="{ 'border-red-300 focus:ring-red-500': fieldErrors.title }"
class="w-full bg-guild-800 border border-guild-700 rounded-lg px-3 py-2 text-guild-100 placeholder-guild-500 focus:ring-2 focus:ring-earth-500 focus:border-transparent"
:class="{ 'border-ember-700 focus:ring-ember-500': fieldErrors.title }"
@input="generateSlugFromTitle"
/>
<p v-if="fieldErrors.title" class="mt-1 text-sm text-red-600">{{ fieldErrors.title }}</p>
<p v-if="fieldErrors.title" class="mt-1 text-sm text-ember-400">{{ fieldErrors.title }}</p>
</div>
<div v-if="generatedSlug">
<label class="block text-sm font-medium text-gray-700 mb-2">Generated Series ID</label>
<div class="w-full bg-gray-100 border border-gray-300 rounded-lg px-3 py-2 text-gray-700 font-mono text-sm">
<label class="block text-sm font-medium text-guild-100 mb-2">Generated Series ID</label>
<div class="w-full bg-guild-800 border border-guild-700 rounded-lg px-3 py-2 text-guild-100 font-mono text-sm">
{{ generatedSlug }}
</div>
<p class="mt-1 text-sm text-gray-500">
<p class="mt-1 text-sm text-guild-500">
This unique identifier will be automatically generated from your title
</p>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">
Series Description <span class="text-red-500">*</span>
<label class="block text-sm font-medium text-guild-100 mb-2">
Series Description <span class="text-ember-400">*</span>
</label>
<textarea
v-model="seriesForm.description"
placeholder="Describe what the series covers and its goals"
required
rows="4"
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-purple-500 focus:border-transparent"
:class="{ 'border-red-300 focus:ring-red-500': fieldErrors.description }"
class="w-full bg-guild-800 border border-guild-700 rounded-lg px-3 py-2 text-guild-100 placeholder-guild-500 focus:ring-2 focus:ring-earth-500 focus:border-transparent"
:class="{ 'border-ember-700 focus:ring-ember-500': fieldErrors.description }"
></textarea>
<p v-if="fieldErrors.description" class="mt-1 text-sm text-red-600">{{ fieldErrors.description }}</p>
<p v-if="fieldErrors.description" class="mt-1 text-sm text-ember-400">{{ fieldErrors.description }}</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Series Type</label>
<label class="block text-sm font-medium text-guild-100 mb-2">Series Type</label>
<select
v-model="seriesForm.type"
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-purple-500 focus:border-transparent"
class="w-full bg-guild-800 border border-guild-700 rounded-lg px-3 py-2 text-guild-100 focus:ring-2 focus:ring-earth-500 focus:border-transparent"
>
<option value="workshop_series">Workshop Series</option>
<option value="recurring_meetup">Recurring Meetup</option>
@ -101,25 +101,25 @@
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Total Events Planned</label>
<label class="block text-sm font-medium text-guild-100 mb-2">Total Events Planned</label>
<input
v-model.number="seriesForm.totalEvents"
type="number"
min="1"
placeholder="e.g., 4"
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-purple-500 focus:border-transparent"
class="w-full bg-guild-800 border border-guild-700 rounded-lg px-3 py-2 text-guild-100 placeholder-guild-500 focus:ring-2 focus:ring-earth-500 focus:border-transparent"
/>
<p class="text-sm text-gray-500 mt-1">How many events will be in this series? (optional)</p>
<p class="text-sm text-guild-500 mt-1">How many events will be in this series? (optional)</p>
</div>
</div>
</div>
</div>
<!-- Form Actions -->
<div class="flex justify-between items-center pt-6 border-t border-gray-200">
<div class="flex justify-between items-center pt-6 border-t border-guild-700">
<NuxtLink
to="/admin/series-management"
class="px-4 py-2 text-gray-600 hover:text-gray-900 font-medium"
class="px-4 py-2 text-guild-400 hover:text-guild-100 font-medium"
>
Cancel
</NuxtLink>
@ -129,7 +129,7 @@
type="button"
@click="createAndAddEvent"
:disabled="creating"
class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed font-medium"
class="px-4 py-2 bg-candlelight-600 text-white rounded-lg hover:bg-candlelight-700 disabled:opacity-50 disabled:cursor-not-allowed font-medium"
>
{{ creating ? 'Creating...' : 'Create & Add Event' }}
</button>
@ -137,7 +137,7 @@
<button
type="submit"
:disabled="creating"
class="px-6 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 disabled:opacity-50 disabled:cursor-not-allowed font-medium"
class="px-6 py-2 bg-earth-600 text-white rounded-lg hover:bg-earth-700 disabled:opacity-50 disabled:cursor-not-allowed font-medium"
>
{{ creating ? 'Creating...' : 'Create Series' }}
</button>