mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
principal screen done
This commit is contained in:
@@ -27,8 +27,56 @@ header h2 {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.app {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-top: 2vh;
|
||||
}
|
||||
.app .column-2 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.hangman {
|
||||
user-select: none;
|
||||
}
|
||||
.hangman img {
|
||||
width: 20vw;
|
||||
}
|
||||
|
||||
.puzzleWord {
|
||||
font-family: "Rambla", sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 60pt;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
max-width: 70vw;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.puzzleWord .letter {
|
||||
width: 3vw;
|
||||
height: 70pt;
|
||||
margin-left: 2vw;
|
||||
border-bottom: 3px solid #000;
|
||||
}
|
||||
.puzzleWord .counter {
|
||||
font-size: 40pt;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
margin-left: 3vw;
|
||||
}
|
||||
|
||||
.current-score {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
font-family: "Raleway", sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 18pt;
|
||||
color: #58ff6b;
|
||||
}
|
||||
.current-score .text {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=index.css.map */
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["../sass/index.scss","../sass/_header.scss","../sass/_hangman.scss"],"names":[],"mappings":"AAAA;EACI;EACA;;;ACFJ;EACI;EAEA;EAEA;EACA;EACA;EACA;;AAEA;EDHA;EACA;EAIA;EACA;;ACGA;EDTA;EACA;EAIA;EACA;ECMI;EACA;EAEA;;;ACrBJ;EACI","file":"index.css"}
|
||||
{"version":3,"sourceRoot":"","sources":["../sass/index.scss","../sass/_header.scss","../sass/_app.scss","../sass/_hangman.scss","../sass/_puzzleWord.scss","../sass/_current-score.scss"],"names":[],"mappings":"AAAA;EACI;EACA;;;ACFJ;EACI;EAEA;EAEA;EACA;EACA;EACA;;AAEA;EDHA;EACA;EAIA;EACA;;ACGA;EDTA;EACA;EAIA;EACA;ECMI;EACA;EAEA;;;ACtBR;EAEI;EACA;EAEA;;AAMA;EACI;EACA;EAEA;;;ACfR;EAEI;;AAEA;EACI;;;ACLR;EJkBI;EACA;EIhBA;EAEA;EACA;EAEA;EAEA;EACA;;AAEA;EACI;EACA;EACA;EAEA;;AAGJ;EACI;EAEA;EAEA;;;AC1BR;EAEI;EAEA;ELGA;EACA;EKAA;EAEA;;AAEA;EACI","file":"index.css"}
|
||||
@@ -11,6 +11,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Rambla&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="./css/index.css">
|
||||
<!--
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
@import 'hangman';
|
||||
|
||||
.app {
|
||||
|
||||
}
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
|
||||
margin-top: 2vh;
|
||||
|
||||
.column-1 {
|
||||
|
||||
}
|
||||
|
||||
.column-2 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
justify-content: space-between
|
||||
}
|
||||
}
|
||||
|
||||
@import 'hangman';
|
||||
@import 'puzzleWord';
|
||||
@import 'current-score';
|
||||
16
public/sass/_current-score.scss
Normal file
16
public/sass/_current-score.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
.current-score {
|
||||
|
||||
display: flex;
|
||||
|
||||
flex-direction: row-reverse;
|
||||
|
||||
@include titleFont();
|
||||
|
||||
font-size: 18pt;
|
||||
|
||||
color: rgb(88, 255, 107);
|
||||
|
||||
.text {
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
.hangman {
|
||||
|
||||
user-select: none;
|
||||
|
||||
img {
|
||||
width: 20vw;
|
||||
}
|
||||
|
||||
29
public/sass/_puzzleWord.scss
Normal file
29
public/sass/_puzzleWord.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
.puzzleWord {
|
||||
@include bodyFont();
|
||||
|
||||
font-size: 60pt;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
max-width: 70vw;
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.letter {
|
||||
width: 3vw;
|
||||
height: 70pt;
|
||||
margin-left: 2vw;
|
||||
|
||||
border-bottom: 3px solid #000;
|
||||
}
|
||||
|
||||
.counter {
|
||||
font-size: 40pt;
|
||||
|
||||
font-family:Arial, Helvetica, sans-serif;
|
||||
|
||||
margin-left: 3vw;
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ html, body {
|
||||
|
||||
@mixin bodyFont() {
|
||||
|
||||
font-family: 'Raleway', sans-serif;
|
||||
font-family: 'Rambla', sans-serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user