From c09b1d38478a111f69470bf8d10c5c118e3b0f0e Mon Sep 17 00:00:00 2001 From: Freeplay Date: Thu, 15 Jun 2023 16:15:37 -0400 Subject: [PATCH] i18n, banner, apps button, i don't know how v-bind in css works --- locales/en-US.yml | 1 + .../client/src/pages/welcome.entrance.a.vue | 205 ++++++++++-------- packages/client/src/style.scss | 13 ++ packages/client/src/ui/visitor/kanban.vue | 78 ++++--- 4 files changed, 169 insertions(+), 128 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 94266a0056..6a1af99020 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -20,6 +20,7 @@ renotedBy: "Boosted by {user}" noNotes: "No posts" noNotifications: "No notifications" instance: "Server" +findAnotherInstance: "Find another server" settings: "Settings" basicSettings: "Basic Settings" otherSettings: "Other Settings" diff --git a/packages/client/src/pages/welcome.entrance.a.vue b/packages/client/src/pages/welcome.entrance.a.vue index a1d049166b..d11109c9fd 100644 --- a/packages/client/src/pages/welcome.entrance.a.vue +++ b/packages/client/src/pages/welcome.entrance.a.vue @@ -8,107 +8,106 @@ :noTabCollapse="true" :displayHomeButton="false" /> -
- - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + - +
+ +
-
-
- - - - - -
- -
-
-
- - - -
- -
-
-
-
-
- - - -
-
+ + + + +
+ +
+
+
+ + + + + + @@ -219,9 +218,11 @@ onMounted(() => { }); let meta = $ref(); +let wallpaper = $ref(String); os.api("meta", { detail: true }).then((res) => { meta = res; + wallpaper = `url("${res.backgroundImageUrl}")` }); @@ -261,3 +262,15 @@ const popularPostsPagination = { limit: 5, }; + diff --git a/packages/client/src/style.scss b/packages/client/src/style.scss index dfc18ed24f..e79c03cd63 100644 --- a/packages/client/src/style.scss +++ b/packages/client/src/style.scss @@ -477,6 +477,19 @@ hr { } } +._formLinksGridFlex { // "grid", anyways display flex my beloved + display: flex; + flex-wrap: wrap; + gap: 12px; + > ._button { + flex-basis: 34%; + flex-grow: 1; + min-width: max-content !important; + max-width: 100% !important; + margin: 0 !important; + } +} + ._flexList { display: flex; flex-wrap: wrap; diff --git a/packages/client/src/ui/visitor/kanban.vue b/packages/client/src/ui/visitor/kanban.vue index 6cc3724b83..fcfa02e885 100644 --- a/packages/client/src/ui/visitor/kanban.vue +++ b/packages/client/src/ui/visitor/kanban.vue @@ -25,7 +25,9 @@ @click.stop="expanded = true" >{{ i18n.ts.instanceInfo }} --> - +
{{ instanceName }}
-
@@ -54,7 +59,7 @@
-
+
- Log In + {{ i18n.ts.login }} - Find another server + {{ i18n.ts.findAnotherInstance }} + + + + {{ i18n.ts.apps }}
@@ -208,12 +223,10 @@ let meta = $ref(); let isLong = $ref(false); let collapsed = $ref(!isLong); -let wallpaper = $ref(); os.api("meta", { detail: true }).then((res) => { meta = res; isLong = meta.description && (meta.description.length > 500); - wallpaper = `url("${meta.wallpaper}")` }); let announcement = $ref(); @@ -257,16 +270,20 @@ function onScroll(ev) { -