add buttons
This commit is contained in:
parent
bb15071aff
commit
3c0ffcaf71
4 changed files with 55 additions and 8 deletions
|
@ -17,6 +17,7 @@
|
|||
class="bghgjjyj _button"
|
||||
:class="{ inline, primary, gradate, danger, rounded, full, mini }"
|
||||
:to="to"
|
||||
:behavior="behavior"
|
||||
@mousedown="onMousedown"
|
||||
>
|
||||
<div ref="ripples" class="ripples"></div>
|
||||
|
@ -43,6 +44,7 @@ const props = defineProps<{
|
|||
full?: boolean;
|
||||
mini?: boolean;
|
||||
chip?: boolean;
|
||||
behavior?: null | "window" | "browser" | "modalWindow";
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
|
|
@ -488,6 +488,11 @@ hr {
|
|||
}
|
||||
}
|
||||
|
||||
._full {
|
||||
width: 100%;
|
||||
grid-column: -1/1;
|
||||
}
|
||||
|
||||
._formLinks {
|
||||
> *:not(:last-child) {
|
||||
margin-bottom: 8px;
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
class="dkgtipfy"
|
||||
:class="{ wallpaper, isMobile, centered: ui === 'classic' }"
|
||||
>
|
||||
<XSidebar v-if="!isMobile" />
|
||||
<XSidebar v-if="!isMobile && $i" />
|
||||
<XKanban class="kanban" full v-if="!$i" />
|
||||
|
||||
<MkStickyContainer class="contents">
|
||||
<template #header
|
||||
|
@ -133,9 +134,6 @@
|
|||
<i class="ph-user-plus ph-bold ph-lg"></i>
|
||||
</button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<XKanban class="kanban" full />
|
||||
</template>
|
||||
|
||||
<transition :name="$store.state.animation ? 'menuDrawer-back' : ''">
|
||||
<div
|
||||
|
|
|
@ -28,6 +28,41 @@
|
|||
></XShowMoreButton>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<div class="_formLinksGrid">
|
||||
<MkButton
|
||||
primary gradate
|
||||
rounded
|
||||
>
|
||||
<i
|
||||
class="ph-sign-in ph-bold"
|
||||
></i>
|
||||
Sign Up
|
||||
</MkButton>
|
||||
<MkButton
|
||||
rounded
|
||||
>
|
||||
<i
|
||||
class="ph-sign-out ph-bold"
|
||||
></i>
|
||||
Log In
|
||||
</MkButton>
|
||||
<MkButton
|
||||
:link="true"
|
||||
:behavior="'browser'"
|
||||
rounded
|
||||
full
|
||||
to="https://calckey.org/join/"
|
||||
class="_full"
|
||||
>
|
||||
<i
|
||||
class="ph-airplane-tilt ph-bold"
|
||||
></i>
|
||||
Find another server
|
||||
</MkButton>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<FormSection>
|
||||
<div class="_formLinksGrid">
|
||||
<FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
||||
|
@ -37,11 +72,18 @@
|
|||
></i></template
|
||||
>{{ i18n.ts.tos }}
|
||||
</FormLink>
|
||||
<FormLink v-if="meta?.tosUrl" :to="meta.tosUrl"
|
||||
><template #icon
|
||||
><i
|
||||
class="ph-prohibit ph-bold ph-lg"
|
||||
></i></template
|
||||
>Blocked servers
|
||||
</FormLink>
|
||||
</div>
|
||||
</FormSection>
|
||||
|
||||
<section class="announcements">
|
||||
<h1>{{ i18n.ts.announcements }}</h1>
|
||||
<FormSection class="announcements">
|
||||
<h3>{{ i18n.ts.announcements }}</h3>
|
||||
<MkPagination
|
||||
v-slot="{ items }"
|
||||
:pagination="announcements"
|
||||
|
@ -65,7 +107,7 @@
|
|||
</div>
|
||||
</article>
|
||||
</MkPagination>
|
||||
</section>
|
||||
</FormSection>
|
||||
<div v-if="poweredBy" class="powered-by">
|
||||
<b
|
||||
><MkA to="/">{{ host }}</MkA></b
|
||||
|
@ -109,7 +151,7 @@ let collapsed = $ref(!isLong);
|
|||
|
||||
os.api("meta", { detail: true }).then((res) => {
|
||||
meta = res;
|
||||
isLong = meta.description && (meta.description.length > 100);
|
||||
isLong = meta.description && (meta.description.length > 500);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue