generated from WildCodeSchool/create-js-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
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
20 changed files
with
508 additions
and
73 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,15 +1,16 @@ | ||
import { Outlet } from "react-router-dom"; | ||
import SignContextProvider from "./contexts/SignContext"; | ||
import "./App.css"; | ||
import Navbar from "./components/NavBar/NavBar"; | ||
import RowDash from "./components/Dashboards/RowDash"; | ||
|
||
function App() { | ||
return ( | ||
<> | ||
<SignContextProvider> | ||
<Navbar /> | ||
<Outlet /> | ||
<RowDash /> | ||
</> | ||
</SignContextProvider> | ||
); | ||
} | ||
export default App; |
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,19 @@ | ||
import PropTypes from "prop-types"; | ||
import "./error-msg.css"; | ||
|
||
function ErrorMsg({ message }) { | ||
return ( | ||
<div className="error-pop"> | ||
<h3 className="error-description"> | ||
<b className="error-text">Erreur : </b> | ||
{message}. | ||
</h3> | ||
</div> | ||
); | ||
} | ||
|
||
ErrorMsg.propTypes = { | ||
message: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default ErrorMsg; |
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,19 @@ | ||
import PropTypes from "prop-types"; | ||
import "./succes-msg.css"; | ||
|
||
function SuccesMsg({ message }) { | ||
return ( | ||
<div className="succes-pop"> | ||
<h3 className="succes-description"> | ||
{message} | ||
<b className="succes-text"> Succès.</b> | ||
</h3> | ||
</div> | ||
); | ||
} | ||
|
||
SuccesMsg.propTypes = { | ||
message: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default SuccesMsg; |
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,17 @@ | ||
.error-pop { | ||
margin: 20px 0px; | ||
width: 100%; | ||
background-color: var(--error-background); | ||
border-radius: 10px; | ||
} | ||
|
||
.error-description { | ||
color: var(--error-msg); | ||
font-weight: 300; | ||
padding: 10px 0px; | ||
text-align: center; | ||
} | ||
|
||
.error-text { | ||
font-weight: 500; | ||
} |
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,17 @@ | ||
.succes-pop { | ||
margin: 20px 0px; | ||
width: 100%; | ||
background-color: var(--succes-background); | ||
border-radius: 10px; | ||
} | ||
|
||
.succes-description { | ||
color: var(--succes-msg); | ||
font-weight: 300; | ||
padding: 10px 0px; | ||
text-align: center; | ||
} | ||
|
||
.succes-text { | ||
font-weight: 500; | ||
} |
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 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,12 @@ | ||
.title-container { | ||
width: 70%; | ||
margin-left: 25px; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.title-dash { | ||
font-size: 20px; | ||
color: var(--texte-default); | ||
font-weight: 400; | ||
} |
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,20 +1,18 @@ | ||
import "./header.css"; | ||
import PropTypes from "prop-types"; | ||
|
||
function HeaderLongTitle({ textTitle, textTitle2 }) { | ||
function HeaderLongTitle({ textTitle }) { | ||
return ( | ||
<header className="header"> | ||
<div className="header-content"> | ||
<h1>{textTitle}</h1> | ||
<h2>{textTitle2}</h2> | ||
</div> | ||
</header> | ||
); | ||
} | ||
|
||
HeaderLongTitle.propTypes = { | ||
textTitle: PropTypes.string.isRequired, | ||
textTitle2: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default HeaderLongTitle; |
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.
Oops, something went wrong.