-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDistributionsComponent.vue
More file actions
90 lines (87 loc) · 2.38 KB
/
Copy pathDistributionsComponent.vue
File metadata and controls
90 lines (87 loc) · 2.38 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<div class="max-w-full mx-auto flex justify-center">
<div class="py-14 md:py-40 px-5">
<span class="TitleText">Distributions with first class Support</span>
<div class="flex flex-col md:flex-row justify-center">
<span class="BodyText px-0 md:px-12">
Linux distributions documented in the t2linux wiki
</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-3 md:gap-6 mt-5 md:mt-14">
<a
v-for="item in distributions"
:key="item.index"
:href="item.href"
>
<div class="DistroCard">
<div class="flex items-center py-2">
<img
:src="require(`../assets/icons/distributions/` + item.src)"
class="w-8 h-8 md:w-auto md:h-auto"
alt=""
>
<span class="DistroName">{{ item.name }}</span>
</div>
<div>
<img
src="../assets/icons/redirect.svg"
class="hover:opacity-70 transition-all duration-200 ease-in-out"
:alt="'Icon for ' + item.name"
>
</div>
</div>
</a>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
distributions: [
{
src: "ubuntu.svg",
name: "Ubuntu",
href: "https://wiki.t2linux.org/distributions/ubuntu/home/",
},
{
src: "fedora.svg",
name: "Fedora",
href: "https://wiki.t2linux.org/distributions/fedora/home/",
},
{
src: "arch.svg",
name: "Arch Linux",
href: "https://wiki.t2linux.org/distributions/arch/installation/",
},
],
open(url) {
window.location.href = url;
},
};
},
};
</script>
<style>
@reference "../styles/index.scss";
.TitleText {
@apply text-center text-white font-bold block text-xl md:text-section md:leading-section;
}
.BodyText {
color: #c6c6c6;
@apply text-center mt-1 md:mt-5 text-sm md:text-base font-light;
}
.DistroCard {
background-color: #2e2e2e;
cursor: pointer;
@apply p-5 md:p-8 flex items-center justify-between rounded-lg transition-all ease-in-out duration-200;
}
.DistroCard:hover {
transform: scale(1.05);
@apply shadow-2xl;
}
.DistroName {
@apply text-base md:text-2xl text-white mx-3;
}
</style>