From 329e96c3da8a74da3cd94366241e8e7d52cc6dbb Mon Sep 17 00:00:00 2001 From: vas3k Date: Sun, 19 Jan 2020 22:17:10 +0100 Subject: [PATCH] Add export placeholder page --- boards.yml | 9 +++++++++ boards/views.py | 9 +++++++++ infomate/urls.py | 3 ++- static/css/components.css | 27 ++++++++++++++++++++++++++- templates/board.html | 4 ++++ templates/export.html | 21 +++++++++++++++++++++ templates/layout.html | 2 +- 7 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 templates/export.html diff --git a/boards.yml b/boards.yml index 6b58e0f..bbbc7cc 100644 --- a/boards.yml +++ b/boards.yml @@ -86,6 +86,15 @@ boards: - name: ReadWrite url: https://readwrite.com rss: https://readwrite.com/feed/ + - name: Микс блогов + slug: the_mix + feeds: + - url: http://www.rssmix.com/ + rss: http://www.rssmix.com/ + columns: 3 + mix: + - http://vas3k.ru/rss/ + - http://nedbatchelder.com/blog/rss.xml - name: Мейнстрим slug: mainstream feeds: diff --git a/boards/views.py b/boards/views.py index 581c731..48d3c36 100644 --- a/boards/views.py +++ b/boards/views.py @@ -42,6 +42,15 @@ def board(request, board_slug): return result +@cache_page(settings.STATIC_PAGE_CACHE_SECONDS) +def export(request, board_slug): + board = get_object_or_404(Board, slug=board_slug) + + return render(request, "export.html", { + "board": board, + }) + + @cache_page(settings.STATIC_PAGE_CACHE_SECONDS) def what(request): return render(request, "what.html") diff --git a/infomate/urls.py b/infomate/urls.py index 9da25f4..f0a89e5 100644 --- a/infomate/urls.py +++ b/infomate/urls.py @@ -1,7 +1,7 @@ from django.urls import path from auth.views import login, logout, club_callback -from boards.views import index, board, privacy_policy, what +from boards.views import index, board, privacy_policy, what, export urlpatterns = [ path("", index, name="index"), @@ -14,4 +14,5 @@ urlpatterns = [ path("auth/logout/", logout, name="logout"), path("/", board, name="board"), + path("/export/", export, name="export"), ] diff --git a/static/css/components.css b/static/css/components.css index 89635da..04c4559 100644 --- a/static/css/components.css +++ b/static/css/components.css @@ -331,7 +331,7 @@ .footer { text-align: center; - padding: 60px; + padding: 100px 20px 50px; } .logout-button { @@ -342,6 +342,14 @@ margin-top: 40px; } + .export-button { + display: inline-block; + color: var(--opposite-text-color) !important; + font-size: 90%; + padding: 10px 20px; + margin-top: 40px; + } + .document { font-size: 110%; line-height: 1.5; @@ -381,3 +389,20 @@ margin: 10px 0 30px; } +.export { + min-height: 400px; +} + + .coming-soon { + display: block; + max-width: 500px; + margin: 100px auto; + } + + .coming-soon h2 { + font-size: 200%; + } + + .coming-soon p { + font-size: 120%; + } \ No newline at end of file diff --git a/templates/board.html b/templates/board.html index 51ccb8e..376ea6d 100644 --- a/templates/board.html +++ b/templates/board.html @@ -107,6 +107,10 @@ {% if board.natural_refreshed_at %}
Обновлено {{ board.natural_refreshed_at }} {% endif %} + + {% endif %} {% endblock %} diff --git a/templates/export.html b/templates/export.html new file mode 100644 index 0000000..c2db5f6 --- /dev/null +++ b/templates/export.html @@ -0,0 +1,21 @@ +{% extends "layout.html" %} +{% load text_filters %} +{% load static %} + +{% block title %}Экспорт | {{ board.curator_name }} | {{ board.curator_title }} | {{ block.super }}{% endblock %} + +{% block content %} +
+
+

Экспорт скоро будет!

+ +

+ Эта идея появилась совсем недавно и мы пока думаем как её сделать удобнее всего. +

+ +

+ Подпишитесь на мой канал ⭐️ Вастрик.Пынь чтобы узнать сразу когда он появится. +

+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html index 8a7ad9b..92fe586 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -39,7 +39,7 @@ {% block footer %}