Coder Social home page Coder Social logo

web's Introduction

Ingame Web

Changes

You can modify the sub-folders of /src

base

Contains images and the CNAME file required by GitHub pages. The content of this folder will be copied to /dist on the build process.

pages

For .html, .hbs or other content files, indluded layouts and partials.

styles

For .less, .css and other style files.

js

Scripts folder.

Build

We use Grunt, you can see tasks details on the Gruntfile.js placed on root. Basically, there are 3 main tasks:

Default

grunt

Build the static site on the /dist folder.

Serve

grunt serve

Run default task and serve the site on http://localhost:4000, and re-build the site on any change (on /src folder).

Publish

grunt publish

Run default task and commit&push the changes to our GitHub page repository (https://github.com/ingameio/ingameio.github.io). Finally clean dist and .grunt folders.

CSS Tips

Basic Tips

Breaks

Use <br/> inside header tags to avoid margin and padding issues.

<!-- NOT OK -->
<h1>Hello</h1>
<h1>World</h1>

<!-- OK -->
<h1>Hello<br/>
    World</h1>

Responsive Tips

Grid (for Bootstrap)

Do not change (so much) the font size, logos and images size. Instead, reorder elements depending on resolution using col-xs, col-sm, col-md and col-lg css classes. This approach implies less .css (it's more simple) and will look better! See bootstrap reference (http://getbootstrap.com/css/#grid-options)

Stripe

For "stripe style" (fixed to window height), set and height to 100% height:

body, html {
  height: 100%;
}

Then for every child of <html> you can set height to the percentage (of window height) you want. For "stripes", set to 100%.

<body>
  <html>
    <div style="height: 100%;">Stripe<div>

    <div style="height: 50%;">Half stripe<div>
    <div style="height: 50%;">Other half stripe<div>
  </html>
</body>

Combine with min-height to avoid too small stripes.

web's People

Contributors

vcalvello avatar

Watchers

 avatar James Cloos avatar

Forkers

baguirre

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.