-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.vue
146 lines (142 loc) · 5 KB
/
app.vue
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<template>
<NuxtLayout>
<Html
lang="en"
:data-route-path="$route?.path"
:data-theme="usePersonalization.theme"
:data-app-version="nuxtApp?.$app_version || '0.0.0'"
:data-app-current-version="nuxtApp?.$app_current_version || '0.0.0'"
>
<Head>
<Title>Windows 11 ❤️ | by Nemanja Dragun</Title>
<Meta name="url" :content="`${nuxtApp?.$app_origin}${$route?.path}`" />
<Meta
name="og:url"
:content="`${nuxtApp?.$app_origin}${$route?.path}`"
/>
</Head>
</Html>
<client-only>
<NuxtPage />
</client-only>
</NuxtLayout>
<transition-expand appear>
<div
v-if="$route.name === 'index' && showAboutModal"
data-test="about-modal"
class="fixed top-0 right-0 bottom-0 left-0 p-20 bg-black bg-opacity-50 backdrop-blur-[5px] z-[9999999] flex justify-center items-center"
>
<div
class="bg-black bg-opacity-70 w-full max-w-[642px] border border-white border-opacity-5 rounded-lg overflow-hidden shadow-lg flex flex-col"
>
<div class="flex-1 h-full flex flex-col gap-3 p-8 pb-4">
<h1 class="text-3xl font-bold">About project</h1>
<p class="mt-4">
<strong>os-windows11</strong> is an open source project made in the
hope to replicate the Windows 11 desktop experience on webm using
standard web technologies like Nuxt.js, SCSS, Tailwind CSS.
</p>
<p>
This project is licensed under
<a
class="text-blue-400 hover:underline"
href="https://github.com/ndragun92/os-windows11/blob/main/LICENSE"
target="_blank"
>Creative Commons Zero v1.0 Universal</a
>.
</p>
<p>
This project is not in any way affiliated with Microsoft and should
not be confused with Microsoft's Operating System or Products.
</p>
<p>
This is also not
<a
class="text-blue-400 hover:underline"
target="_blank"
href="https://www.microsoft.com/en-in/windows-365"
rel="noreferrer"
>Windows 365 cloud PC</a
>.
</p>
<p>
Microsoft, Windows and Other demonstrated Products in this project
are trademarks of the Microsoft group of companies
</p>
<hr class="opacity-10" />
<div class="flex items-center flex-wrap gap-4 justify-between">
<a
class="flex items-center gap-2 hover:underline"
href="https://github.com/ndragun92/os-windows11"
target="_blank"
>
<Icon size="32" name="mdi:github" /><span
>GitHub Repository</span
></a
>
<a
class="flex items-center gap-2 hover:underline"
href="https://github.com/ndragun92/os-windows11/blob/main/CONTRIBUTING.md"
target="_blank"
>
<Icon size="32" name="icon-park:love-and-help" /><span
>Contribute</span
></a
>
</div>
</div>
<div
class="h-[65px] bg-black bg-opacity-90 border-t border-white border-opacity-5 flex items-center justify-between px-8"
>
<a
class="py-2 px-4 rounded-md font-medium hover:underline flex items-center gap-2"
href="mailto:[email protected]?subject=os-windows11"
><Icon size="24" name="material-symbols:mail" />Contact me</a
>
<button
data-test="about-modal-understand"
class="bg-blue-400 hover:bg-blue-500 py-2 px-4 rounded-md text-black font-medium"
type="button"
@click="showAboutModal = false"
>
Ok, I understand
</button>
</div>
</div>
</div>
</transition-expand>
</template>
<script lang="ts" setup>
import { usePersonalizationStore } from "~/store/personalizationStore";
const usePersonalization = usePersonalizationStore();
const nuxtApp = useNuxtApp();
const showAboutModal = useCookie("showAboutModal", {
default: () => true,
watch: "shallow",
maxAge: 259200, // Show about modal every 3 days
});
</script>
<style lang="scss">
@media only screen and (max-width: 799px) {
body {
@apply hidden;
}
html {
&:after {
content: "Minimum required resolution/size has to be 800x600. Mobile devices are not supported.";
@apply fixed top-0 right-0 bottom-0 left-0 bg-white text-black flex items-center justify-center text-center p-4 font-medium text-lg;
}
}
}
@media only screen and (max-height: 599px) {
body {
@apply hidden;
}
html {
&:after {
content: "Minimum required resolution/size has to be 800x600. Mobile devices are not supported.";
@apply fixed top-0 right-0 bottom-0 left-0 bg-white text-black flex items-center justify-center text-center p-4 font-medium text-lg;
}
}
}
</style>