-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfad024
commit 70fb9bf
Showing
64 changed files
with
137 additions
and
61 deletions.
There are no files selected for viewing
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,85 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Goita: all the memes</title> | ||
<link href="../fonts/fonts.css" rel="stylesheet" /> | ||
<link href="../src/style.css" rel="stylesheet" /> | ||
<style> | ||
#meme-container { | ||
top: 1rem; | ||
display: grid; | ||
width: calc(100% - 2rem); | ||
margin-left: 1rem; | ||
position: absolute; | ||
z-index: 1000; | ||
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); | ||
gap: 0em; | ||
padding: 0; | ||
background-color: white; | ||
border-radius: 5px; | ||
border: none; | ||
backdrop-filter: blur(5px); | ||
} | ||
|
||
.blur { | ||
filter: blur(1em); | ||
} | ||
|
||
.meme-img { | ||
margin-bottom: 0.8rem; | ||
padding: 0em; | ||
width: 16rem; | ||
height: 16rem; | ||
border: none; | ||
border-radius: 0.3rem; | ||
border: 1px solid black; | ||
} | ||
|
||
.meme-img > img { | ||
border: none; | ||
} | ||
|
||
#enlarged { | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
z-index: 1000; | ||
opacity: 1; | ||
transition: opacity 0.5s ease-in-out; | ||
padding: 0.5rem; | ||
background: white; | ||
border: 2px solid black; | ||
border-radius: 0.5rem; | ||
} | ||
|
||
#enlarged > img { | ||
max-height: 50vh; | ||
border-radius: 0.3rem 0.3rem 0 0; | ||
} | ||
|
||
#enlarged.hidden { | ||
opacity: 0; | ||
} | ||
|
||
.meme-title { | ||
border-top: 2px solid #630; | ||
font-size: 190%; | ||
} | ||
|
||
.close { | ||
position: absolute; | ||
right: 1.5em; | ||
top: 1.5em; | ||
cursor: pointer; | ||
transition: transform 0.1s ease-in-out; | ||
transform: translateX(0em); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="filtered-memes"></div> | ||
<div id="enlarged" class="hidden"></div> | ||
<script type="module" src="show.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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,34 @@ | ||
import { memes, displayMemes } from "./memes.js"; | ||
|
||
const cb = (a) => () => {}; | ||
|
||
displayMemes(memes, { basepath: "../", callback: cb }); | ||
|
||
const enlarged = document.getElementById("enlarged"); | ||
const container = document.getElementById("meme-container"); | ||
|
||
document.addEventListener("click", (ev) => { | ||
if ( | ||
ev.target.nodeName === "IMG" && | ||
ev.target.closest(".meme-img") && | ||
enlarged.classList.contains("hidden") | ||
) { | ||
enlarged.innerHTML = ""; | ||
const img = document.createElement("IMG"); | ||
const closer = document.createElement("DIV"); | ||
closer.classList.add("close"); | ||
closer.innerHTML = "❌"; | ||
const title = document.createElement("DIV"); | ||
title.classList.add("meme-title"); | ||
title.innerHTML = ev.target.closest(".meme-img").dataset["title"]; | ||
img.src = ev.target.src; | ||
enlarged.appendChild(img); | ||
enlarged.appendChild(closer); | ||
enlarged.appendChild(title); | ||
enlarged.classList.remove("hidden"); | ||
container.classList.add("blur"); | ||
} else { | ||
enlarged.classList.add("hidden"); | ||
container.classList.remove("blur"); | ||
} | ||
}); |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
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
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