File tree Expand file tree Collapse file tree 9 files changed +79
-5
lines changed
_v2/moduleart-website/src Expand file tree Collapse file tree 9 files changed +79
-5
lines changed Original file line number Diff line number Diff line change 1+ $text-color : #111 ;
2+ $link-color : #38F ;
3+ $light-color : #aaa ;
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments