Skip to content

Instantly share code, notes, and snippets.

@kellishouts
kellishouts / airship-core-setup.md
Last active May 12, 2016 05:52
Airship Core Dev - Setting up Local Development

1. Using pgAdmin, setup an Airship site.

  • Add a new site to airship_sites
  • add the landing root page. Set application.html layout and root.html template.
  • add a superadmin user. It's easiest if you copy user1's password for your superadmin user. Also copy the created at from user1, this is needed for checking the hash
  • add struts for the appropriate application.html layout and root.html template.

2. Set up the Airship .env file and /etc/hosts file

  • make sure .env file is pointing to the right domain: DEV_CNAME=pokebowls.airshipcms.io
  • In the Airship terminal, source .env
  • while developing locally, make sure /etc/hosts is setup for pokebowls.airshipcms.io. In the hosts file: 127.0.0.1 localhost pokebowls.airshipcms.io
@kellishouts
kellishouts / README.md
Created April 29, 2016 21:47 — forked from sgnl/README.md
Setting up SASS (SCSS) files with gulp, gulp-sass, and Browser Sync!

Create a new temp project

  1. $ mkdir sass_gulp_workshop
  2. cd into the new directory
  3. Initialize NPM: $ npm init --yes
  4. Install gulp and gulp-sass packages: $ npm install -D gulp gulp-sass browser-sync
  5. Install gulp globally npm install -g gulp
  6. Recreate this file structure in this directory:
  • public (directory)
    • css (directory)
    • index.html (file)
@kellishouts
kellishouts / demo_foundation_header_markup.html
Last active April 28, 2016 01:58
demo_foundation_header_markup.html
<header>
<div class="top-bar">
<div class="top-bar-title">
<h2>
<a href="#">
Logo Here
</a>
</h2>
<span class="mobile-menu-button" data-responsive-toggle="responsive-menu" data-hide-for="large">
<button class="menu-icon" type="button" data-toggle></button>
@kellishouts
kellishouts / demo_foundation_settings.scss
Last active April 28, 2016 01:56
demo_foundation_settings.scss
/// SNIPPETS FROM SETTINGS THAT AFFECT THE TOPBAR
// 7. Accordion
// ------------
$accordion-background: $white;
$accordion-plusminus: true;
$accordion-item-color: foreground($accordion-background, $primary-color);
$accordion-item-background-hover: $light-gray;
$accordion-item-padding: 1.25rem 1rem;
@kellishouts
kellishouts / foundation-debugging.md
Last active April 11, 2016 21:17
Foundation Debugging

Failed Attempts

It was really difficult to get foundation-sites working for the project. At first, I was using a npm version of it, that wasn't working. Then I used a bower version of it that wasn't working. Along the way I struggled to figure out how my gulp file needed to be set up and what dependencies were required. Foundation said that 'autoprefixer' was required. So I Googled 'Foundation Sass Autoprefixer'. Semi-helpful results. Here were some semi-helpful resources in that process. Not super fruitful, though at least I understand gulp a tiny bit better:

https://github.com/sindresorhus/gulp-autoprefixer
http://www.sitepoint.com/simple-gulpy-workflow-sass/

Successful Hacking of Foundation-Sites

Foundation still didn't import properly, so I looked up a totally different solution. I found that the MOST helpful thing to do was set up a foundation demo project, install it, and copy their project structure (almost exactly), then tweak until it matched my project structure a bit more.

@kellishouts
kellishouts / AirshipVagrantSetup.md
Created March 22, 2016 01:01
Airship Vagrant Setup

setup test or dev env

install vagrant

install coreos

  • i setup mine in ~/VirtualBox\ VMs/
  • git clone https://github.com/coreos/coreos-vagrant
@kellishouts
kellishouts / developing-airshipcs-admin.md
Last active February 28, 2018 23:10
Developing AirshipCMS Admin

hi

@kellishouts
kellishouts / initial-scss.scss
Created December 20, 2015 00:29
initial-scss.scss
// PROCESS
// 1. Set basic variables & media query ranges
// 2. Style large blocks with bg colors for layout
// 3. Get general layout elements (block) sized for all media queries
// 4. Modify general layout elements with &
// 5. Secondary features grid (S --> L)
// 6. Typography & Image Sizes
// 7. Refactor the SCSS to make it dryer & simpler.
// 8. Set variables for common values.
@kellishouts
kellishouts / semi-final-scss.scss
Created December 19, 2015 17:55
SCSS Day - Semifinal SCSS
// PROCESS
// 1. Set basic variables & media query ranges x
// 2. Style large blocks with bg colors for layout x
// 3. Get general layout elements (block) sized for all media queries x
// 4. Modify general layout elements with & x
// 5. Secondary features grid (S --> L)
// 6. Typography & Image Sizes x
// 7. Refactor the SCSS to make it dryer & simpler.
// 8. Set variables for common values.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SCSS Day</title>
<link href='https://fonts.googleapis.com/css?family=Oswald|Roboto+Condensed:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>