Coder Social home page Coder Social logo

la2050 / activation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.09 GB

Website for the 2018 My LA2050 Activation Challenge

Home Page: https://activation.la2050.org

HTML 31.45% CSS 36.76% JavaScript 31.77% Ruby 0.02%
jekyll gh-pages los-angeles contest non-profit-organizations jamstack netlify auth0 twilio sendgrid

activation's Introduction

LA2050 Activation Challenge

This is a website for the 2018 My LA2050 Activation Challenge.

https://activation.la2050.org

How to make changes

The website is published with GitHub Pages & Netlify, and the files are generated with Jekyll.

As you make changes and commit/push them to GitHub, the website will automatically update.

For example, if you edit the about page on GitHub, and then press the “Commit changes” button–you should see your changes on the about page of the website within a few minutes.

How to switch between contest phases

The website is set up to show different content based on the current phase of the contest. To change which phase is active, you can follow these steps…

  1. Open the configuration file

  2. Find the current phase, and comment it out by placing a # sign in front of it.

For example, change this…

# New challenge announced: 
# February 1
phase: 1

…into this…

# New challenge announced: 
# February 1
# phase: 1
  1. Find the phase you’d like to switch to, and do the opposite (remove the # in front of it).

For example, change this…

# Entries being accepted: 
# March 1
# phase: 2

…into this…

# Entries being accepted: 
# March 1
phase: 2
  1. Commit your changes.

How to develop locally

If you want to see a preview of your changes while you work, you can run a Jekyll server on your local machine. Installing Ruby and Jekyll is a good place to start.

After you have Jekyll installed, you can clone this project with Git or GitHub Desktop

git clone https://github.com/la2050/activation.git

And then start running the Jekyll application like this...

jekyll serve

Generating responsive images

Some of the images on the website are available in multiple sizes, to save bandwidth. For example, you can regenerate the “goals” images by following these steps…

  1. Install Node.js and NPM

  2. Run this command to install the dependencies for this project

npm install
  1. Place your images in the assets/images/goals/original folder
/assets/images/goals/original/connect.jpg
/assets/images/goals/original/create.jpg
/assets/images/goals/original/learn.jpg
/assets/images/goals/original/live.jpg
/assets/images/goals/original/play.jpg
  1. Switch to the _node directory and then run this command, to generate the images
npm run images:create

If you want to generate a different set of images, you can edit the gulpfile and then repeat the steps above.

Handy guides

activation's People

Contributors

dependabot[bot] avatar jimthoburn avatar julielac avatar leannkelch avatar meganmpark avatar

Watchers

 avatar

Forkers

julielac

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.