Files
dg-surv/templates/welcome.html
2026-05-02 03:57:17 +03:30

81 lines
2.9 KiB
HTML

{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Survey Studio</title>
<link rel="stylesheet" href="{% static 'surveys/site.css' %}">
</head>
<body>
<header class="site-header">
<a class="brand" href="{% url 'welcome' %}">
<span class="brand-mark" aria-hidden="true">S</span>
<span>Survey Studio</span>
</a>
<nav class="top-nav" aria-label="Primary">
<a href="{% url 'docs' %}">Docs</a>
<a href="{% url 'survey-list' %}">API</a>
<a class="nav-action" href="{% url 'admin:index' %}">Admin</a>
</nav>
</header>
<main>
<section class="hero">
<div class="hero-copy">
<p class="eyebrow">Django survey API service</p>
<h1>Survey Studio</h1>
<p class="hero-text">
Build surveys in Django admin, publish them when ready, and collect
anonymous JSON responses from any website or client application.
</p>
<div class="hero-actions" aria-label="Quick links">
<a class="button primary" href="{% url 'admin:index' %}">Open Admin</a>
<a class="button secondary" href="{% url 'docs' %}">Read Docs</a>
</div>
</div>
<img class="hero-visual" src="{% static 'surveys/survey-flow.svg' %}" alt="Survey publishing and response workflow">
</section>
<section class="status-band" aria-label="Service endpoints">
<div>
<span class="label">Admin</span>
<a href="{% url 'admin:index' %}">/admin/</a>
</div>
<div>
<span class="label">Published Surveys</span>
<a href="{% url 'survey-list' %}">/api/surveys/</a>
</div>
<div>
<span class="label">Documentation</span>
<a href="{% url 'docs' %}">/docs/</a>
</div>
</section>
<section class="overview" aria-labelledby="overview-heading">
<div class="section-heading">
<p class="eyebrow">Workflow</p>
<h2 id="overview-heading">Create, publish, collect</h2>
</div>
<div class="feature-grid">
<article class="feature-card">
<span class="feature-number">01</span>
<h3>Design in admin</h3>
<p>Create surveys, order questions, add choices, and control publishing windows from Django admin.</p>
</article>
<article class="feature-card">
<span class="feature-number">02</span>
<h3>Expose JSON schema</h3>
<p>Clients fetch published surveys and render forms using stable question slugs and choice values.</p>
</article>
<article class="feature-card">
<span class="feature-number">03</span>
<h3>Accept public responses</h3>
<p>Anyone can submit responses through the API while the service validates required answers and question types.</p>
</article>
</div>
</section>
</main>
</body>
</html>