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
1 change: 1 addition & 0 deletions assets/Ancients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import cthulhu from './Cthulthu.png';
import iogSothoth from './IogSothoth.png';
import shubNiggurath from './ShubNiggurath.png';


const ancients = {
azathoth,
cthulhu,
Expand Down
Binary file added assets/no_card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/img/ktulhu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
body {
margin: 0;
}

.table {
background-image: url("../css/img/ktulhu.jpg");
/* background-position: 50%; */
background-repeat: no-repeat;
background-size: cover;
display: flex;
gap: 20px;
height: 100vh;
justify-content: space-between;
width: 100vw;
}

.ancients-container {
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 10px;
min-width: 40%;
padding: 20px;
}

.ancient-card {
background-position: 50%;
background-repeat: no-repeat;
background-size: contain;
box-sizing: border-box;
cursor: pointer;
height: 260px;
width: 200px;
border-radius: 10%;
}

.ancient-active {
border: 2px solid rgb(172, 227, 235);
}



.difficulty-container {
display: flex;
flex-direction: column;
gap: 20px;
height: 100vh;
justify-content: center;
}

.difficulty-container .difficulty {
border: 2px solid rgb(172, 227, 235);
box-sizing: border-box;
color: rgb(172, 227, 235);
cursor: pointer;
padding: 5px;
text-align: center;
}

.active {
background-color: rgb(8, 171, 196);
}

.deck-container {
align-items: center;
display: flex;
flex-direction: column;
gap: 20px;
justify-content: center;
min-width: 30%;
}

.current-state {
display: flex;
flex-direction: column;
gap: 10px;
min-height: 30%;
}

.stage-container {
align-items: center;
display: flex;
flex-direction: column;
gap: 5px;
}

.stage-text {
color: rgb(172, 227, 235);
}

.dots-container {
align-items: center;
display: flex;
gap: 20px;
justify-content: center;
}

.dot {
align-items: center;
border-radius: 50%;
display: flex;
height: 30px;
justify-content: center;
width: 30px;
}
.green {
background-color: green;
}
.brown {
background-color: brown;
}
.blue {
background-color: blue;
}


.last-card {
background-size: contain;
/* align-self: center; */
height: 300px;
width: 200px;
border: 2px solid rgb(172, 227, 235);
border-radius: 10%;
}
2 changes: 1 addition & 1 deletion data/ancients.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Ancients from '../assets/Ancients/index'
import Ancients from '.../eldritch-codejam/assets/Ancients/index'

const ancientsData = [
{
Expand Down
59 changes: 59 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!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="../eldritch-codejam/css/style.css" />
<title>Eldritch</title>
</head>
<body>
<div class="plate">
<div class="table">
<div class="ancients-container">
<div class="ancient-card azathoth"></div>
<div class="ancient-card cthulhu" ></div>
<div class="ancient-card iogSothoth"></div>
<div class="ancient-card shubNiggurath"></div>
</div>
<div class="difficulty-container">
<div class="difficulty easy">НИЗКАЯ</div>
<div class="difficulty normal">СРЕДНЯЯ</div>
<div class="difficulty hard">ВЫСОКАЯ</div>
<div class="difficulty shuffle">ПЕРЕТАСОВАТЬ</div>
</div>
<div class="deck-container">
<div class="current-state">
<div class="stage-container ">
<span class="stage-text">ПЕРВАЯ СТАДИЯ</span>
<div class="dots-container first-stage">
<div class="dot green f1"></div>
<div class="dot brown f3"></div>
<div class="dot blue f2"></div>
</div>
</div>
<div class="stage-container">
<span class="stage-text">ВТОРАЯ СТАДИЯ</span>
<div class="dots-container second-stage">
<div class="dot green f4"></div>
<div class="dot brown f6"></div>
<div class="dot blue f5"></div>
</div>
</div>
<div class="stage-container">
<span class="stage-text">ТРЕТЬЯ СТАДИЯ</span>
<div class="dots-container third-stage">
<div class="dot green f7"></div>
<div class="dot brown f9"></div>
<div class="dot blue f8"></div>
</div>
</div>
</div>
<div class="last-card"></div>
</div>

</div>
</div>
<script src="index.js"></script>
</body>
</html>
Loading