Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
app6460 committed Feb 27, 2022
1 parent da8c909 commit ddf05c3
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Bebas+Neue&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="img/icon.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<title>WORDLE!</title>
Expand All @@ -28,7 +31,7 @@ <h1>WORDLE</h1>
</div>
</div>
<div class="input">
<input type="text" id="word">
<input type="text" id="word" maxlength="1" autocomplete="off" oninput="this.value = this.value.replace(/[^A-Za-z]/ig, '').toUpperCase()" autofocus>
</div>
</body>
</html>
Empty file added main.js
Empty file.
56 changes: 46 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,45 +1,81 @@
* {
margin: 0;
padding: 0;
font-family: 'Bebas Neue', cursive;
letter-spacing: 2px;
}

body {
background: rgb(241, 241, 241);
}

.header {
width: 100%;
height: 80px;
display: flex;
align-items: center;
box-shadow: 0px 3px 10px 10px rgba(0, 0, 0, 0.24);
background: rgb(68, 54, 197);
background: rgb(96, 80, 238);
}

.header > span {
margin-left: 10px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
user-select: none;
font-size: 25px;
margin-left: 10px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
user-select: none;
}

.logo {
width: 60px;
height: 60px;
}

.logo > img {
width: 100%;
}

.logo > img:hover {
cursor: pointer;
}

.board {
display: flex;
align-items: center;
width: 100%;
height: 60vh;
}

.screen {
width: 80%;
height: 80%;
margin-left: auto;
margin-right: auto;
background: black;
}
margin: 0 auto;
display: flex;
justify-content: center;
background: linear-gradient(0deg, rgb(193, 225, 253) 21%, rgb(199, 201, 253) 100%);
box-shadow: 0 0 0 5px black inset;
border-radius: 15px;
}

.input {
height: 100px;
text-align: center;
}

.input > input {
text-align: center;
width: 100px;
height: 100%;
font-size: 80px;
outline: none;
border: black solid;
border-width: 0px;
box-shadow: 5px 5px 10px 2px rgba(131, 131, 131, 0.315);
border-radius: 10px;
transition: border-width 500ms ease-out;
}

.input > input:focus {
border-width: 3px black;
}

0 comments on commit ddf05c3

Please sign in to comment.