Giter Club home page Giter Club logo

charlotte-s-blog's Introduction

Charlotte's Web Log

In this exercise, you're going to build a blog for Charlotte.

Charlotte's Web

Setup

Clone this repo, and from the repo's folder

yarn
yarn start

Exercise

Your task is to create all of the components that comprise the page and wire up data for the component to render. One approach would be to create the HTML of the page with static data first, and afterwards, decompose the page into the components below.

The data for the blog, excerpts from the book, can be found in the data folder.

Import the data from the appropriate components and pass the needed data to the components using props.

The components that make up Charlotte's blog are:

  • App: already in place, but could be refactored out into App.jsx.
  • Header: the header of the page.
  • Footer: the footer of the page.
  • Posts: to hold all posts.
  • Post: the component for a single post.
  • OtherBlogs: to hold the list of other blogs.
  • OtherBlog: the component for a single blog link.
  • RecentEntries: to hold the list of recent entries.
  • RecentEntry: the component for a single entry.

Here is a basic layout of the page:

Basic layout

Try to not use a UI framework like Bootstrap. Rather, try to use the CSS Flexbox. Also, consider applying a class to each component using className (instead of the class we use in HTML) to namespace the styles of each component.

charlotte-s-blog's People

Contributors

don-smith 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.