Skip to content

Commit

Permalink
Merge pull request #11 from philippebeck/dev
Browse files Browse the repository at this point in the history
Release 0.4.3
  • Loading branch information
philippebeck authored Sep 30, 2024
2 parents b7e17ce + 9b64ae8 commit ee15dd5
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 295 deletions.
59 changes: 7 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ A React Components Library made with TypeScript, Sass, Vite & Atomic Design : Ca

- [Welcome to Reactoms !](#welcome-to-reactoms-)
- [Installation](#installation)
- [NPM](#npm)
- [CDN](#cdn)
- [GitHub](#github)
- [Try](#try)
- [Usage](#usage)
- [Content](#content)
- [Documentation](#documentation)
Expand All @@ -25,86 +21,45 @@ A React Components Library made with TypeScript, Sass, Vite & Atomic Design : Ca

## Installation

Choose one of the following methods :
- **NPM** => *Node Package Manager*
- **CDN** => *Content Delivery Network*
- **GitHub** => *Clone the repository or download the latest release*

---

## NPM

Type this command inside your terminal at the root of your project :
`npm i reactoms`

---

## CDN

Add this stylesheet to the head of your index.html :
`https://cdn.jsdelivr.net/npm/[email protected]/dist/style.min.css`

Add this script at the end of the body of your index.html :
`https://cdn.jsdelivr.net/npm/[email protected]/dist/index.umd.min.js`

---

## GitHub

`git clone https://github.com/philippebeck/reactoms.git`
or
[Latest Release](https://github.com/philippebeck/reactoms/releases)

---

## Try

Run the Welcome UI to try the components :
`npm start`

---

## Usage

Process usage after NPM installation :

1. If you change the components code, you need to compile them :
`npm run build`

2. Then use the compiles files of the dist folder for your prod UI like this :
- inside your pages : `import { Card, Collapse, Icon, Image, Link, List, Title } from 'reactoms'` for the components
- inside your index.html : `<style rel="stylesheet" href="node_modules/reactoms/dist/style.css"></style>` for the style
1. Then use the compiles files of the dist folder for your prod UI like this (*choose the components you want*) :
- inside your pages : `import { Button, Card, Collapse, Footer, Gallery, Icon, Image, Link, List, Navbar, Slider, Title } from 'reactoms'` for the components
- inside your index.html : `<style rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css"></style>` for the icons
- inside your index.html again : `<style rel="stylesheet" href="node_modules/reactoms/dist/style.css"></style>` for the style

---
## Content

Lib Assets :
Assets :
- **Style** => *imports variables & mixins + common styles*
- **Style Variables** => *breakpoints, fonts, colors, transforms*
- **Style Mixins** => *font-face & keyframes*

Lib Atoms :
Atoms :
- **Card** => *figure -> (figcaption)*
- **Collapse** => *details -> summary + figure*
- **Icon** => *i*
- **Image** => *img*
- **Link** => *a*
- **List** => *ul -> li*

Lib Molecules :
Molecules :
- **Button** => *Link -> Icon + (b)*
- **Footer** => *footer -> List -> Button*
- **Gallery** => *List -> Link -> (Card -> Image + Title + List -> Icon)*
- **Navbar** => *nav -> List -> Button*
- **Slider** => *figure -> (nav -> Icon) + progress*
- **Title** => *hgroup -> (p -> Icon) + h1 | h2 | h3 | h4 + (p)*

Src Assets :
- **Logos** => *ts, react, sass, vite*

Src App :
- **App** => *Homepage to test the library*

---

## Documentation
Expand Down
17 changes: 0 additions & 17 deletions index.html

This file was deleted.

13 changes: 11 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactoms",
"version": "0.4.2",
"version": "0.4.3",
"description": "A React Components Library made with TypeScript, Sass, Vite & Atomic Design : Card, Collapse, Icon, Image, Link, List for Atoms & Button, Footer, Gallery, Navbar, Slider, Title for Molecules",
"type": "module",
"keywords":[
Expand Down Expand Up @@ -39,12 +39,12 @@
"./dist/style.css": "./dist/style.css"
},
"scripts": {
"start": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
151 changes: 0 additions & 151 deletions src/app/App.jsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/app/app.css

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

18 changes: 0 additions & 18 deletions src/assets/sass.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/ts.svg

This file was deleted.

Loading

0 comments on commit ee15dd5

Please sign in to comment.