-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
167 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,79 @@ | ||
<img src="https://raw.githubusercontent.com/Nekall/template-react-app/3035507c3f946c17474380f68871d910fd1422f7/src/assets/images/react.svg" alt="react's logo" width="100" height="100"> | ||
|
||
## This is a basic template of a React application. Basically, there is a page system, the jsconfig, and the gitigniore is completed. | ||
Basically I made it for me, but feel free to use it, improve it, customize it. Happy development :) | ||
<img src="https://raw.githubusercontent.com/Nekall/template-react-app/3035507c3f946c17474380f68871d910fd1422f7/src/assets/images/react.svg" alt="react's logo" width="100" height="100"> | ||
|
||
|
||
|
||
## This is a <u>light</u> template of a React application. 🧚♂️ | ||
|
||
Basically I made it for me, but feel free to use it, improve it, customize it. Have a nice dev :) | ||
|
||
(🧹 *All packages & files for creating tests or checking performance have been removed.*) | ||
|
||
|
||
|
||
## Setup ⚙️ | ||
|
||
- Download .zip **or** `git clone` this repository. | ||
- Execute `npm install` | ||
- Execute `npm audit fix` (If necessary) | ||
- Execute `npm start`, Voilà ! | ||
|
||
|
||
- Download .zip **or** `git clone` this repository. | ||
|
||
- Execute `npm install` | ||
|
||
You have a navbar component template, a page template, image import, fonts import, and a folder architecture already done. Enjoy ;) | ||
- Execute `npm audit fix` (If necessary) | ||
|
||
- Execute `npm start`, Voilà ! | ||
|
||
|
||
|
||
You have a navbar component template, a pages templates (*error page in case of wrong url*) , image import, fonts import, and a folder architecture already done. Enjoy ;) | ||
|
||
|
||
|
||
## Customization 🎨 | ||
|
||
Change name & version in **package.json** : | ||
|
||
|
||
Change name & version in **package.json** : | ||
|
||
"name": "template", | ||
"version": "0.0.0", | ||
|
||
|
||
"name": "template", | ||
|
||
"version": "0.0.0", | ||
|
||
|
||
|
||
|
||
Change the logos in : | ||
|
||
/public/favicon.ico | ||
/public/logo192.png | ||
/public/logo512.png | ||
|
||
|
||
/public/favicon.ico | ||
|
||
/public/logo192.png | ||
|
||
/public/logo512.png | ||
|
||
|
||
|
||
& html in `/public/index.html` : | ||
|
||
|
||
|
||
<meta name="description" content="Web site created using create-react-app"/> | ||
|
||
& html in `/public/index.html` : | ||
<title>React App</title> | ||
|
||
<meta name="description" content="Web site created using create-react-app"/> | ||
<title>React App</title> | ||
|
||
|
||
## Dependencies 🧰 | ||
- react | ||
- react-dom | ||
- react-router-dom | ||
- react-scripts | ||
- web-vitals | ||
- sass | ||
|
||
- [react](https://www.npmjs.com/package/react) | ||
|
||
- [react-dom](https://www.npmjs.com/package/react-dom) | ||
|
||
- [react-router-dom](https://www.npmjs.com/package/react-router-dom) | ||
|
||
- [react-scripts](https://www.npmjs.com/package/react-scripts) | ||
|
||
- [node-sass](https://www.npmjs.com/package/node-sass) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@import "../../style/colors.scss"; | ||
|
||
.__navbar { | ||
background-color: $color-grey; | ||
padding: 10px; | ||
|
||
.__logo_react { | ||
width: 35px; | ||
margin: 0 10px; | ||
filter: invert(100%) sepia(11%) saturate(6138%) hue-rotate(180deg) | ||
brightness(107%) contrast(116%); | ||
animation: rotate 5s linear infinite; | ||
} | ||
|
||
a { | ||
color: $color-white; | ||
font-weight: bold; | ||
font-size: 20px; | ||
margin: 0 5px; | ||
&:hover { | ||
color: $light-grey; | ||
} | ||
} | ||
} | ||
|
||
@keyframes rotate{ | ||
to{ transform: rotate(360deg); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ body { | |
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Styles | ||
import styles from "../../style/pages/error-page.module.scss"; | ||
|
||
const ErrorPage = () => ( | ||
<section className={styles.__error_page}> | ||
<h1>404 Not Found</h1> | ||
</section> | ||
); | ||
|
||
export default ErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
// Styles | ||
import styles from "../../style/pages/home.module.scss"; | ||
|
||
const Home = () => { | ||
console.log("Welcome to the React template made by Nekå ✨"); | ||
return ( | ||
<> | ||
<section className={styles.__home}> | ||
<h1>Home</h1> | ||
</> | ||
</section> | ||
); | ||
}; | ||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
// Styles | ||
import styles from "../../style/pages/page1.module.scss"; | ||
|
||
const Page1 = () => { | ||
//Your JS here. | ||
return ( | ||
<> | ||
<section className={styles.__page1}> | ||
<h1>Page 1</h1> | ||
</> | ||
</section> | ||
); | ||
}; | ||
export default Page1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
// Styles | ||
import styles from "../../style/pages/page2.module.scss"; | ||
|
||
const Page2 = () => { | ||
//Your JS here. | ||
return ( | ||
<> | ||
<section className={styles.__page2}> | ||
<h1>Page 2</h1> | ||
</> | ||
</section> | ||
); | ||
}; | ||
export default Page2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@font-face { | ||
font-family: "Avenir Next"; | ||
src: url("../assets/fonts/AvenirNextLTPro-Regular.otf"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ body { | |
margin: 0; | ||
padding: 0; | ||
background-color: #2c2f33; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.__error_page { | ||
text-align: center; | ||
|
||
h1 { | ||
text-transform: uppercase; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.__home { | ||
text-align: center; | ||
|
||
h1 { | ||
text-transform: uppercase; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.__page1 { | ||
text-align: left; | ||
|
||
h1 { | ||
text-transform: uppercase; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.__page2 { | ||
text-align: right; | ||
|
||
h1 { | ||
text-transform: uppercase; | ||
} | ||
} |