Code Monkey home page Code Monkey logo

w2's Introduction

We are no longer using w2 for our website. Our new website is deployed using https://github.com/wunderdogsw/w3.

Wunderdog

Build status

React site with hardcoded content, no ssr, no cms. Easily hackable by anybody because everything is hardcoded. No need to make complicated UIs for CMS integrations etc.

Usage

  • You need to install our fonts to the src/fonts folder, these can be found in our marketing materials
  • yarn
  • yarn dev or yarn dev --open to magically open in browser
  • Go to localhost:1234

Contributing

Make a pull request. Add @thatsprettyfaroutman or @niutski as a reviewer. In case you made visual changes, show them to Addu. Additional info @ wunderwiki

Deployment

Site lives in amazon s3 bucket and uses cloudfront CDN. Changes to master will be deployed automatically via Travis CI.

Todo

  • Staging
  • CI tuning so master isn't automatically deployed. Maybe use git tag or slack integration ๐Ÿ˜ฑ
  • Guide: How to create content ( for non-developers )
  • 301 redirects from old site
  • Lynx support
  • Clear old files from s3 when releaseing new build

Known issues

  • No server side rendering. Might cause problems when sharing links to facebook etc.
  • No ie support, because we like to keep things simple. Edge works fine. According to our analytics barely anyone uses ie anyway.

App dirs

components

Contains react components. Most of them are cosmetic only adding styles to items in contents dir.

constats

Contains constants used throught the app

contents

Contains dynamically loaded components with all the actual content of the site. These are usually wrapped in components found in components dir. JSX Example:

import Hero from 'App/components/Hero'
import { Hero as Content } from 'App/contents/other/Hero'

export default () => (
  <div className="SomeContainer">
    <Hero>
      <Content />
    </Hero>
  </div>
)

Hero component adds the css styling to dynamically loaded Content

external

Contains helper functions for fetching external data, blog posts and such.

routes

Contains main routes or views. There is only two atm. Home is the landing page and everythign else is just Page

state

Contains app state. Its made with react context api and is provided via hoc to the components that need it.

utils

Contains utility functions

Css

Main tag styles are found in root css file: src/index.css. Rest of the styles are written so that each component have their own styles. Positioning of the components are overriden in components found in routes dir. Each component try to fill as much space as they are allowed by their container component.

w2's People

Contributors

andirotter avatar aripaawun avatar deiga avatar fiudenaattori avatar isla-hash avatar jonaskay avatar kasi-mir avatar keveri avatar mjviljan avatar niutski avatar pikariop avatar siimeon avatar thatsprettyfaroutman avatar vilmaranki avatar vkomulai avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.