diff --git a/cryptide_project/src/App.tsx b/cryptide_project/src/App.tsx index c66f9df..4acdaa8 100644 --- a/cryptide_project/src/App.tsx +++ b/cryptide_project/src/App.tsx @@ -24,6 +24,7 @@ import 'bootstrap/dist/css/bootstrap.min.css'; /* Internationnalisation */ import messagesFr from './Translations/fr.json'; import messagesEn from './Translations/en.json'; +import Play from './Pages/Play'; const messages = { fr: messagesFr, @@ -60,6 +61,7 @@ function App() { } /> } /> } /> + } /> diff --git a/cryptide_project/src/Components/NavBar.tsx b/cryptide_project/src/Components/NavBar.tsx index b728eb8..9f88892 100644 --- a/cryptide_project/src/Components/NavBar.tsx +++ b/cryptide_project/src/Components/NavBar.tsx @@ -15,7 +15,7 @@ import { HiLanguage } from 'react-icons/hi2'; import './NavBar.css'; // @ts-ignore -function AppNavbar({ changeLocale}) { +function AppNavbar({changeLocale}) { return ( @@ -29,10 +29,10 @@ function AppNavbar({ changeLocale}) {
diff --git a/cryptide_project/src/Pages/Home.tsx b/cryptide_project/src/Pages/Home.tsx index 05ccbe4..f353013 100644 --- a/cryptide_project/src/Pages/Home.tsx +++ b/cryptide_project/src/Pages/Home.tsx @@ -21,7 +21,7 @@ function Home() {

- +

diff --git a/cryptide_project/src/Pages/Play.css b/cryptide_project/src/Pages/Play.css new file mode 100644 index 0000000..4bc43b3 --- /dev/null +++ b/cryptide_project/src/Pages/Play.css @@ -0,0 +1,89 @@ + +.MainContainer{ + flex: 1 1 0; + display: flex; + flex-direction: row; + justify-content:space-around +} + +.MidContainer{ + display: flex; + /* justify-content:center; */ + align-items:center; + flex-direction: column; + + margin-top: 15px; + width: 30%; +} + +.MidContainer div h2 { + display: flex; + justify-content: center; +} +/* +.MidContainer div { + display: flex; + justify-content: center; + flex-direction: column; +} */ + +.leftContainer{ + width: 30%; +} + +.rightContainer{ + width: 30%; +} + +.LeaderBoardiv{ + background-color: #D7D4C6; + opacity: 80%; + border-radius: 25px; + + display: flex; + align-items: center; + flex-direction: column; + + margin: 15px; +} + + +.textBoard{ + display: flex; + flex-wrap: column; + justify-content: space-between; + width: 300px; +} + +/* .textBoard div{ + display: flex; + flex-direction:column-reverse; + justify-content:space-between +} */ + +/* .textBoard div:nth-child(2){ + display: flex; + justify-content: end; +} */ + +/**Button**/ +.buttonGroupVertical{ + display: flex; + justify-content:center; + align-items:center; + flex-direction: column; +} + +.ButtonNav{ + margin: 15px 0; + width:200px; + height: 8vh; + + + background-color: #85C9C2; + color: #2A4541; + border-radius: 15px; + border-width: 0; + + font-size:larger; +} \ No newline at end of file diff --git a/cryptide_project/src/Pages/Play.tsx b/cryptide_project/src/Pages/Play.tsx new file mode 100644 index 0000000..5af5872 --- /dev/null +++ b/cryptide_project/src/Pages/Play.tsx @@ -0,0 +1,71 @@ +import React from 'react'; +import './Play.css'; + +import Person from '../res/img/Person.png'; +import { Link } from 'react-router-dom'; + +function Play() { + return ( + +
+
+ +
+
+
+

+ Guest 177013 +

+ Person +
+
+ + + + + + + + + +
+
+
+
+ Person2 +
+
+

+ Partie Jouées :
+ Partie gagnées :
+ Pions posés :
+

+
+
+

+ 10
+ 2
+ 45
+

+
+
+ +
+
+
+ ); +} + +export default Play; \ No newline at end of file diff --git a/cryptide_project/src/react-app-env.d.tsx b/cryptide_project/src/react-app-env.d.tsx new file mode 100644 index 0000000..0357e4f --- /dev/null +++ b/cryptide_project/src/react-app-env.d.tsx @@ -0,0 +1,4 @@ +declare module "*.png"; +declare module "*.svg"; +declare module "*.jpeg"; +declare module "*.jpg"; diff --git a/cryptide_project/src/res/img/Person.png b/cryptide_project/src/res/img/Person.png new file mode 100644 index 0000000..a831386 Binary files /dev/null and b/cryptide_project/src/res/img/Person.png differ