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 2020
Presentation: www.codenation.com/presentation
Exercises: www.codenation.com/exercises
2. Viviana (designer & developer)
1. Corey (a web developer)
3. Jo (a developer)
✓ Australia Beyond Coal - Representing 1.5mil Aussies campaigning for clean energy
Lowlights: Tabatha's Tigers won the finals again
✓ Green Music Australia - Our favourite musicians backing the environment
✓ SupporterBase - Launched a tool that empowers volunteers to run local groups
✶ Viviana moved to Melbourne
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
In plain English:
Markup = Structure/content of the page
Hypertext = Includes links so people can navigate between pages
It provides the structure of every webpage on the internet
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
Sections of text content are wrapped in <tags>.
This tells the browser if it's a headline, paragraph text, a link, etc.
In the world of HTML, multiple spaces and line breaks are treated the same as a single space
NOTE: If you have one of the "self-closing" tags that ends like this:
<tag />
then you won't have a partner - find all the others like you!
color: black;
color: red;
color: #ffffff;
font-weight: bold;
font-size: 16px;
text-align: center;
text-decoration: underline;
font-family: 'Papyrus', arial, sans-serif;
padding-top: 20px;
padding-bottom: 10px;
padding-left: 5px;
padding-right: 5px;
You can add CSS to your HTML in three ways:
<h1 style="color:blue; font-size:30px;">
<style></style>
NOTE: The last is a method of including CSS that we won't cover in detail (you will see it in exercise 3 without editing it):
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 :)
.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;
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.
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.