content, home, list template

master
km0 3 years ago
parent 9697c522e3
commit 25ad8954eb

@ -60,7 +60,7 @@
Nostrud occaecat nostrud laborum non magna ea do dolore aliqua cillum quis. Id velit
incididunt enim eu anim et nulla ullamco.
</p>
<img src="./static/img/img.png" class="s2" alt="lorem ipsum" />
<img src="./static/img/img.png" class="s2" alt="lorem ipsum" data-sticker="ramen" />
<p>
Ex enim in nulla consequat dolore dolor mollit velit nostrud anim nisi sunt. Irure
laborum aliquip reprehenderit reprehenderit reprehenderit nostrud mollit.
@ -73,7 +73,7 @@
velit aliquip id pariatur. Fugiat non anim eiusmod cupidatat ut mollit. Mollit
laborum dolore eu proident quis.
</p>
<p>
<p data-sticker="secret ahah found it">
Consectetur enim duis enim non ea sit reprehenderit aliquip sint eiusmod occaecat
nostrud occaecat aute. Adipisicing eiusmod ut ipsum ipsum officia eu. Ea officia et
eu consequat voluptate id voluptate. Id labore nisi mollit nisi anim eiusmod officia

@ -13,35 +13,45 @@
<!-- script -->
<script src="./static/js/lodash.js"></script>
<script src="./static/js/spawnSticker.js" defer></script>
<script src="./static/js/homeSticker.js" defer></script>
</head>
<body>
<section id="sticker-container"></section>
<div class="negative">
<h1>Learning how to walk while catwalking</h1>
<h2>Special Issue 16</h2>
<h2>Experimental Publishing</h2>
eheh
<h3>About & Manifesto</h3>
<p>About</p>
<p>Manifesto</p>
<main class="index">
<div class="sheet meta">
<h1 class="negative">Learning how to walk while catwalking</h1>
<h2 class="negative">Experimental Publishing</h2>
<h2 class="negative">Special Issue 16</h2>
</div>
<h3>Projects</h3>
<p>Etc</p>
<p>Map</p>
<p>Rep</p>
<div class="sheet">
<h3 class="section">Info</h3>
<a class="negative" href="/about.html">About</a>
<p class="negative">Manifesto</p>
</div>
<h3>Functions</h3>
<p>Lorem ipsum</p>
<p>Replace</p>
<p>Shout</p>
<p>Repeat</p>
<div class="sheet">
<h3 class="section">Projects</h3>
<p class="negative">Etc</p>
<p class="negative">Map</p>
<p class="negative">Rep</p>
</div>
<h3>Corpora</h3>
<p>Veniam id in aute</p>
<p>Officia esse venia</p>
<p>Velit laboris ipsu</p>
<p>Sint voluptate ali</p>
</div>
<div class="sheet">
<h3 class="section">Functions</h3>
<p class="negative">Lorem ipsum</p>
<p class="negative">Replace</p>
<p class="negative">Shout</p>
<p class="negative">Repeat</p>
</div>
<div class="sheet">
<h3 class="section">Corpora</h3>
<p class="negative">Veniam id in aute</p>
<p class="negative">Officia esse venia</p>
<p class="negative">Velit laboris ipsu</p>
<p class="negative">Sint voluptate ali</p>
</div>
</main>
</body>
</html>

@ -0,0 +1,69 @@
<!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>SI16 - Learning how to walk while catwalking</title>
<!-- style -->
<link rel="stylesheet" href="./static/css/variables.css" />
<link rel="stylesheet" href="./static/css/global.css" />
<link rel="stylesheet" href="./static/css/list.css" />
<!-- script -->
<script src="./static/js/lodash.js"></script>
<script src="./static/js/spawnSticker.js" defer></script>
</head>
<body>
<section id="sticker-container"></section>
<section class="page--header">
<header>
<h1 class="title">List</h1>
<!-- <h2 class="subtitle">Sub--title</h2> -->
</header>
<nav>
<a href=".." data-sticker="Back"></a>
<a href="/" data-sticker="Home"></a>
</nav>
</section>
<main class="page--content">
<p class="description">
Incididunt sint excepteur amet in officia laboris ex ex non ea. Pariatur consequat
culpa qui commodo ea. Consectetur pariatur esse non consequat laboris ea sit
pariatur fugiat mollit. Non pariatur consequat magna mollit amet sunt. Incididunt
aute eu aliqua exercitation velit. Sit ea commodo amet excepteur commodo aliquip
eiusmod esse do non sit ex fugiat quis. Pariatur cupidatat duis adipisicing enim
officia laborum do voluptate. Deserunt mollit amet minim dolore occaecat anim aute
sint sit. Exercitation sint mollit cillum eiusmod ad exercitation.
</p>
<table class="list">
<tr>
<td class="title">Annotation Compass</td>
<td class="description">Et ea tempor ex minim ad laboris id enim cupidatat.</td>
<td class="link">link</td>
</tr>
<tr>
<td class="title">"and i hope all your questions have been answered"</td>
<td class="description">
Eiusmod nostrud est sunt reprehenderit enim occaecat do enim dolore cillum
fugiat proident.
</td>
<td class="link">link</td>
</tr>
<tr>
<td class="title">Title</td>
<td class="description">
Veniam laboris commodo et incididunt aliqua sint aute ut magna qui nulla
occaecat.
</td>
<td class="link">link</td>
</tr>
</table>
</main>
<section class="page--footer">
<footer>Special Issue 16—Learning How to Walk while Catwalking</footer>
</section>
</body>
</html>

@ -10,7 +10,8 @@ body {
}
h1,
h2 {
h2,
h3 {
font-family: var(--font);
font-weight: bold;
font-style: italic;
@ -19,10 +20,19 @@ h2 {
h1 {
font-size: var(--title);
}
h2 {
h2,
h3 {
font-size: var(--text);
}
a {
color: currentColor;
}
.sticker {
text-decoration: none;
}
/* STICKER CONTAINER */
#sticker-container {
@ -57,6 +67,7 @@ h2 {
.page--header {
position: fixed;
z-index: 100;
top: 60px;
left: 50%;
@ -124,6 +135,7 @@ nav {
.page--footer {
position: relative;
bottom: var(--app-margin);
width: calc(100% - 2 * var(--app-margin));
max-width: var(--content-width);
@ -210,6 +222,10 @@ footer {
top: 30px;
}
header {
min-height: 42px;
}
.page--header .title {
font-size: 24px;
}

@ -1,4 +1,17 @@
.negative > * {
.sticker {
font-size: var(--text);
pointer-events: all;
}
.index {
margin: calc(var(--app-margin) * 2);
}
.sheet + .sheet {
margin-top: var(--app-margin);
}
.negative {
position: relative;
visibility: hidden;
@ -8,10 +21,10 @@
margin: 12px 0;
}
.negative > *:after {
.negative:after {
visibility: visible;
content: "";
background-color: rgba(0, 0, 0, 0.05);
background-color: rgba(0, 0, 0, 0.075);
position: absolute;
top: 0;
left: 0;
@ -20,13 +33,25 @@
border-radius: var(--radius);
}
.negative > p {
.sheet > p {
display: inline-block;
margin: 6px 0;
}
h1,
h2,
h3 {
visibility: visible;
h1.negative {
display: table;
}
.meta > h2 {
display: inline-block;
margin: 6px 0;
}
.sheet .section {
padding: 0;
margin: 0;
margin-bottom: 6px;
font-size: var(--title);
color: rgba(0, 0, 0, 0.1);
}

@ -0,0 +1,73 @@
.list {
grid-column: 1 / -1;
width: 100%;
margin-top: 60px;
}
table {
border-collapse: collapse;
}
tr {
position: relative;
border-top: 1px solid currentColor;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 30px;
}
tr:last-of-type {
padding-bottom: 24px;
border-bottom: 1px solid currentColor;
}
td {
padding: 24px 0;+++
}
td.title {
font-weight: bold;
font-style: italic;
}
td.description {
grid-column: 2 / span 2;
padding-right: 90px;
}
td.link {
position: absolute;
right: 0;
text-align: right;
}
@media (max-width: 767.98px) {
table,
tr,
td {
display: block;
}
tr + tr {
margin-top: 24px;
}
td {
padding: 0;
}
td.title {
padding-right: 30px;
margin-top: 18px;
margin-bottom: 6px;
}
td.description {
padding-right: 0;
}
td.link {
top: 18px;
right: 0;
}
}

@ -12,7 +12,7 @@
}
.chat > p + p {
margin-top: 60px;
margin-top: 45px;
}
.chat > p:nth-child(2n + 2) {

@ -0,0 +1,32 @@
const negativeStickers = document.querySelectorAll(".negative");
const container = document.getElementById("sticker-container");
var throttleSpawn = _.throttle(spawnSticker, 400);
Array.from(negativeStickers).forEach((spawner) => {
spawner.addEventListener("click", (e) => spawnSticker(e));
// spawner.addEventListener("mousemove", (e) => throttleSpawn(e));
});
function spawnSticker(e) {
e.preventDefault();
e.stopPropagation();
let position = { x: e.clientX, y: e.clientY };
getFromNegative(e.target, position);
}
function getFromNegative(target, position) {
sticker = target.cloneNode(true);
sticker.classList.add("sticker");
sticker.classList.remove("negative");
sticker.style.left = position.x + "px";
sticker.style.top = position.y + "px";
sticker.style.transform = `
rotate(${Math.random() * 20 - 10}deg)
translate(-50%, -100%)
`;
container.appendChild(sticker);
}

@ -4,13 +4,13 @@ const container = document.getElementById("sticker-container");
var throttleSpawn = _.throttle(spawnSticker, 400);
Array.from(stickerSpawners).forEach((spawner) => {
spawner.addEventListener("mousemove", (e) => throttleSpawn(spawner, e));
spawner.addEventListener("mousemove", (e) => throttleSpawn(e));
});
// spawnSticker(spawner, e);
function spawnSticker(spawner, e) {
function spawnSticker(e) {
let position = { x: e.clientX, y: e.clientY };
let content = spawner.dataset.sticker;
let content = e.target.dataset.sticker;
createSticker(content, position);
}

Loading…
Cancel
Save