Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewoaragao committed Nov 8, 2023
0 parents commit ee3492a
Show file tree
Hide file tree
Showing 8 changed files with 786 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Video8-To-do-List
To do List | HTML CSS JavaScript
28 changes: 28 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Card Flip</title>
<link rel="stylesheet" href="resources/css/style.css" />
<link
rel="shortcut icon"
href="resources/images/repeat-solid.svg"
type="image/x-icon"
/>
</head>
<body>
<div class="card" id="card">
<div class="card-inner">
<div class="card-front">
<h2>Front of the Card</h2>
</div>
<div class="card-back">
<h2>Back of the Card</h2>
</div>
</div>
</div>

<script src="resources/js/script.js"></script>
</body>
</html>
74 changes: 74 additions & 0 deletions resources/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
:root {
--white: #cecbca;
--gray: #2e2e2e;
--green: #3cb371;
--dark-green: #2b855394;
}

* {
padding: 0;
margin: 0;
box-sizing: border-box;
}

body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: var(--gray);
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.card {
width: 200px;
height: 300px;
cursor: pointer;
}

.card-inner {
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.5s;
}

.card.flipped .card-inner {
transform: rotateY(180deg);
}

.card-front,
.card-back {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 10px 3px var(--dark-green);
border: 2px solid var(--green);
transition: box-shadow 0.3s, border 0.3s;
border-radius: 10px;
}

.card-front {
background-color: var(--green);
color: var(--gray);
}

.card-back {
background-color: var(--dark-green);
color: var(--white);
}

.card-front:hover,
.card-back:hover {
box-shadow: 0 0 10px 3px var(--white);
border: 2px solid var(--white);
}

.card-back {
transform: rotateY(180deg);
}
Binary file added resources/images/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/images/repeat-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources/js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const card = document.getElementById("card");

card.addEventListener("click", function () {
card.classList.toggle("flipped");
});

0 comments on commit ee3492a

Please sign in to comment.