Jumpstart with Cirrus
Everything you need to know on setting up your first project.
Installation
There are a few ways to get Cirrus for your project:
Npm
npm i cirrus-ui --save
Copy
Yarn
yarn add cirrus-ui
Copy
Unpkg CDN
https://unpkg.com/cirrus-ui
Copy
JsDelivr
https://cdn.jsdelivr.net/npm/cirrus-ui@0.5.5/dist/cirrus.min.css
Copy
Manual Install
All the files you need can be found right here.
Requirements
Cirrus has a few requirements in your setup before getting started to allow for mobile responsiveness and the latest web standards.
Traditional Webpage
Add the HTML5 DocType
<!DOCTYPE html>
Add the responsive viewport meta tag
<meta name="viewport" content="width=device-width, initial-scale=1">
Font Awesome
To use glyphs, you must include the Font Awesome library.
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
Please visit FontAwesome and sign up to get your developer kit to get started. The CDN above is just a sample.
Required Fonts
Don't forget to include the required fonts.
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<!-- Minified Cirrus CSS -->
<link rel="stylesheet" href="../css/cirrus.min.css">
<!-- Import your other dependencies -->
Node App
Import cirrus-ui
import 'cirrus-ui';
// Your other framework code
Setup Template
In your main index.html
page, make sure that the following dependencies are also included. For example, it would be in the index.html
file in your React project.
<!DOCTYPE html>
<html>
<head>
<title>Getting Started with Cirrus</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<!-- JQuery (Optional to help add navbar functionality) -->
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
</head>
...
Template
Start your project now with this template.
<!DOCTYPE html>
<html>
<head>
<title>Getting Started with Cirrus</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
<link href="https://unpkg.com/cirrus-ui" type="text/css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
</head>
<body>
<div class="header header-fixed unselectable header-animated">
<div class="header-brand">
<div class="nav-item no-hover">
<h6 class="title">My App</h6>
</div>
<div class="nav-item nav-btn" id="header-btn">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="header-nav" id="header-menu">
<div class="nav-left">
<div class="nav-item text-center">
<a href="#">
<span class="icon">
<i class="fab fa-wrapper fa-twitter" aria-hidden="true"></i>
</span>
</a>
</div>
</div>
<div class="nav-right">
<div class="nav-item has-sub toggle-hover" id="dropdown">
<a class="nav-dropdown-link">Menu</a>
<ul class="dropdown-menu dropdown-animated" role="menu">
<li role="menu-item"><a href="#">First Item</a></li>
<li role="menu-item"><a href="#">Second Item</a></li>
<li role="menu-item"><a href="#">Third Item</a></li>
</ul>
</div>
</div>
</div>
</div>
<section class="section">
<div class="hero fullscreen">
<div class="hero-body">
<div class="content">
<div class="text-center">
<h1>π Hello world!</h1>
<h6 class="font-alt font-light">A webpage powered by <b>Cirrus.</b></h6>
</div>
</div>
</div>
</div>
</section>
</body>
</html>