Coder Social home page Coder Social logo

nanobox-bootstrap-landing's Introduction

Nanobox Bootstrap Landing Page Generator

This project is used to generate static HTML pages and accompanying assets for Nanobox quickstarts/bootstraps. It's built using Middleman and is designed to run using Nanobox. If you haven't already, create a free Nanobox account and download and install Nanobox.

Start the Project

From the root of the the project, run:

# add a convenient way to access the app in a browser
nanobox dns add local bootstrap-landing.dev

# start Nanobox and drop into a console
nanobox run

# start the middleman server
middleman

Generating the Static Files

To generate all the static files, from inside the Nanobox console, run:

middlman build

All static files will be generated in the build directory. When including them in the actual projects, be sure to update the stylesheet and favicon paths in the <head>.

Adding New Projects

Projects are organized by language. Each project needs the following files:

_logo.erb

This is simply an svg file renamed with the .erb so Middleman can load it into the template as a partial.

favicon.png

Simply favicon using the project icon. It should be 32px ร— 32px.

index.html.haml

While this is used to generate the actual page, it only contains yaml front-matter and basically serves as a variable declaration file. Each index.html.x must include the following:

---
project: Project Name
language: Runtime Language
more_info:
  links:
    - text: Link Text
      href: Link href
---

styles.scss

This to is used to generate the css for each landing page, but really only serves as a variable declaration file. It must contain the following:

@import "../../stylesheets/base";

// Colors
$bg-left: #333;     // Background Grandient Left
$bg-right: #000;    // Background Grandient Right
$burst: #fff;       // Burst Line Color
$shadow: #000;      // Icon Shadow Color
$heading: #fff;     // H2 $ H4 Color
$text: #999;        // Text Color
$link: #999;        // Link Color
$link-hover: #fff;  // Link Hover Color

@import "../../stylesheets/project-template"

nanobox-bootstrap-landing's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.