first commit

This commit is contained in:
Sami 2025-07-29 13:58:36 -04:00
commit 04f3fcd4fa
8 changed files with 31174 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

253
CSS/styles.css Normal file
View File

@ -0,0 +1,253 @@
*, *::after, *::before{
box-sizing: border-box;
}
body{
background-color: hsl(0, 67%, 96%);
display: flex;
text-align: center;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 1em;
font-size: clamp(.5rem, 2.5vmin, 1.5rem);
}
.keyboard {
display: grid;
grid-template-columns: repeat(20, minmax(auto, 1.25em));
grid-auto-rows: 3em;
gap: .25em;
justify-content: center;
}
.key{
font-size: inherit;
grid-column: span 2;
border: none;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: hsl(
var(--hue, 200),
var(--saturation, 1%),
calc(var(--lightness-offset, 0%) + var(--lightness, 51%))
);
color: rgb(255, 255, 255);
fill: white;
text-transform: uppercase;
border-radius: .25em;
cursor: pointer;
user-select: none;
}
.key.large{
grid-column: span 3;
}
.key > svg {
width: 1.50em;
height: 1.50em;
}
.key:hover, .key:focus{
--lightness-offset: 10%;
}
.key.wrong {
--lightness: 23%;
}
.key.wrong-position{
--hue: 49;
--saturation: 51%;
--lightness: 47%;
}
.key.correct{
--hue: 115;
--saturation: 29%;
--lightness: 43%;
}
.guess-grid{
display: grid;
justify-content: center;
align-content: center;
flex: 1;
grid-template-columns: repeat(5, 4em);
grid-template-rows: repeat(6, 4em);
gap: .25em;
margin-bottom: 1em;
}
.tile{
font-size: 2em;
color: rgb(158, 155, 155);
border: .05em solid hsl(240, 3%, 14%);
text-transform: uppercase;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
transition: transform 250ms linear;
transition: transform 250ms linear;
}
.tile[data-state="active"] {
border-color: hsl(240, 1%, 18%);
}
.tile[data-state="wrong"] {
border: none;
background-color: hsl(240, 12%, 24%);
color: white;
}
.tile[data-state="wrong-position"] {
border: none;
background-color: hsl(49, 51%, 47%);
color: white;
}
.tile[data-state="correct"] {
border: none;
background-color: hsl(115, 31%, 48%);
color: white;
}
.tile.shake{
animation:shake 250ms ease-in-out;
}
.tile.dance {
animation: dance 500ms ease-in-out;
}
.tile.flip {
transform: rotateX(90deg);
}
@keyframes shake {
10% {
transform: translateX(-5%);
}
30% {
transform: translateX(5%);
}
50% {
transform: translateX(-7.5%);
}
70% {
transform: translateX(7.5%);
}
90% {
transform: translateX(-5%);
}
100% {
transform: translateX(0);
}
}
@keyframes dance {
20% {
transform: translateY(-50%);
}
40% {
transform: translateY(5%);
}
60% {
transform: translateY(-25%);
}
80% {
transform: translateY(2.5%);
}
90% {
transform: translateY(-5%);
}
100% {
transform: translateY(0);
}
}
.alert-container{
position: fixed;
top: 17vh;
left: 50vw;
transform: translateX(-50%);
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
}
.alert{
pointer-events: none;
background-color: hsl(204, 7%, 85%);
padding: .55em;
border-radius: .25em;
opacity: 1;
transition: opacity 500ms ease-in-out;
margin-bottom: .5em;
}
.alert:last-child{
margin-bottom: 0;
}
.alert.hide{
opacity: 0;
}
.img-banner{
width: auto ;
max-width: 50% ;
height: auto ;
}
.theme-change{
position: absolute;
top: 2.5rem;
display: flex;
color: rgb(202, 181, 181);
font-size: 1.2rem;
cursor: pointer;
}
.theme-change:hover{
color: rgb(150, 141, 141)
}
body.dark-theme{
background-color: hsl(0, 0%, 8%);
font:white;
display: flex;
text-align: center;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 1em;
font-size: clamp(.5rem, 2.5vmin, 1.5rem);
}
.share-stats{
position: absolute;
top: 4.5rem;
display: flex;
color: rgb(202, 181, 181);
font-size: 1.2rem;
cursor: pointer;
}
.share-stats:hover{
color: rgb(150, 141, 141)
}
.setting-page{
position: absolute;
top: 6.5rem;
display: flex;
color: rgb(202, 181, 181);
font-size: 1.2rem;
cursor: pointer;
}
.setting-page:hover{
color: rgb(150, 141, 141)
}

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# worldleAddiction
a wordle clone that you can play non stop if you don't have the patience to wait 24 hours... slightly better
# WordleForSara

12974
dictionary.json Normal file

File diff suppressed because it is too large Load Diff

BIN
img/wordle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

109
index.html Normal file
View File

@ -0,0 +1,109 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css">
<link rel="stylesheet" href="CSS/styles.css">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<script src="script.js" defer></script>
<title>Wordle for Sara</title>
</head>
<body>
<section class="darkmode section">
<p>
<a href="#"onclick="window.location.reload(true);">
<img class="img-banner" src="img/wordle.png" alt="wordle">
<hr style="width:25%;">
</a>
</p>
</section>
<section class="icons section">
<div class="icons__container bd-grid">
<i class='bx bx-moon theme-change' title="Theme" id="theme-button"></i>
</div>
<div class="icons__container bd-grid">
<i class='bx bx-share-alt share-stats' title="Stats" id="Stats-button"></i>
</div>
<div class="icons__container bd-grid">
<a href="https://www.youtube.com/watch?v=UkOKCWDJ4iA">
<i class='bx bxs-heart setting-page' title="I love You" id="Setting-button"
href="https://www.youtube.com/watch?v=UkOKCWDJ4iA"></i>
</a>
</div>
</section>
<div class="alert-container" data-alert-container></div>
<div data-guess-grid class="guess-grid">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div data-keyboard class="keyboard">
<button class="key" data-key="Q">Q</button>
<button class="key" data-key="W">W</button>
<button class="key" data-key="E">E</button>
<button class="key" data-key="R">R</button>
<button class="key" data-key="T">T</button>
<button class="key" data-key="Y">Y</button>
<button class="key" data-key="U">U</button>
<button class="key" data-key="I">I</button>
<button class="key" data-key="O">O</button>
<button class="key" data-key="P">P</button>
<div class="space"></div>
<button class="key" data-key="A">A</button>
<button class="key" data-key="S">S</button>
<button class="key" data-key="D">D</button>
<button class="key" data-key="F">F</button>
<button class="key" data-key="G">G</button>
<button class="key" data-key="H">H</button>
<button class="key" data-key="J">J</button>
<button class="key" data-key="K">K</button>
<button class="key" data-key="L">L</button>
<div class="space"></div>
<button data-enter class="key large">Enter</button>
<button class="key" data-key="Z">Z</button>
<button class="key" data-key="X">X</button>
<button class="key" data-key="C">C</button>
<button class="key" data-key="V">V</button>
<button class="key" data-key="B">B</button>
<button class="key" data-key="N">N</button>
<button class="key" data-key="M">M</button>
<button data-delete class="key large">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path fill="var(--color-tone-1)"
d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z">
</path>
</svg>
</button>
</div>
</body>
</html>

15517
script.js Normal file

File diff suppressed because it is too large Load Diff

2317
targetWords.json Normal file

File diff suppressed because it is too large Load Diff