Skip to content

Commit 4ed8b86

Browse files
feat: レスポンシブ対応
1 parent 8491c6e commit 4ed8b86

File tree

4 files changed

+64
-17
lines changed

4 files changed

+64
-17
lines changed

src/App.vue

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,50 +46,90 @@ onBeforeUnmount(() => {
4646

4747
<template>
4848
<main un-grid un-place-items="center">
49-
<div un-flex un-size="max" un-flex-col un-items="center" un-gap="6">
50-
<h1 un-text="4xl">AviUtl2 User Portal</h1>
51-
<nav id="nav" un-flex un-gap="3" un-justify="center">
49+
<div
50+
un-flex
51+
un-size="max"
52+
un-flex-col
53+
un-items="center"
54+
un-gap="6"
55+
un-px="4"
56+
md:un-px="0"
57+
un-w="full"
58+
md:un-w="auto"
59+
>
60+
<h1 un-text="3xl md:4xl">AviUtl2 User Portal</h1>
61+
<nav
62+
id="nav"
63+
aria-label="主要リンク"
64+
un-flex="~ col md:row"
65+
un-items="center"
66+
un-justify="center"
67+
un-gap="2"
68+
un-w="full"
69+
>
5270
<template v-for="(item, index) in data" :key="index">
5371
<a
5472
v-if="item.type === 'link'"
5573
:href="item.url"
5674
target="_blank"
57-
un-text="hover:underline"
58-
>{{ item.title }}</a
75+
rel="noreferrer"
76+
:un-font="item.official ? 'bold' : 'normal'"
77+
>
78+
{{ item.title }}
79+
</a>
80+
<a
81+
v-else-if="item.type === 'section'"
82+
role="button"
83+
un-cursor="pointer"
84+
@click="openSection(item)"
5985
>
60-
<a v-else-if="item.type === 'section'" @click="openSection(item)">
6186
{{ item.title }}
6287
</a>
63-
<span v-if="index < data.length - 1">|</span>
88+
<span
89+
v-if="index < data.length - 1"
90+
un-hidden="~"
91+
un-inline-block="md:~"
92+
>
93+
|
94+
</span>
6495
</template>
6596
</nav>
6697
</div>
6798
</main>
6899
<SectionInfo :section="section" @close="closeSection" />
69100
<AboutDialog :open="showAbout" @close="closeAbout" />
70101
<footer
71-
un-text="sm slate-500"
102+
un-text="sm slate-500 center"
72103
un-py="6"
73104
un-bg="white/50"
74105
un-backdrop-blur="md"
75-
un-gap="4"
76-
un-flex
106+
un-gap="3"
107+
md:un-gap="4"
108+
un-flex="~ col md:row"
109+
un-items="center"
77110
un-justify="center"
78111
>
79112
<span
80113
>Created by
81-
<a href="https://sevenc7c.com" target="_blank" un-text="[#48b0d5]"
114+
<a
115+
href="https://sevenc7c.com"
116+
target="_blank"
117+
rel="noreferrer"
118+
un-text="[#48b0d5]"
82119
>Nanashi.</a
83120
></span
84121
>
85-
|
122+
<span aria-hidden="true" un-hidden un-inline-block="md:~"> | </span>
86123
<span
87124
>Source Available on
88-
<a href="https://github.com/aviutl2/aviutl2-jp" target="_blank"
125+
<a
126+
href="https://github.com/aviutl2/aviutl2-jp"
127+
target="_blank"
128+
rel="noreferrer"
89129
>GitHub</a
90130
></span
91131
>
92-
|
132+
<span aria-hidden="true" un-hidden un-inline-block="md:~"> | </span>
93133
<a
94134
type="button"
95135
un-cursor="pointer"

src/components/BaseDialog.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const isOpen = computed(() => props.open);
3131
un-items="center"
3232
un-justify="center"
3333
un-z="50"
34+
un-p="4 md:8"
3435
@click.self="emit('close')"
3536
>
3637
<div
@@ -39,7 +40,9 @@ const isOpen = computed(() => props.open);
3940
un-shadow="xl"
4041
un-max-w="xl"
4142
un-w="full"
42-
un-p="6"
43+
un-p="4 md:6"
44+
un-max-h="full"
45+
un-overflow="y-auto"
4346
>
4447
<slot />
4548
</div>

src/data.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export type Link = {
22
type: "link";
33
title: string;
44
url: string;
5+
official?: boolean;
56
};
67
export type Section = {
78
type: "section";
@@ -23,10 +24,11 @@ export const data: Array<Section | Link> = [
2324
type: "link",
2425
title: "公式サイト",
2526
url: "https://spring-fragrance.mints.ne.jp/aviutl/",
27+
official: true,
2628
},
2729
{
2830
type: "link",
29-
title: "Web版ドキュメント",
31+
title: "非公式Web版ドキュメント",
3032
url: "https://docs.aviutl2.jp",
3133
},
3234
{
@@ -92,7 +94,8 @@ export const data: Array<Section | Link> = [
9294
{
9395
type: "link",
9496
title: "AviUtl2のWiki",
95-
description: "AviUtl ExEdit2(通称:AviUtl2)についての情報をまとめるための非公式@Wiki。 ",
97+
description:
98+
"AviUtl ExEdit2(通称:AviUtl2)についての情報をまとめるための非公式@Wiki。 ",
9699
maintainer: {
97100
name: "廣田 ひろあき(仮)",
98101
url: "https://x.com/hirota_hiroaki",

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createApp } from "vue";
22
import "@fontsource/noto-sans-jp/400.css";
3+
import "@fontsource/noto-sans-jp/700.css";
34
import "./styles/reset.css";
45
import "./styles/style.scss";
56
import "virtual:uno.css";

0 commit comments

Comments
 (0)