Giter Club home page Giter Club logo

news-site's Introduction

Donga News Site

Reconstructed the existing Donga news website layout. The major changes are as follows.

  • Grid Layout : Grid layout clarifies the distinction between sections and enhances contents readability.
  • Card News : Through the form of a card, the picture and title of the article are easily recognized.
  • Slick Slider : A slick slider was implemented using vanilla js.

Detail

1. Grid Layout

The overall content layout consists of grids. Section1 is divided into section1-1 and section1-2 in a 3:1 ratio. A user can easily make out those card news section(section1-1) and the side news section(section1-2) with a space between them.

layout

Likewise, the card news section has grid layout with 3 columns. Each news card can occupy one or two columns. The important news cards are large by taking up two columns.

2. Card News

A card is composed of a big picture and a news title. Users can see and find news they want at a glance.

3. Slick Slider

A slideToShow parameter decides the number of slides to be shown on the screen.

new Slick("#section2", 4); // The slideToShow value is 4

Also, the resize() function re-calculates the slide width as window width changes.

// slick.js constructor()
window.addEventListener('resize', this.resize.bind(this), false);

Source

Pictures and Phrases used in the project are from donga.com.

news-site's People

Contributors

terryps avatar

Watchers

 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.