add day 1
This commit is contained in:
61
day1/index.html
Normal file
61
day1/index.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!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">
|
||||
<title>Day1</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="grid place-items-center p-3 content-center min-h-screen">
|
||||
<div class="p-6 max-h-3/6 border-neutral-800 rounded-lg container__count border">
|
||||
<div class="mb-2">
|
||||
<h2 class="text-xl font-semibold text-center" id="count">{count}</h2>
|
||||
</div>
|
||||
<div class="flex justify-center">
|
||||
<button id="btn-subtract" class="transition-colors p-3 active:bg-red-700 hover:bg-red-600 hover:text-zinc-100 mr-1"><svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="-5 -11 24 24"
|
||||
width="24"
|
||||
fill="currentColor">
|
||||
<path d="M1 0h12a1 1 0 0 1 0 2H1a1 1 0 1 1 0-2z"></path>
|
||||
</svg></button>
|
||||
<button id="btn-reset" class="transition-colors p-3 active:bg-zinc-800 hover:bg-zinc-900 hover:text-red-100 mr-1">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.5 -2.5 24 24" width="24" fill="currentColor"><path d="M17.83 4.194l.42-1.377a1 1 0 1 1 1.913.585l-1.17 3.825a1 1 0 0 1-1.248.664l-3.825-1.17a1 1 0 1 1 .585-1.912l1.672.511A7.381 7.381 0 0 0 3.185 6.584l-.26.633a1 1 0 1 1-1.85-.758l.26-.633A9.381 9.381 0 0 1 17.83 4.194zM2.308 14.807l-.327 1.311a1 1 0 1 1-1.94-.484l.967-3.88a1 1 0 0 1 1.265-.716l3.828.954a1 1 0 0 1-.484 1.941l-1.786-.445a7.384 7.384 0 0 0 13.216-1.792 1 1 0 1 1 1.906.608 9.381 9.381 0 0 1-5.38 5.831 9.386 9.386 0 0 1-11.265-3.328z"></path></svg>
|
||||
</button>
|
||||
<button id="btn-add" class="transition-colors p-3 active:bg-green-700 hover:bg-green-600 hover:text-green-100"><svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="-4.5 -4.5 24 24"
|
||||
width="24"
|
||||
fill="currentColor">
|
||||
<path d="M8.9 6.9v-5a1 1 0 1 0-2 0v5h-5a1 1 0 1 0 0 2h5v5a1 1 0 1 0 2 0v-5h5a1 1 0 1 0 0-2h-5z">
|
||||
</path>
|
||||
</svg></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script defer type="module"
|
||||
src="script.js"></script>
|
||||
</body>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
background-color: #101010;
|
||||
color: #FEFEFE;
|
||||
font-family: Helvetica, Arial, Sans-Serif;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.container__count {
|
||||
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user