Skip to content

Commit 9fd732d

Browse files
committed
added styling and event listeners
1 parent e98cb85 commit 9fd732d

File tree

3 files changed

+82
-25
lines changed

3 files changed

+82
-25
lines changed

css/styles.css

Lines changed: 49 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
@import url("//hello.myfonts.net/count/34c3a6");
22
@font-face {
33
font-family: Calluna-Regular;
4-
src: url(assets/fonts/34C3A6_0_0.eot);
5-
src: url(assets/fonts/34C3A6_0_0.eot?#iefix) format("embedded-opentype");
6-
src: url(assets/fonts/34C3A6_0_0.woff2) format("woff2");
7-
src: url(assets/fonts/34C3A6_0_0.woff) format("woff");
8-
src: url(assets/fonts/34C3A6_0_0.ttf) format("truetype");
4+
src: url(./assets/fonts/34C3A6_0_0.eot);
5+
src: url(./assets/fonts/34C3A6_0_0.eot?#iefix) format("embedded-opentype");
6+
src: url(./assets/fonts/34C3A6_0_0.woff2) format("woff2");
7+
src: url(./assets/fonts/34C3A6_0_0.woff) format("woff");
8+
src: url(./assets/fonts/34C3A6_0_0.ttf) format("truetype");
99
font-weight: 400;
1010
font-style: normal
1111
}
1212
@font-face {
1313
font-family: Oakes-Semi-Bold;
14-
src: url(assets/fonts/oakes-semi-bold.eot);
15-
src: url(assets/fonts/oakes-semi-bold.eot?#iefix) format("embedded-opentype");
16-
src: url(assets/fonts/oakes-semi-bold.woff2) format("woff2");
17-
src: url(assets/fonts/oakes-semi-bold.woff) format("woff");
18-
src: url(assets/fonts/oakes-semi-bold.ttf) format("truetype");
19-
src: url(assets/fonts/oakes-semi-bold.svg#youworkforthem) format("svg");
14+
src: url(./assets/fonts/oakes-semi-bold.eot);
15+
src: url(./assets/fonts/oakes-semi-bold.eot?#iefix) format("embedded-opentype");
16+
src: url(./assets/fonts/oakes-semi-bold.woff2) format("woff2");
17+
src: url(./assets/fonts/oakes-semi-bold.woff) format("woff");
18+
src: url(./assets/fonts/oakes-semi-bold.ttf) format("truetype");
19+
src: url(./assets//oakes-semi-bold.svg#youworkforthem) format("svg");
2020
font-weight: 700;
2121
font-style: bold
2222
}
@@ -326,12 +326,29 @@
326326
80% {
327327
-webkit-clip-path: polygon(39% 42%, 50% 50%, 62% 50%, 68% 70%, 45% 56%, 31% 50%);
328328
clip-path: polygon(39% 42%, 50% 50%, 62% 50%, 68% 70%, 45% 56%, 31% 50%)
329+
329330
}
330331
to {
331332
-webkit-clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
332-
clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%)
333+
clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
334+
background-position:0% 50%;
333335
}
334336
}
337+
@-webkit-keyframes gradient {
338+
0% { background-position: 0% 50% }
339+
50% { background-position: 100% 50% }
340+
to { background-position: 0% 50% }
341+
}
342+
@-moz-keyframes gradient {
343+
0%{background-position:0% 50%}
344+
50%{background-position:100% 50%}
345+
to {background-position:0% 50%}
346+
}
347+
@keyframes gradient {
348+
0%{background-position:0% 50%}
349+
50%{background-position:100% 50%}
350+
to {background-position:0% 50%}
351+
}
335352
html {
336353
-ms-text-size-adjust: 100%;
337354
-webkit-text-size-adjust: 100%
@@ -340,7 +357,7 @@ body {
340357
margin: 0;
341358
font: 17px/1.5 Calluna-Regular, serif;
342359
color: #f8f8f6;
343-
background-color: #0c0c0c;
360+
background-color: #222;
344361
-webkit-font-smoothing: antialiased;
345362
-moz-osx-font-smoothing: grayscale
346363
}
@@ -372,12 +389,12 @@ a:focus, a:hover {
372389
outline: 0
373390
}
374391
::selection {
375-
color: #0c0c0c;
392+
color: #222;
376393
text-shadow: none;
377394
background: #3d6eff
378395
}
379396
::-moz-selection {
380-
color: #0c0c0c;
397+
color: #222;
381398
text-shadow: none;
382399
background: #3d6eff
383400
}
@@ -463,6 +480,10 @@ a:focus, a:hover {
463480
.list__item:last-child {
464481
margin-bottom: -.4em
465482
}
483+
.poem_block {
484+
display: none;
485+
}
486+
466487
.crumple {
467488
z-index: -1;
468489
position: fixed;
@@ -480,7 +501,7 @@ a:focus, a:hover {
480501
display: block;
481502
width: 100%;
482503
height: 100%;
483-
background-color: #0c0c0c
504+
background-color: #222;
484505
}
485506
.footer {
486507
position: fixed;
@@ -519,16 +540,23 @@ a:focus, a:hover {
519540
display: inline
520541
}
521542
}
522-
@media (hover:hover) {
543+
@media (hover: hover) {
523544
.footer__link:nth-child(odd):hover~.crumple {
524-
background-color: #3d6eff
545+
background: linear-gradient(45deg, #69b7eb, #b3dbd3, #f4d6db);
546+
background-size: 400% 400%;
525547
}
526548
.footer__link:nth-child(2n):hover~.crumple {
527-
background-color: #ce0028
549+
background: linear-gradient(90deg, #ee5c87, #f1a4b5, #d587b3);
550+
background-size: 400% 400%;
551+
}
552+
.footer__link:hover~.crumple {
553+
-webkit-animation: gradient 30s ease infinite;
554+
animation: gradient 30s ease infinite;
528555
}
556+
529557
.footer__link--email:hover~.crumple:after {
530-
-webkit-animation: a 1s .25s linear forwards;
531-
animation: a 1s .25s linear forwards
558+
-webkit-animation: a 1s .25s linear forwards;
559+
animation: a 1s .25s linear forwards
532560
}
533561
.footer__link--github:hover~.crumple:after {
534562
-webkit-animation: b 1s .25s linear forwards;

index.html

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@
5252
-->
5353
<link href="./css/styles.css" rel="stylesheet">
5454
<link rel="shortcut icon" href="./assets/images/icon.png" type="image/png">
55-
55+
<!-- Jquery Min Library -->
56+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"/>
57+
<script src="./js/main.js"/>
5658
<!-- Global site tag (gtag.js) - Google Analytics -->
57-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-72323910-2"></script>
59+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-72323910-2"/>
5860
<script>
5961
window.dataLayer = window.dataLayer || [];
6062
function gtag(){dataLayer.push(arguments);}
@@ -80,8 +82,29 @@ <h1 class="u-sans">Meredith Hoo</h1>
8082
<h2 class="u-sans">Essays and writing</h2>
8183
<dl class="list">
8284
<dt class="u-sans u-sans--small">Untitled Poem #4</dt>
83-
<dd class="list__item">
84-
<a class="list__link" href="." target="_blank" rel="noopener noreferrer">nextvisionaries.com</a>
85+
<dd class="list__item poem">
86+
<div class="poem_block">
87+
<p>
88+
There is a glass that separates me from you. <br>
89+
I can't tell if its visable, if its clear or opaque
90+
</p>
91+
<p>
92+
There is a glass that separates me from you. <br>
93+
I think you can see it. I think you know its there. <br>
94+
Stares. staring at me. <br>
95+
Or are they staring at the glass.
96+
</p>
97+
<p>
98+
If they looked away, did they look away from the transparent barrier. <br>
99+
Did they look away from me.
100+
</p>
101+
<p>
102+
There's a glass that separates me from you. <br>
103+
Its stiff. Its thick. Its cold. Like classroom lighting. <br>
104+
Its enclosing. Its plastic wrap. And I <br>
105+
don't have enough air to breathe.
106+
</p>
107+
</div>
85108
</dd>
86109
</dl>
87110
</div>

js/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
function togglePoemText() {
3+
$("#poem").click(function() {
4+
$("#poem_block").slideDown();
5+
})
6+
}

0 commit comments

Comments
 (0)