Skip to content

Commit 9e47b5c

Browse files
authored
feat: [#30] all existing project content import
* feat: new thumbnails * feat: added voxco identity project for testing * feat: gbjam-12 content * feat: credit section * feat: space program project content * feat: kiriko and interval content * feat: tank project content * feat: you are two project content * feat: typograzoo project content * feat: literal project content * feat: swan lake, the fall and switcher project contents * feat: specter project content
1 parent 0775c5f commit 9e47b5c

File tree

126 files changed

+946
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+946
-153
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import './styles.css';
2+
import {EVENT_BUS} from "../../core";
3+
4+
5+
export type thumbnailContent = {
6+
readonly thumbnail: string;
7+
readonly title: string;
8+
readonly summary: string;
9+
readonly tag: string;
10+
readonly thumbnailColor: string;
11+
readonly path: string;
12+
}
13+
14+
//-----------------------------------------------------------------------
15+
16+
export function projectThumbnail(content: thumbnailContent, showcase: boolean) {
17+
const itemBox = document.createElement('li');
18+
const itemThumbnail = document.createElement('img');
19+
const itemTitle = document.createElement('h5');
20+
const itemTag = document.createElement('p');
21+
const hoverBox = document.createElement('div');
22+
const projectLink = document.createElement('a');
23+
const itemSummary = document.createElement('p');
24+
const clearFix = document.createElement('div');
25+
26+
itemBox.id = 'item-box';
27+
itemBox.style.backgroundColor = content.thumbnailColor;
28+
itemTag.className = 'tag';
29+
hoverBox.className = 'hover-box';
30+
clearFix.className = 'clearfix';
31+
32+
if (showcase) {
33+
itemBox.className += 'showcase';
34+
}
35+
36+
itemThumbnail.src = content.thumbnail;
37+
itemTitle.textContent = content.title;
38+
itemTag.textContent = content.tag;
39+
itemSummary.textContent = content.summary;
40+
projectLink.textContent = "View Project";
41+
42+
itemBox.appendChild(itemTitle);
43+
itemBox.appendChild(itemTag);
44+
hoverBox.appendChild(itemSummary);
45+
hoverBox.appendChild(projectLink);
46+
itemBox.appendChild(hoverBox);
47+
itemBox.appendChild(itemThumbnail);
48+
itemBox.appendChild(clearFix);
49+
50+
itemBox.addEventListener('click', () => {
51+
EVENT_BUS.dispatch('page_navigation', { pageReference: 'interactive/' + content.path });
52+
});
53+
54+
return itemBox;
55+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
ul {
2+
width: 100%;
3+
list-style-type: none;
4+
margin: 0;
5+
padding: 0;
6+
}
7+
8+
#item-box {
9+
width: 31%;
10+
margin-right: 1%;
11+
height: 265px;
12+
color: white;
13+
float: left;
14+
overflow: hidden;
15+
position: relative;
16+
box-sizing: border-box;
17+
padding: 30px 25px;
18+
border-radius: 10px;
19+
}
20+
21+
#item-box img {
22+
position: absolute;
23+
bottom: -10%;
24+
right: 0;
25+
width: 100%;
26+
height: auto;
27+
z-index: 1;
28+
transition: filter 0.3s;
29+
}
30+
31+
#item-box h5, #item-box p, #item-box a {
32+
position: relative;
33+
z-index: 2;
34+
}
35+
36+
#item-box h5 {
37+
font-family: Cabin, sans-serif;
38+
color: white;
39+
text-transform: lowercase;
40+
font-size: 2.25em;
41+
line-height: 75%;
42+
font-weight: bold;
43+
margin: 0;
44+
}
45+
46+
#item-box .tag {
47+
font-family: "Handjet", serif;
48+
text-transform: lowercase;
49+
font-size: 1em;
50+
font-weight: bold;
51+
color: #505050;
52+
margin-top: 10px;
53+
}
54+
55+
#item-box p {
56+
color: white;
57+
font-size: 1em;
58+
}
59+
60+
#item-box a {
61+
display: block;
62+
width: 100%;
63+
font-family: "Handjet", serif;
64+
font-size: 1.2em;
65+
padding: 20px 0;
66+
border-radius: 0 0 5px 5px;
67+
border: none;
68+
color: white;
69+
text-decoration: none;
70+
font-weight: bold;
71+
text-transform: uppercase;
72+
text-align: center;
73+
background-color: #FF523B;
74+
}
75+
76+
#item-box .hover-box {
77+
position: absolute;
78+
bottom: 0;
79+
left: 0;
80+
width: 100%;
81+
transform: translateY(100%);
82+
transition: transform 0.3s;
83+
z-index: 20;
84+
}
85+
86+
#item-box .hover-box p {
87+
padding: 10px 25px;
88+
}
89+
90+
.clearfix {
91+
clear: both;
92+
}
93+
94+
#item-box:hover {
95+
cursor: pointer;
96+
}
97+
98+
#item-box:hover img {
99+
filter: blur(25px);
100+
}
101+
102+
#item-box:hover .hover-box {
103+
transform: translateY(0);
104+
}

src/components/thumbnail/index.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/components/thumbnail/styles.css

Lines changed: 0 additions & 43 deletions
This file was deleted.
9.25 KB
Loading
6.14 KB
Loading
11.6 KB
Loading
10.9 KB
Loading
16.5 MB
Binary file not shown.
1.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)