Read the README.md
in the git repo if you wish to commit code to the static build.
To use the style files in your project, include a link to the minified css in the <head> of your site. For most usecases, you'll want main-web.min.css.
[static-url] is currently https://datacentral.survey.org.au/web/dcstatic/.
This will change when the static files are hosted in a container rather than gitlab pages.
main-web.min.css contains styling for front-end react components (used for our main browser interface)
main.min.css configuration for the base bulma styling. Use this file instead of main-web if you do not need any additional js functionality and require ONLY the Bulma stylesheets.
main-api.min.css stylesheet for the browsable api (overrides some styles for djangorestapi)
dist/img/ contains the DC favicons, icons, logo variations and stakeholder logos.
All have been optimized via imagemin (see the image-package script in package.json).
For favicons, include the following
DC uses Open Sans as its primary font face. Include the following:
For clickable modals and tabs, plus JS interactivity for alerts, dropdowns, files, messages and a navbar, place the following <script> near the end of your pages,
right before the closing </body> tag, to enable them.
<script type="text/javascript" src="[static-url]dist/js/bundle.min.js"></script> at the end of your site.
Important!
The JS included here is previously supplied by the dcauth app, and provides interactivity for
modals and tabs.
The extensive javascript powering the main DC interface is not included; it is javascript
and/or react code relevant to the user interface elements interacting with the DC API and
context provided by the django views, and does not make sense for other DC projects.
If you wish to copy or adapt elements for your DC app, take a look at the dcapi repository directory
web/web_application/core/assets/core/src/js/ for the full suite of front-end
components and package implementations. The build process is governed by a (complex) gulp file, found at
web/GulpFile.js
JS-enabled components
JS is not natively provided by Bulma, so all JS interaction is implemented in index.js. We
include custom JS for Tabs and Modals (see below) and functionality for Alert, Dropdown, File,
Message, Navbar Burger are imported from BulmaJS (using default Bulma html syntax).
John Smith @johnsmith
31m
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
efficitur sit amet massa fringilla egestas. Nullam condimentum
luctus turpis.