-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Frontend work for the homepage, manuscripts, and stanzas pages
- Loading branch information
Showing
9 changed files
with
198 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,47 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
{% block title %} | ||
Home - La Sfera | ||
{% endblock title %} | ||
|
||
<h2 class="text-3xl" id="top">Homepage - La Sfera</h2> | ||
|
||
<hr class="my-4"> | ||
|
||
<p>This temporary page is for testing that the content is in good order. Displayed here is a table of all the manuscripts in the database, as well as all the available stanzas.</p> | ||
|
||
<div class="p-4"> | ||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<a href="/admin">Admin panel</a> | ||
</button> | ||
|
||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<a href="#table">Table of manuscripts</a> | ||
</button> | ||
|
||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<a href="#text">Text of the manuscript</a> | ||
</button> | ||
</div> | ||
|
||
<hr class="my-4"> | ||
|
||
<h3 class="text-2xl pb-8" id="table">Table of manuscripts — <a href="#top">Back to top ↑</a></h3> | ||
|
||
<table class="table-auto"> | ||
<thead> | ||
<tr> | ||
<th class="px-4 py-2">ID</th> | ||
<th class="px-4 py-2">Siglum</th> | ||
<th class="px-4 py-2">Shelfmark</th> | ||
<th class="px-4 py-2">Library</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for manuscript in manuscripts %} | ||
<tr> | ||
<td class="border px-4 py-2">{{ manuscript.item_id }}</td> | ||
<td class="border px-4 py-2">{{ manuscript.siglum }}</td> | ||
<td class="border px-4 py-2">{{ manuscript.shelfmark }}</td> | ||
<td class="border px-4 py-2">{{ manuscript.library }}</td> | ||
<!-- <td class="border px-4 py-2"> | ||
<a href="/manuscript/{{ manuscript.id }}">Details</a> | ||
</td> --> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
<hr class="my-4"> | ||
|
||
<h3 class="text-2xl pb-8" id="text">Text of the manuscript — <a href="#top">Back to top ↑</a></h3> | ||
|
||
<div class="prose"> | ||
{% for stanza in stanzas %} | ||
<p><span class="font-serif text-red-700 text-sm">{{ stanza.stanza_line_code_starts }}</span> {{ stanza.stanza_text }}</p> | ||
{% endfor %} | ||
</div> | ||
|
||
{% endblock content %} | ||
{% block content %} | ||
<section id="introduction" class="container mx-auto p-4 my-10"> | ||
<p>This temporary page is for testing that the content is in good order. Displayed here is a table of all the manuscripts in the database, as well as all the available stanzas.</p> | ||
|
||
<div class="p-4"> | ||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<a href="/admin">Admin panel</a> | ||
</button> | ||
|
||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<a href="{% url 'manuscripts' %}">Table of manuscripts</a> | ||
</button> | ||
|
||
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<a href="{% url 'stanzas' %}">Text of the manuscript</a> | ||
</button> | ||
</div> | ||
|
||
</section> | ||
|
||
|
||
<section id="introduction" class="container mx-auto p-4 my-10"> | ||
<h2 class="text-2xl font-bold">Introduction</h2> | ||
<p class="mt-4">This is the introduction section. Add your content here.</p> | ||
</section> | ||
|
||
<section id="about" class="container mx-auto p-4 my-10 bg-gray-100"> | ||
<h2 class="text-2xl font-bold">About</h2> | ||
<p class="mt-4">This is the about section. Add your content here.</p> | ||
</section> | ||
|
||
<section id="background" class="container mx-auto p-4 my-10"> | ||
<h2 class="text-2xl font-bold">Background</h2> | ||
<p class="mt-4">This is the background section. Add your content here.</p> | ||
</section> | ||
|
||
<section id="resources" class="container mx-auto p-4 my-10 bg-gray-100"> | ||
<h2 class="text-2xl font-bold">Resources</h2> | ||
<p class="mt-4">This is the resources section. Add your content here.</p> | ||
</section> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Stanzas - La Sfera{% endblock title %} | ||
|
||
{% block content %} | ||
<section id="introduction" class="container mx-auto p-4 my-10"> | ||
<h3 class="text-2xl pb-8" id="table">Table of manuscripts — <a href="#top">Back to top ↑</a></h3> | ||
|
||
<table class="table-auto"> | ||
<thead> | ||
<tr> | ||
<th class="px-4 py-2">ID</th> | ||
<th class="px-4 py-2">Siglum</th> | ||
<th class="px-4 py-2">Shelfmark</th> | ||
<th class="px-4 py-2">Library</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for manuscript in manuscripts %} | ||
<tr> | ||
<td class="border px-4 py-2">{{ manuscript.item_id }}</td> | ||
<td class="border px-4 py-2">{{ manuscript.siglum }}</td> | ||
<td class="border px-4 py-2">{{ manuscript.shelfmark }}</td> | ||
<td class="border px-4 py-2">{{ manuscript.library }}</td> | ||
<!-- <td class="border px-4 py-2"> | ||
<a href="/manuscript/{{ manuscript.id }}">Details</a> | ||
</td> --> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</section> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Stanzas - La Sfera{% endblock title %} | ||
|
||
{% block content %} | ||
<section id="introduction" class="container mx-auto p-4 my-10"> | ||
<h3 class="text-2xl pb-8" id="text"> | ||
Text of the manuscript — <a href="#top">Back to top ↑</a> | ||
</h3> | ||
|
||
<div class="prose"> | ||
{% for stanza in stanzas %} | ||
<p> | ||
<span class="font-serif text-red-700 text-sm"> | ||
{{ stanza.stanza_line_code_starts }} | ||
</span> | ||
{{ stanza.stanza_text }} | ||
</p> | ||
{% endfor %} | ||
</div> | ||
</section> | ||
{% endblock content %} |