GithubHelp home page GithubHelp logo

nsdown / front Goto Github PK

View Code? Open in Web Editor NEW

This project forked from djyde/front

0.0 2.0 0.0 670 KB

A simple, hackable frontpage for hackers

Home Page: http://djyde.github.io/front

JavaScript 100.00%

front's Introduction

#Front Page A simple, hackable frontpage for hackers.

http://djyde.github.io/front

##Customize (or contribute) Front Page is easily to be hacked and make you own reader. But you need to handle some skills:

  • Jade - Template engine.
  • Vue.js - A lightweight MVVM library.

To have your own frontpage, just:

The main files of Front Page is index.jade and js/base.js.

Using jade helps customize easier. For example, if you don't care about Hacker News, you only need to comment out the relevent code(e.g. command + / in Sublime) in index.jade and js/base.js to remove it.

index.jade

//- .pure-u-1-3.post
//-   .title Hacker News
//-   .block#hackernews
//-     ul
//-       a(v-repeat="lists", href="{{link}}", target="_blank")
//-         li {{title}}

js/base.js

// Hacker News
// qwest.get('http://node-read.avosapps.com/hackernews').then(function(res){
//   hackernews.lists = JSON.parse(res);
// })
// var hackernews = new Vue({
//   el: '#hackernews',
//   data: {
//     lists: [{
//       title: 'loading...'
//     }]
//   }
// })

Save and refresh the page, you will find that Hacker News block was removed.

To add a new block for your own or for contribution, just refer to the source code and hack it.

#Lincense Just hack it.

front's People

Contributors

djyde avatar kalasoo avatar

Watchers

 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.