Front Trends Warsaw 2017

Map: Open Street Map, Leaflet overlays, Mapbox costum map.
Warsaw: hotel, and some venues.

We’re on our way to the Front Trends Conference in Warsaw. Five lecturers from the EAAA will attend the conference this evening.

“Front-Trends is one of Europe’s most established annual conferences for professional front-end developers to meet, learn and get inspired.”

Where and SoMe
Some Sparkling Speakers

Many interesting speakers are coming. Among these talks I’d like to hear:

  • Vitaly Friedman “Big Bang Redesign: Smashing Magazine’s 2017” on Wednesday, May 24 at 11:20
  • Sam Bellen “I didn’t know the browser could do that!” Wednesday, May 24 at 12:20
  • Val Head “Motion In Design Systems: Animation, Style Guides, and the Design Process” Thursday, May 25 at 11:50
Airport Links

Are we boarding, or what …

Odyssey.js

Odyssey is storytelling via maps and it’s made by markdown and javascript.

Visualizations made via Odyssey.js
Links
Markdown

How to use the theme skeleton

Skeleton and implemantation
Finished version with costum frontpage (top) and the skeleton boilerplate (bottom).

In this tutorial you’ll learn how to create your own version of a skeleton theme.

The “Skeleton-F16-Bootstrap” theme for WordPress is a boilerplate, or a place to start, if you want to create a Bootstrap theme from scratch. Or almost scratch that is. The basic files are ready. The top picture is a variant of the theme. The picture on the bottom is what it looks like, if you download the theme as is.

Here are the two versions:

How to fork the code

In order to get started it’s convenient to have your own version of the code. Create a github profile, if you don’t have one yet.

  1. Log in on Github.
  2. Then navigate to the Skeleton-F16-Bootstrap.
  3. Fork the repository.

On your Github page, you’ll find the fork, that is a copy of the original repository. You’ll be able to edit files and upload your own versions of the files. In this way the repository is a starting point for your new coding adventure.

The fork symbol
In order to create a fork click on the fork symbol. Here it’s marked with a fancy red circle.

When you click the fork symbol a new repository is created on your Github space. You can edit all files as you fancy.

  1. Add the forked repository to your Gitkraken (or whatever Github GUI you’re using).
  2. It’s often convenient to save the local files in your  ../wordpress/wp-content/themes/ folder on your localhost.
  3. Pull the files.
  4. Edit a file and save it.
  5. Stage the changes.
  6. Write a commit message.
  7. Push to the repository.

On your own

From this point you’ll be able to create your own markup. If you want to have 6 columns in stead of 3 on large screeen you can fix the Bootstrap / HTML markup. Bootstrap and Jquery will work out of the box. So you can add carousels, accordions and other fancy Bootstrap og Jquery stuff as you please. Since you’re in charge of the markup, you can even create hardcoded menus. You don’t have to do everything in the WordPress way.

The costum CSS editor is enabled in the plugin. You can experiment with styles in the editor. As soon as you’re satisfied with the styling, you can add the styles to style.css.

Costum CSS
Costum CSS: here the text describing an image is changed from centered to left. The font-size is changed too.

The sample code has several branches. The origin master is the actual skeleton. The branch called Multimusen was developed as an implementation of the skeleton for my website Multimusen. Multimusen’s branch has several costum pages, such as pages for categories, or special designed pages like a CV or similar. In this case the CV should stand apart from other pages. The focus should be on the text, so asides such as the sidebar are removed. The markup and PHP for the costum page is found in page-cv.php. I guess that you don’t need a page exactly like this. But if you need one, you can create your own costum templates. Just copy a page template that’s similar. Edit the code, and name the file page-SLUG.php.

In WordPress costum files have a name convention. The system is described in detail in the Theme Developer’s handbook.

In fact: whatever you’re able to do with markup, you’ll be able to implement in a theme. So you can have a look at the Bootstrap grid tutorials on W3 Schools, and even add a Jquery theme after your own choice.

If you want to use JavaScript libraries for animation or parallax you can either edit header.php and footer.php or add scripts via functions.php (don’t do both options!). Adding scripts via functions.php may seem a bit abstract. But it is the best practise.

Here are a few libraries, that’ll add immersive experiences to your WordPress theme:

Whatever you’re able to do with HTML, CSS, JavaScript and libraries – the same is possible in a WordPress theme.

Proceed, and experiment according to your creative vision.

Github: The GitKraken GUI

The GitKraken app is a GUI for Github. Some people may prefer a GUI solution. The video above will give an impression of the app.

Branches

A strong feature on Github is the concept of brances. Here you may experiment with some code. Later on the experiments can be merged with the master code ( origin master ).

  1. Create a branch.
  2. Chekout the branch ( that is: work on the branch ).
  3. Edit the file.
  4. Make sure that the branch is chosen.
  5. Stage the changed file(s).
  6. Edit the commit message.
  7. Push to Github.

Go to Github. If everything is ok the changes should be stored.

Merge a branch to origin master

When you’re satisfied with the code in the branch, you may want to merge the new work with the stem of the tree. The stem is called ‘origin master’. In GitKraken rightclick on remote / master. A popup menu will let you merge from the branch to the master:

 

Click on the merge option. Then write a commit message, and click on Push.

On the Github web page you’ll be able to follow all the comitted changes:

Above you see the content of the file, and the history. The image below is the online version of the branches:

( The screencast and screendumps were made on a Ubuntu Linux system. )