-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* card game addition * changes requested done --------- Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
- Loading branch information
1 parent
714711f
commit fc3d50e
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Women in STEM</title> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
</head> | ||
<body> | ||
<div class="card"> | ||
<div class="face face1"> | ||
<div class="content"> | ||
<h3> | ||
Who is the world's first computer programmer ? (Answer on hover) | ||
</h3> | ||
</div> | ||
</div> | ||
<div class="face face2"> | ||
<div class="content"> | ||
<h4>Ada Lovelace</h4> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="face face1"> | ||
<div class="content"> | ||
<h3>Can you name a famous scientist? (Answer on hover)</h3> | ||
</div> | ||
</div> | ||
<div class="face face2"> | ||
<div class="content"> | ||
<h4>Marie Curie</h4> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="face face1"> | ||
<div class="content"> | ||
<h3>Who is the CTO behind OpenAI's ChatGPT? (Answer on hover)</h3> | ||
</div> | ||
</div> | ||
<div class="face face2"> | ||
<div class="content"> | ||
<h4>Mira Murati</h4> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
margin: 0; | ||
background-color: #f1f1f1; | ||
} | ||
|
||
.card { | ||
width: 300px; | ||
height: 150px; | ||
perspective: 1000px; | ||
display: inline-block; | ||
margin: 10px; | ||
} | ||
|
||
.face { | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
transition: transform 0.5s; | ||
backface-visibility: hidden; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.face1 { | ||
background: #d2d7e7; | ||
} | ||
|
||
.face2 { | ||
background: #d1dfde; | ||
transform: rotateY(180deg); | ||
} | ||
|
||
.card:hover .face1 { | ||
transform: rotateY(-180deg); | ||
} | ||
|
||
.card:hover .face2 { | ||
transform: rotateY(0); | ||
} | ||
|
||
.content { | ||
text-align: center; | ||
color: #fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters