inital commit

This commit is contained in:
2026-05-17 18:29:30 -05:00
parent b827236fe2
commit 7c1e18bd59
4683 changed files with 159402 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
{% extends "base.html" %}
{% block title %}Dashboard{% endblock %}
{% block content %}
<div class="split">
<section class="card">
<h2>Create site</h2>
<form method="post" action="/dashboard/create/">
{% csrf_token %}
{{ form.as_p }}
<p class="hint">Templates are loaded from <code>templates/template_1</code><code>template_4</code>.</p>
<button class="button" type="submit">Generate site</button>
</form>
</section>
<section class="card">
<h2>Your generated sites</h2>
{% if sites %}
<ul class="list">
{% for site in sites %}
<li class="list-item">
<div>
<strong>{{ site.business_name }}</strong>
<p>{{ site.template_option.name }} | {{ site.status }}</p>
</div>
<a class="button small" href="/dashboard/sites/{{ site.id }}/">View</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>No sites generated yet.</p>
{% endif %}
</section>
</div>
{% endblock %}

View File

@@ -0,0 +1,47 @@
{% extends "base.html" %}
{% block title %}{{ site.business_name }}{% endblock %}
{% block content %}
<section class="card">
<h1>{{ site.business_name }}</h1>
<p>Status: <strong>{{ site.status }}</strong></p>
<p>Template: {{ site.template_option.name }}</p>
{% if site.template_option.description %}
<p>{{ site.template_option.description }}</p>
{% endif %}
<p class="hint">Source: <code>{{ site.template_option.source_folder }}</code></p>
<p>Address: {{ site.business_address }}</p>
<p>Phone: {{ site.business_phone }}</p>
{% if site.old_website %}
<p>Old website: <a href="{{ site.old_website }}" target="_blank" rel="noreferrer">{{ site.old_website }}</a></p>
{% endif %}
</section>
<section class="card">
<h2>Downloads</h2>
{% if site.basic_zip_path %}
<a class="button" href="/dashboard/sites/{{ site.id }}/download/basic/">Download basic HTML site</a>
{% else %}
<p>Basic site not ready yet.</p>
{% endif %}
{% if site.django_zip_path %}
<a class="button muted" href="/dashboard/sites/{{ site.id }}/download/django/">Download Django demo site</a>
{% else %}
<p>Django demo not ready yet.</p>
{% endif %}
</section>
{% if site.ai_payload %}
<section class="card">
<h2>AI content preview</h2>
<p><strong>{{ site.ai_payload.hero_headline }}</strong></p>
<p>{{ site.ai_payload.hero_subheadline }}</p>
</section>
{% endif %}
{% if site.last_error %}
<section class="card danger">
<h2>Generation error</h2>
<pre>{{ site.last_error }}</pre>
</section>
{% endif %}
{% endblock %}