Skip to content

Commit e3f7361

Browse files
committed
home: add project list
1 parent 47172b9 commit e3f7361

File tree

9 files changed

+79
-5
lines changed

9 files changed

+79
-5
lines changed
862 Bytes
Loading
712 Bytes
Loading
508 Bytes
Loading
19.1 KB
Loading
56.8 KB
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$text-color: #111;
2+
$link-color: #38F;
3+
$light-color: #aaa;

_v2/moduleart-website/src/components/App/App.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ body {
99
-webkit-font-smoothing: antialiased;
1010
-moz-osx-font-smoothing: grayscale;
1111
-webkit-text-size-adjust: none;
12-
text-align: center;
1312
color: #111;
1413
margin: 0;
1514
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@import "../../assets/styles/variables.scss";
2+
3+
.project-list {
4+
padding: 0;
5+
margin: 0;
6+
}
7+
8+
.project {
9+
list-style-type: none;
10+
margin-bottom: 64px;
11+
12+
&:last-child {
13+
margin-bottom: 0;
14+
}
15+
16+
h2 {
17+
font-size: 22px;
18+
margin: 0 0 16px;
19+
20+
a, span, img {
21+
vertical-align: middle;
22+
}
23+
24+
.light {
25+
color: $light-color;
26+
}
27+
28+
img {
29+
margin-right: 4px;
30+
}
31+
}
32+
}

_v2/moduleart-website/src/components/ProjectList/ProjectList.vue

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
<template>
2-
<div class="project-list">
3-
4-
</div>
2+
<ul class="project-list">
3+
<li v-for="(project, projectIndex) in projects" :key="projectIndex" class="project">
4+
<h2>
5+
<a :href="project.url">
6+
<span>{{ project.title }}</span>
7+
<span class="light"> for </span>
8+
<img
9+
v-for="(platform, platformIndex) in project.platforms"
10+
:key="platformIndex"
11+
:src="getPlatformImage(platform)"
12+
:alt="platform"
13+
/></a>
14+
</h2>
15+
<div class="image">
16+
<img :src="getProjectImage(project.image)" :alt="project.title" />
17+
</div>
18+
</li>
19+
</ul>
520
</template>
621

722
<script>
@@ -10,10 +25,35 @@ export default {
1025
data() {
1126
return {
1227
projects: [
13-
28+
{
29+
title: "Quick Picture Viewer",
30+
url: "https://moduleart.github.io/quick-picture-viewer",
31+
image: "quick-picture-viewer.png",
32+
platforms: [
33+
"windows",
34+
],
35+
},
36+
{
37+
title: "Qsnip",
38+
url: "https://moduleart.github.io/qsnip",
39+
image: "qsnip.png",
40+
platforms: [
41+
"windows",
42+
"macos",
43+
"linux",
44+
],
45+
},
1446
],
1547
}
1648
},
49+
methods: {
50+
getProjectImage(imageName) {
51+
return require("../../assets/images/projects/" + imageName);
52+
},
53+
getPlatformImage(platformName) {
54+
return require("../../assets/images/platforms/" + platformName + ".png");
55+
},
56+
},
1757
};
1858
</script>
1959

0 commit comments

Comments
 (0)