From 59c54e05917fbe61490bd4fbab13e38501067658 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 31 Mar 2021 13:59:33 -0700 Subject: [PATCH] Creates get strated layout --- bookwyrm/templates/get_started/books.html | 151 +++++++++------------ bookwyrm/templates/get_started/layout.html | 33 +++++ 2 files changed, 95 insertions(+), 89 deletions(-) create mode 100644 bookwyrm/templates/get_started/layout.html diff --git a/bookwyrm/templates/get_started/books.html b/bookwyrm/templates/get_started/books.html index 7ead0710..cbb208f8 100644 --- a/bookwyrm/templates/get_started/books.html +++ b/bookwyrm/templates/get_started/books.html @@ -1,98 +1,71 @@ -{% extends 'layout.html' %} +{% extends 'get_started/layout.html' %} {% load i18n %} -{% load bookwyrm_tags %} -{% load humanize %} -{% block title %}{% trans "Welcome" %}{% endblock %} +{% block panel %} +
+

{% trans "What are you reading?" %}

+
+
+ + {% if request.GET.query and not book_results %} +

{% blocktrans %}Sorry, books were found. You can add books when you start using {{ site_name }}{% endblocktrans %}

+ {% endif %} +
+
+ +
+
+
-{% block content %} -{% with site_name=site.name %} - + {% endif %} +
+

+ {% blocktrans %}Popular on {{ site_name }}{% endblocktrans %} +

+
+ {% for book in popular_books %} +
+ {% include 'snippets/book_cover.html' with book=book %} +
+ +
+
+ {% endfor %} +
+
- - -{% endwith %} + + {% endblock %} diff --git a/bookwyrm/templates/get_started/layout.html b/bookwyrm/templates/get_started/layout.html new file mode 100644 index 00000000..eeb01bbe --- /dev/null +++ b/bookwyrm/templates/get_started/layout.html @@ -0,0 +1,33 @@ +{% extends 'layout.html' %} +{% load i18n %} + +{% block title %}{% trans "Welcome" %}{% endblock %} + +{% block content %} +{% with site_name=site.name %} + +{% endwith %} +{% endblock %} + +