Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

componentRoute #1

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# PARS.css Component Library

PARS.css is a component library built using pure css. It provides a set of common website components with more to be added in the future. The components make use of predefined css classes that follow the BEM syntax to compose the component.

The documentation site is built using React.js. It makes use of Prism.js for code highlighting. The site also support both light and dark mode. Parcel used for bundling and hosted on Netlify.

Still under development. Fixes and more features will be added soon.

## Installation

Clone the repository or download it as zip.

Install dependencies:

```
npm install
```

Compile app and run the server:

```
npm run dev
```

## Demo

![PARS.css](https://i.imgur.com/UGYru83.png)

[Project Live Link](https://pars.netlify.app/).
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
100 changes: 94 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"description": "",
"main": "index.js",
"dependencies": {
"history": "^5.0.0",
"prismjs": "^1.23.0",
"react": "^17.0.1",
"react-dom": "^17.0.1"
"react-dom": "^17.0.1",
"react-element-to-jsx-string": "^14.3.2",
"react-router-dom": "^6.0.0-beta.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
Expand Down
12 changes: 10 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import React from "react";
import "./css/pars.css";
import "./css/prism.css";
import "./css/style.css";
import Header from "./components/Header";
import ComponentsRoute from "./components/ComponentsRoute";
import { BrowserRouter as Router } from "react-router-dom";

export default function App() {
return (
<div>
<h1>test</h1>
<div className="App">
<Header />
<Router>
<ComponentsRoute />
</Router>
</div>
);
}
Binary file added src/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Loading