Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

A set of components arranged in a typical page layout

License

Notifications You must be signed in to change notification settings

tyhopp/react-ts-scaffolding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React + TypeScript Scaffolding

A set of components arranged in a typical page layout.

Netlify Status

This project is deployed at react-ts-scaffolding.netlify.app.

Usage

  1. yarn install
  2. yarn start to run the project locally
  3. yarn test to run unit tests

Project

Set up with the create-react-app TypeScript template.

This project is a Single Page Application in the literal sense. If multiple pages were required, I'd add a router in app.tsx and move all pages to a pages or templates directory.

Components follow this structure:

react-ts-scaffolding/
└─ src/
   └─ components/
      └─ aside/
        ├─ aside.css
        ├─ aside.test.tsx
        └─ aside.tsx

Unit tests are colocated with component source code to keep them managable if this project were to scale.

Layout

  • Note - A, B, and C are asides.

Mobile/tablet viewport size (<= 1200px):

+---------------------+
|        header       |
+---------------------+
+---------------------+
|                     |
|                     |
|       counter       |
|                     |
|                     |
+---------------------+
+---------------------+
|          ||         |
|    A     ||    B    |
|          ||         |
+---------------------+
+---------------------+
|                     |
|           C         |
|                     |
+---------------------+
+---------------------+
|                     |
|        footer       |
|                     |
+---------------------+

Desktop viewport size (>= 1200px):

+---------------------+
|        header       |
+---------------------+
+---+ +---------+ +---+
| A | |         | |   |
|   | |         | |   |
+---+ | counter | | C |
+---+ |         | |   |
| B | |         | |   |
|   | |         | |   |
+---+ +---------+ +---+
+---------------------+
|                     |
|        footer       |
|                     |
+---------------------+

Styles

This project uses:

About

A set of components arranged in a typical page layout

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published