Skip to content

Commit 0432848

Browse files
committed
Create coffee-wine.html
1 parent 2163c12 commit 0432848

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

coffee-wine.html

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<!doctype html>
2+
<html lang="">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Coffee & Wine</title>
7+
<style>
8+
:root {
9+
--glyph-size: clamp(48px, 10vw, 96px);
10+
}
11+
12+
body {
13+
margin: 0;
14+
display: flex;
15+
min-height: 100dvh;
16+
}
17+
18+
#coffee,
19+
#wine {
20+
flex: 1 0 0;
21+
display: grid;
22+
place-items: center;
23+
transition: flex-grow 320ms ease;
24+
}
25+
26+
#coffee { background: #f5e6d3; }
27+
#wine { background: #2b0f2a; }
28+
29+
#coffee:hover,
30+
#wine:hover {
31+
flex-grow: 1.12;
32+
}
33+
34+
h1 {
35+
margin: 0;
36+
font-size: var(--glyph-size);
37+
line-height: 1;
38+
}
39+
40+
#amp {
41+
position: fixed;
42+
left: 50%;
43+
top: 50%;
44+
transform: translate(-50%, -50%);
45+
font-family: Baskerville, 'Goudy Old Style', Palatino, 'Book Antiqua', serif;
46+
font-style: italic;
47+
font-weight: normal;
48+
font-size: var(--glyph-size);
49+
line-height: 1;
50+
color: #fff;
51+
mix-blend-mode: difference;
52+
text-shadow: none;
53+
pointer-events: none;
54+
user-select: none;
55+
}
56+
57+
@media (max-width: 600px) {
58+
body {
59+
flex-direction: column;
60+
}
61+
}
62+
</style>
63+
</head>
64+
65+
<body>
66+
<div id="coffee"><h1>☕️</h1></div>
67+
<div id="amp">&amp;</div>
68+
<div id="wine"><h1>🍷</h1></div>
69+
</body>
70+
</html>

0 commit comments

Comments
 (0)