Skip to content

GrUSP/2019.rubyday.it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conference site

Edit contents

Conference data

All dynamic data is ONLY inside _data folder

Page contents

Every content page is inside _includes/page-name-folder

Frontend code

CSS and JavaScript source code are inside _frontend folder

  • CSS: _frontend/frontsize
  • JavaScript: _frontend/js

The source code is built inside /css and /js folder in the root of the project.


Installation

Run the setup with this command (requires Ruby 2.6.1 & Node.js 8)

bin/setup

Build

HTML/CSS/JS

To start the local server:

bin/server

and then visit http://localhost:4000


How to add HTML contents

To add contents without edit SASS, create a page in the root path and write code with this simple widgets.

Page wrapper

Wrap contents inside this page wrapper:

<div class="limit">
  wrapped contents
</div>

Page huge title

This will show a huge title in the center of the page:

<div class="intro intro--no-height">
  <h1 class="intro__title">Code of Conduct</h1>
</div>

Grid

To choose the number of the columns per row use this modifier row--2 where 2 is the number of columns per row.

<div class="row row--2">
  <p class="row__column">
    Single paragraph column
  </p>
  <p class="row__column">
    Single paragraph column
  </p>
</div>

Available columns set modifiers:

  • row--2
  • row--3
  • row--4

To use one column per row, just skip adding the modifier:

<div class="row">
  <p class="row__column">
    Single column row
  </p>
  <p class="row__column">
    Single column row
  </p>
</div>

Remember the more columns you use per row, the smaller text paragraphs you need to put inside them.


Grid impagination

If you need a title and more paragraphs per row add it outside the row to ensure a good vertical align between paragraphs:

<h2 class="row__title">The Short Version</h2>

<div class="row row--2">
  <div class="row__column">
    ...
  </div>
  <div class="row__column">
    ...
  </div>
</div>

If you need multiple paragraphs per column, use this approach:

<div class="row row--2">
  <div class="row__column">
    <p class="row__text">
      Multiple paragraphs per column
    </p>
    <p class="row__text">
      Multiple paragraphs per column
    </p>
    <p class="row__text">
      Multiple paragraphs per column
    </p>
  </div>
  <div class="row__column">
    <p class="row__text">
      Multiple paragraphs per column
    </p>
    <p class="row__text">
      Multiple paragraphs per column
    </p>
  </div>
</div>

Coded with ♡ by @vitto in @ideato

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published