Skip to content

Commit

Permalink
v2.0.0-RC
Browse files Browse the repository at this point in the history
  • Loading branch information
SavanDev committed Apr 24, 2020
1 parent 0a9dd3f commit c5d2049
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 78 deletions.
32 changes: 14 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
<div align=center>
<img src="./icons/cd-current.svg" width="256px" />
<div style="text-align:center">
<img src="./icons/cd-current.svg" width="256px" />

![https://savandev.github.io/cleanify-design](https://img.shields.io/github/v/release/savandev/cleanify-design?label=Cleanify%20Design&style=for-the-badge)
![](https://img.shields.io/github/package-json/v/savandev/cleanify-design?color=red&label=master&style=flat-square)
</div>

HTML, CSS & JS personal framework.
## HTML, CSS & JS personal framework.

The framework is based in "One UI" of Samsung and organization of Bootstrap.

# Status

![](https://img.shields.io/github/package-json/v/savandev/cleanify-design?style=for-the-badge)
![](https://img.shields.io/github/v/release/savandev/cleanify-design?style=for-the-badge)
![](https://img.shields.io/github/license/savandev/cleanify-design?style=for-the-badge)
![https://www.npmjs.com/package/cleanify-design](https://img.shields.io/npm/v/cleanify-design?color=yellow&style=flat-square)
![https://github.com/SavanDev/cleanify-design/blob/master/LICENSE](https://img.shields.io/github/license/savandev/cleanify-design?style=flat-square)

# Features
# Quick start

- Dark mode
- Use of HTML5 tags
- Mobile ready
- Style based in One UI
- Download from [GitHub releases](https://github.com/SavanDev/cleanify-design/releases).
- Install with [NPM](https://www.npmjs.com/): ```npm install cleanify-design```.
- Clone the repo: ```git clone https://github.com/SavanDev/cleanify-design.git```

# Get started
# Development

Compile CSS & JS
```
Expand All @@ -30,6 +29,7 @@ Watch changes
```
yarn start
```

---

Watch docs
Expand All @@ -41,7 +41,3 @@ Compile docs
```
yarn run docs:build
```

---

You can download, also, from GitHub [releases](https://github.com/SavanDev/cleanify-design/releases).
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cleanify-design",
"version": "2.0.0",
"version": "2.0.0-RC",
"description": "HTML, CSS & JS personal framework",
"homepage": "./",
"repository": "https://github.com/SavanDev/cleanify-design.git",
Expand All @@ -15,36 +15,36 @@
"start": "gulp watch"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.20",
"@fortawesome/free-brands-svg-icons": "^5.10.1",
"@fortawesome/free-solid-svg-icons": "^5.10.0",
"@fortawesome/react-fontawesome": "^0.1.4",
"@types/jest": "24.0.15",
"@types/node": "12.6.8",
"@types/react": "16.8.23",
"@types/react-dom": "16.8.5",
"@types/react-highlight": "^0.12.1",
"@types/react-router-dom": "^4.3.4",
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-brands-svg-icons": "^5.13.0",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
"@types/jest": "25.2.1",
"@types/node": "13.13.2",
"@types/react": "16.9.34",
"@types/react-dom": "16.9.6",
"@types/react-highlight": "^0.12.2",
"@types/react-router-dom": "^5.1.4",
"angled-edges": "^2.0.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-highlight": "^0.12.0",
"react-markdown": "^4.2.0",
"react-router-dom": "^5.0.1",
"react-scripts": "3.0.1",
"rfs": "^8.0.4",
"sass": "^1.22.5",
"typescript": "3.5.3"
"react-markdown": "^4.3.1",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"rfs": "^9.0.3",
"sass": "^1.26.5",
"typescript": "3.8.3"
},
"devDependencies": {
"@babel/core": "^7.5.4",
"@babel/preset-env": "^7.5.4",
"gh-pages": "2.0.1",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"gh-pages": "2.2.0",
"gulp": "^4.0.2",
"gulp-clean": "^0.4.0",
"gulp-sass": "^4.0.2",
"gulp-sass": "^4.1.0",
"normalize.css": "^8.0.1",
"webpack-cli": "^3.3.7",
"webpack-cli": "^3.3.11",
"webpack-stream": "^5.2.1"
},
"eslintConfig": {
Expand Down
2 changes: 1 addition & 1 deletion public/css/cleanify.css

Large diffs are not rendered by default.

Empty file modified public/js/cleanify.js
100755 → 100644
Empty file.
62 changes: 27 additions & 35 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Link } from 'react-router-dom';
import packageJson from '../../package.json';
import { faSun, faMoon, faDownload, faBook, faAddressCard, IconDefinition } from '@fortawesome/free-solid-svg-icons';
import { getDarkMode } from "./Cookies";
import { faDownload, faBook, faAddressCard } from '@fortawesome/free-solid-svg-icons';
import ReactDOM from 'react-dom';

// TODO: Complete new dark mode switch
class Navbar extends React.Component<any, INavbar> {
constructor(props: any) {
super(props);
this.state = { icon: getDarkMode() ? faMoon : faSun };
this.iconToggle = this.iconToggle.bind(this);
}
const Navbar: React.FC = () => {
let urlVersion = "https://api.github.com/repos/SavanDev/cleanify-design/releases";

iconToggle() {
this.setState(state => ({
icon: (state.icon === faMoon ? faSun : faMoon)
}))
}
(async () => {
await fetch(urlVersion)
.then(response => response.json())
.then(json => {
ReactDOM.render(
<li>{json[0].tag_name}</li>,
document.getElementById("version")
);
});
})();

render() {
return (
<nav>
<Link to="/" className="navbar-title">Cleanify Design</Link>
<ul className="navbar-menu">
<li><Link to="/download"><FontAwesomeIcon icon={faDownload} /> Download</Link></li>
<li><Link to="/docs"><FontAwesomeIcon icon={faBook} /> Documentation</Link></li>
<li><Link to="/about"><FontAwesomeIcon icon={faAddressCard} /> About</Link></li>
</ul>
<ul className="navbar-right-menu">
<li id="version">v{ packageJson.version }</li>
{/*<li id="darkToggle" onClick={this.iconToggle}><FontAwesomeIcon icon={this.state.icon}/></li>*/}
</ul>
</nav>
);
}
}

interface INavbar {
icon: IconDefinition;
return (
<nav>
<Link to="/" className="navbar-title">Cleanify Design</Link>
<ul className="navbar-menu">
<li><Link to="/download"><FontAwesomeIcon icon={faDownload} /> Download</Link></li>
<li><Link to="/docs"><FontAwesomeIcon icon={faBook} /> Documentation</Link></li>
<li><Link to="/about"><FontAwesomeIcon icon={faAddressCard} /> About</Link></li>
</ul>
<ul className="navbar-right-menu" id="version">
<li>v...</li>
</ul>
</nav>
);
}

export default Navbar;

0 comments on commit c5d2049

Please sign in to comment.