Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Pré-requis

Pour ce projet il faut installer FontAwesome dans le répertoire du projet:

```
npm i --save @fortawesome/fontawesome-svg-core \
npm i --save @fortawesome/free-solid-svg-icons \
npm i --save @fortawesome/react-fontawesome
```

## Available Scripts

In the project directory, you can run:
Expand Down
17,190 changes: 17,190 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.14",
"@fortawesome/free-solid-svg-icons": "^5.7.1",
"@fortawesome/react-fontawesome": "^0.1.4",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scripts": "2.1.3"
Expand Down
66 changes: 66 additions & 0 deletions public/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
body {
font: 14px "Century Gothic", Futura, sans-serif;
margin: 20px;
}

ol, ul {
padding-left: 30px;
}

.board-row:after {
clear: both;
content: "";
display: table;
}

.status {
margin-bottom: 10px;
}

.cell {
background: black;
border: 2px solid #fff;
border-radius: 50px;
float: left;
font-size: 50px;
font-weight: bold;
line-height: 34px;
height: 100px;
padding: 0;
text-align: center;
width: 100px;
margin: 3px;
color: white;
}

.cell:focus {
outline: none;
}

.kbd-navigation .cell:focus {
background: #ddd;
}

.game {
display: block;
}

.game-info {
margin-left: 560px;
margin-top: -20px;
color: black;
}

h1{
font-size: 40px;
text-align: center;
}

.game-board{
margin-left: 540px;
}

.game-night{
margin-left: 755px;
margin-top: 20px;
}
68 changes: 68 additions & 0 deletions public/App2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
body {
font: 14px "Century Gothic", Futura, sans-serif;
margin: 20px;
background-color: black;
}

ol, ul {
padding-left: 30px;
}

.board-row:after {
clear: both;
content: "";
display: table;
}

.status {
margin-bottom: 10px;
}

.cell {
background: white;
border: 2px solid #fff;
border-radius: 50px;
float: left;
font-size: 50px;
font-weight: bold;
line-height: 34px;
height: 100px;
padding: 0;
text-align: center;
width: 100px;
margin: 3px;
color: black;
}

.cell:focus {
outline: none;
}

.kbd-navigation .cell:focus {
background: #ddd;
}

.game {
display: block;
}

.game-info {
margin-left: 560px;
margin-top: -20px;
color: white;
}

h1{
font-size: 40px;
text-align: center;
color: white;
}

.game-board{
margin-left: 540px;
}

.game-night{
margin-left: 755px;
margin-top: 20px;
}
63 changes: 63 additions & 0 deletions public/Tic_tac_toe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="shortcut icon" href="%PUBLIC_URL%/Tic_tac_toe.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
Expand All @@ -22,7 +22,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>TicTacToe</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
72 changes: 50 additions & 22 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,60 @@
.App {
text-align: center;
body {
font: 14px "Century Gothic", Futura, sans-serif;
margin: 20px;
}

ol, ul {
padding-left: 30px;
}

.board-row:after {
clear: both;
content: "";
display: table;
}

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
.status {
margin-bottom: 10px;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
.cell {
background: black;
border: 2px solid #fff;
border-radius: 50px;
float: left;
font-size: 50px;
font-weight: bold;
line-height: 34px;
height: 100px;
padding: 0;
text-align: center;
width: 100px;
margin: 3px;
color: white;
}

.App-link {
color: #61dafb;
.cell:focus {
outline: none;
}

.kbd-navigation .cell:focus {
background: #ddd;
}

.game {
display: block;
}

.game-info {
margin-left: 540px;
margin-top: 20px;
}

h1{
font-size: 40px;
text-align: center;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.game-board{
margin-left: 540px;
}
Loading