-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
51 lines (48 loc) · 1.5 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const URL = `https://api.github.com/users/tobiasbriones/repos?per_page=100`;
export default {
data() {
return { projects: [] };
},
async mounted() {
const res = await fetch(URL);
const data = await res.json();
const filterObj = obj => !obj.fork;
this.projects = data.filter(filterObj);
},
methods: {
home(project) {
return `https://dev.mathsoftware.engineer/${ project.name }`;
}
},
template: `
<div class="m-5">
<h1 class="mx-4 my-4">
Projects ({{ projects.length }}) | DEV | Math Software Engineer
</h1>
<div class="profile mx-4">
<img src="https://github.com/tobiasbriones.png" alt="Tobias Briones">
<div class="my-2"><strong>Tobias Briones</strong></div>
<a href="https://github.com/tobiasbriones">GitHub</a>
-
<a href="https://twitter.com/tobiasbriones_">Twitter</a>
-
<a href="https://linkedin.com/in/tobiasbriones">LinkedIn</a>
</div>
<div>
Notice: This is a temporal page design while I'm working on other stuff...
</div>
<div class="grid grid-cols-2 gap-4 mx-5 my-4 content-center cursor-pointer project">
{{ project }}
<a :href="home(project)"
v-for="project in projects">
<div class="px-4 py-4 name">
{{ project.name }}
</div>
<div class="px-4 align-middle description">
{{ project.description }}
</div>
</a>
</div>
</div>
`
};