Skip to content

kabisa/django-rijkshuisstijl

 
 

Repository files navigation

django-rijkshuisstijl

Rijkshuisstijl boilerplate for Django.

Version:0.2.0
Source:https://github.com/maykinmedia/django-rijkshuisstijl
Keywords:Django, rijkshuisstijl
PythonVersion:3.7
  • Basic rijkshuisstijl (Dutch government branding) layout including headers, footer, buttons, forms and more.
  • Modular setup using inclusion tags.
  • Responsive
  • Python 3.7 or above
  • setuptools 30.3.0 or above
  • Django 2.2 or above

Install from PyPI with pip:

pip install django-rijkshuisstijl

Then add "rijkshuisstijl" and "sitetree" to INSTALLED_APPS.

Add CSS/JS/icons to your main template:

{% load rijkshuisstijl %}
<!DOCTYPE html>
<html lang="nl" class="views">
<head>
    {% meta_css %}
    {% meta_icons %}
</head>
<body class="view__body">
    {% meta_js %}
</body>

Then add the basic structure, supply the current urls for various urls (depending on your project):

{% load rijkshuisstijl %}
<!DOCTYPE html>
<html lang="nl" class="views">
<head>
    {% meta_css %}
    {% meta_icons %}
</head>
<body class="view__body">
    {% skiplink %}
    {% login_bar details_url='#' logout_url='#' login_url='#' registration_url='#' %}
    {% header %}
    {% navigation_bar details_url='#' logout_url='#' login_url='#' registration_url='#' %}

    <main class="view__content">
        {% skiplink_target %}
    </main>

    {% footer %}
    {% meta_js %}
</body>

See the documentation for further information about logos, navigation, forms and datagrids.

About

Rijkshuisstijl boilerplate for Django.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 44.5%
  • Python 31.8%
  • SCSS 14.0%
  • HTML 9.7%