Code Nation
We are an international creative agency working for progressive clients who want to achieve important change. We create engaging campaign sites that drive supporters to take action for your cause.
OrganiseUs - Digital Intensive 2021
Presentation: www.codenation.com/presentation
Exercises: www.codenation.com/exercises
Code snippets: www.codenation.com/snippets
✓ NationBuilder Themes - Expanded our theme range and helped the QLD Greens win!
Lowlights: Tabatha's Tigers won the finals again (again)
✓ Multicultural Australia - Hosted the Reimagine Festival Online
✓ SupporterBase - Empowering volunteers to run local groups
✓ FormJoy - Launched a simple way to create effective, user-friendly surveys
Ultimately, to become a self-sufficient digital campaigner
Add HTML structure to basic content (headings, paragraphs, links and images)
Add simple CSS styles to basic content (colours, backgrounds and spacing)
Edit code in NationBuilder:
A) through the WYSIWYG
B) by creating a custom page template
C) by customising the theme for the whole site
Include extra features on your pages, for example:
the snippets listed here: www.codenation.com/snippets
Facebook page widgets or Twitter timelines
Creating a custom theme and customising the colours to suit your team's brand
World domination with your own robot army
HTML = HyperText Markup Language
Markup - Structure/content of the page
Hypertext - the links used to navigate between pages
It provides the raw structure of every webpage on the internet, but virtually no styles
Sections of text content are wrapped in <tags>.
This tells the browser if it's a headline, paragraph text, a link, etc.
Sections of text content are wrapped in <tags>.
This tells the browser if it's a headline, paragraph text, a link, etc.
<h1>Because of the h1 tag this would be a large headline</h1>
Notice the three components?
It's all gloriously symmetrical
In the world of HTML, multiple spaces and new lines in the code are treated the same as a single space
Paragraphs and other HTML tags provide the structure, including vertical space between elements
<a>
The anchor tag <a> has a href (the URL the text should link to)
<img />
The <img /> tag has a src (the URL where the image file is hosted
<iframe>
The <iframe> tag has a src (the URL of the page to embed)
color: black;
You can add CSS to your HTML in three ways:
<h1 style="color:blue; font-size:30px;">
<style>
* {
color: blue;
background-color: white;
}
</style>
.head {
color: blue;
}
<h1 class="head">
Now all HTML with the class="head" will be the colour blue!
Note: You can pick hex colours using an online picker like this one here.
color:#FFFFFF
color: rgb(255, 255, 255);
color: white;
Instead of copy and pasting the same colours/styles over and over again, you can place them in variables
NationBuilder Content editor or WYSIWYG
(What You See Is What You Get), pronounced "Wiziwig"
If you click the HTML button in the WYSIWYG you can see the code automatically added.
Complete Exercise 2: www.codenation.com/exercises
Note: Use the American spelling of "color" and "center" when coding
If you are stuck ask for help (from Corey, Viviana or Jo) or sneak a glance at the answers if you need :)
Creating a new basic page in NationBuilder
You just coded your first webpage!
Challenge: Add new HTML tags and CSS styles in the editor then open the live link in a new tab to review the final product.
Using some existing snippets
https://www.codenation.com/exercises
Navigate to the template tab on your new basic page and click "Create a custom template"
Create a custom theme and edit the primary colours
Complete the task here: codenation.com/exercises
Customise your site using the Candidate theme docs. See what is possible with the full theme here
By Code Nation
We are an international creative agency working for progressive clients who want to achieve important change. We create engaging campaign sites that drive supporters to take action for your cause.