Skip to content

Commit

Permalink
add: better header block (for adding some cdn or something)
Browse files Browse the repository at this point in the history
  • Loading branch information
varkaria committed Jun 17, 2021
1 parent 2ae8ade commit 29ba373
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 9 deletions.
5 changes: 4 additions & 1 deletion templates/404.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{% extends "base.html" %}
{% block title %} 404 {% endblock %}

{% block content %}
{% block header %}
<link rel="stylesheet" href="/static/css/pages/404.css">
<style>html {--main: 355;}</style>
{% endblock %}

{% block content %}
<div class="main-block">
<div class="title-block">
<span>404</span>
Expand Down
3 changes: 3 additions & 0 deletions templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<!-- custom style -->
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/pages/admin/style.css">

{% block header %}
{% endblock %}
</head>

<body>
Expand Down
6 changes: 4 additions & 2 deletions templates/admin/home.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{% extends 'admin/base.html' %}
{% block title %} Dashboard {% endblock %}

{% block content %}
{% block header %}
<script src="/static/js/asserts/vue.js"></script>
<script src="/static/js/asserts/vue-axios.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js"></script>
{% endblock%}

{% block content %}

<div class="dashboard" id="dashboard">
<div class="columns is-marginless is-paddingless">
Expand Down
3 changes: 3 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

<!-- custom style -->
<link rel="stylesheet" href="/static/css/style.css">

{% block header %}
{% endblock %}
</head>

<body>
Expand Down
5 changes: 4 additions & 1 deletion templates/home.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{% extends 'base.html' %}
{% block title %} Home {% endblock %}

{% block content %}
{% block header %}
<link rel="stylesheet" href="/static/css/pages/home.css">
{% endblock %}

{% block content %}

{% if flash %}
<div class='noti-banner noti-banner-warning'>
Expand Down
4 changes: 3 additions & 1 deletion templates/leaderboard.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block title %} Leaderboard {% endblock %}

{% block content %}
{% block header %}
<script src="/static/js/asserts/vue.js"></script>
<script src="/static/js/asserts/vue-axios.js"></script>

Expand All @@ -12,7 +12,9 @@
</script>

<link rel="stylesheet" href="/static/css/pages/leaderboard.css">
{% endblock %}

{% block content %}
<div id="app">
<div class="leaderboard-banner main-banner">
<div class="main-selector">
Expand Down
5 changes: 4 additions & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{% extends "base.html" %}
{% block title %} Login {% endblock %}

{% block content %}
{% block header %}
<link rel="stylesheet" href="/static/css/pages/auth.css">
{% endblock %}

{% block content %}

<div class="main-block is-marginless is-paddingless is-auth">
<div class="columns is-reset is-weeb">
Expand Down
4 changes: 3 additions & 1 deletion templates/profile.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block title %} Profile {% endblock %}

{% block content %}
{% block header %}
<script src="/static/js/asserts/vue.js"></script>
<script src="/static/js/asserts/vue-axios.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js"></script>
Expand All @@ -13,7 +13,9 @@
var mode = '{{ mode }}';
var mods = '{{ mods }}'
</script>
{% endblock %}

{% block content %}
<div id="app">
<div class="main-block">
<div class="profile-bg">
Expand Down
4 changes: 3 additions & 1 deletion templates/register.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{% extends "base.html" %}
{% block title %} Register {% endblock %}

{% block content %}
{% block header %}
<link rel="stylesheet" href="/static/css/pages/auth.css">
{% endblock %}

{% block content %}
<div class="main-block is-marginless is-paddingless is-auth">
<div class="columns pm-reset is-weeb">
<div class="column title-block">
Expand Down
5 changes: 4 additions & 1 deletion templates/verify.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{% extends 'base.html' %}
{% block title %} Verify {% endblock %}

{% block content %}
{% block header %}

{% endblock %}
<link rel="stylesheet" href="/static/css/pages/verify.css">
{% block content %}
<div class="main-block is-marginless is-paddingless is-auth">
<div class="columns pm-reset is-weeb">
<div class="column title-block">
Expand Down

0 comments on commit 29ba373

Please sign in to comment.