The sign-in page. Each app gives its logo, its texts and its sign-in.
With panel
The texts come from each app, already translated. Checking the password is the app's job: it listens to submit. The language and theme controls and the legal line go in their slots, as in Rosepetal's login.
<script setup>
import { LanguagesIcon, MoonIcon, SunIcon } from '@lucide/vue';
import { ref } from 'vue';
import LoginPage from '@aisgroup/design/blocks/LoginPage.vue';
import { Button } from '@aisgroup/design/ui/button';
import { DropdownMenu, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuTrigger } from '@aisgroup/design/ui/dropdown-menu';
const email = ref('');
const password = ref('');
const loading = ref(false);
const locale = ref('es');
const dark = ref(document.documentElement.classList.contains('dark'));
function login() {
loading.value = true;
setTimeout(() => (loading.value = false), 1500);
}
function toggleTheme() {
dark.value = document.documentElement.classList.toggle('dark');
}
</script>
<template>
<div class="w-full overflow-hidden rounded-md border">
<LoginPage v-model:email="email" v-model:password="password" class="min-h-160!" :loading="loading" @submit="login">
<template #controls>
<DropdownMenu :modal="false">
<DropdownMenuTrigger as-child>
<Button variant="ghost" size="sm" aria-label="Language"><LanguagesIcon data-icon="inline-start" />{{ locale.toUpperCase() }}</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" class="w-36">
<DropdownMenuRadioGroup v-model="locale">
<DropdownMenuRadioItem value="es">Español</DropdownMenuRadioItem>
<DropdownMenuRadioItem value="en">English</DropdownMenuRadioItem>
</DropdownMenuRadioGroup>
</DropdownMenuContent>
</DropdownMenu>
<Button variant="ghost" size="icon-sm" :aria-label="dark ? 'Light mode' : 'Dark mode'" @click="toggleTheme">
<SunIcon v-if="dark" />
<MoonIcon v-else />
</Button>
</template>
<template #legal>
By login, I accept the
<Button as-child variant="link" size="inline"><a href="#">Terms of Service</a></Button>
and the
<Button as-child variant="link" size="inline"><a href="#">Privacy Policy</a></Button>.
</template>
</LoginPage>
</div>
</template>Without panel
Without the side panel, with another app's texts and an error from its own sign in.
<script setup>
import LoginPage from '@aisgroup/design/blocks/LoginPage.vue';
</script>
<template>
<div class="w-full overflow-hidden rounded-md border">
<LoginPage :panel="false" class="min-h-160!" title="Sign in to Rosepetal Meta" subtitle="Use your Rosepetal account" :show-remember="false" submit-label="Sign in" :error="{ title: 'Wrong credentials', text: 'Check the email and password and try again.' }" password-invalid />
</div>
</template>Group app
Software the whole group uses: AIS Group signs it alone, with its full logo, and the app is named «Nexus ERP», without a company in front. The panel carries the catalogue covers' hexagon corner instead of the inspection animation, so there is no pause button. The form is the app's own: here a Google sign-in. The logo and the pattern are the guide's files, downloaded, never redrawn.
<script setup>
import { ref } from 'vue';
import LoginPage from '@aisgroup/design/blocks/LoginPage.vue';
import { Button } from '@aisgroup/design/ui/button';
import { Spinner } from '@aisgroup/design/ui/spinner';
// The guide's official files (Logos, Patterns). An app downloads them into its own assets.
const GUIDE = 'https://design.aisgroup.ai';
const loading = ref(false);
function signIn() {
loading.value = true;
setTimeout(() => (loading.value = false), 1500);
}
</script>
<template>
<div class="w-full overflow-hidden rounded-md border">
<LoginPage class="min-h-160!" panel-title="Nexus ERP" panel-subtitle="" title="Welcome" subtitle="" footer="" :logo="`${GUIDE}/logos/ais-group-white.svg`" logo-alt="AIS Group" logo-class="h-12 w-auto">
<template #panel-art>
<img :src="`${GUIDE}/examples/shared/print/assets/hex-printed-cover.svg`" alt="" class="pointer-events-none absolute top-0 right-0 h-auto w-[38%] opacity-60">
</template>
<template #mark>
<div class="mb-2 lg:hidden">
<img :src="`${GUIDE}/logos/ais-group-blue.svg`" alt="AIS Group" class="h-12 w-auto dark:hidden">
<img :src="`${GUIDE}/logos/ais-group-white.svg`" alt="AIS Group" class="hidden h-12 w-auto dark:block">
</div>
</template>
<template #form>
<Button size="lg" class="w-full" :disabled="loading" @click="signIn">
<Spinner v-if="loading" data-icon="inline-start" />
Sign in with Google
</Button>
</template>
</LoginPage>
</div>
</template>