Skip to content

Commit

Permalink
Consume more tokens from arches theme
Browse files Browse the repository at this point in the history
Fix header skip #87
  • Loading branch information
jacobtylerwalls committed Oct 21, 2024
1 parent d080c4c commit 2814405
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion arches_lingo/src/arches_lingo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ router.beforeEach(async (to, _from, next) => {

<style scoped>
main {
font-family: sans-serif;
font-family: system-ui, sans-serif;
height: 100vh;
width: 100vw;
display: flex;
Expand Down
15 changes: 7 additions & 8 deletions arches_lingo/src/arches_lingo/components/header/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ const items = ref([
</script>

<template>
<Menubar
class="page-header"
:model="items"
>
<Menubar :model="items">
<template #start>
<RouterLink
:to="{ name: routeNames.root }"
style="text-decoration: none; color: inherit"
>
<h2>{{ $gettext("Arches Lingo") }}</h2>
<h1>{{ $gettext("Arches Lingo") }}</h1>
</RouterLink>
</template>
<template #item="{ item }">
Expand All @@ -46,7 +43,9 @@ const items = ref([
:class="item.icon"
aria-hidden="true"
></i>
<span>{{ item.label }}</span>
<span style="font-weight: var(--p-button-label-font-weight)">{{
item.label
}}</span>
</RouterLink>
</template>
<template #end>
Expand All @@ -56,8 +55,8 @@ const items = ref([
</template>

<style scoped>
.page-header {
border-radius: 0;
:deep(.p-menubar-start) {
gap: var(--p-menubar-gap);
}
@media screen and (max-width: 960px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const submit = async () => {
form {
display: flex;
flex-direction: column;
gap: 1rem;
gap: var(--p-content-gap);
width: 30%;
}
Expand Down
6 changes: 6 additions & 0 deletions arches_lingo/src/arches_lingo/components/login/LoginLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { useGettext } from "vue3-gettext";
import Button from "primevue/button";
import { SECONDARY } from "@/arches_lingo/constants.ts";
const { $gettext } = useGettext();
</script>

Expand All @@ -13,11 +15,15 @@ const { $gettext } = useGettext();
as="a"
:label="$gettext('Register')"
:href="arches.urls.signup"
:severity="SECONDARY"
:outlined="true"
/>
<Button
as="a"
:label="$gettext('Multi-factor login')"
:href="arches.urls.auth + '?next=/'"
:severity="SECONDARY"
:outlined="true"
/>
</div>
</template>
6 changes: 3 additions & 3 deletions arches_lingo/src/arches_lingo/components/sidenav/SideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ const items = ref([
display: flex;
flex-direction: column;
align-items: center;
min-width: 3rem;
min-width: var(--p-button-icon-only-width);
border-right: 1px solid var(--p-menubar-border-color);
}
.p-button {
min-height: 3rem;
min-width: 3rem;
min-height: var(--p-button-icon-only-width);
min-width: var(--p-button-icon-only-width);
border-radius: 0;
font-size: 1.5rem;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ const greeting = computed(() => {
</script>

<template>
<div style="display: flex; align-items: center">
<div style="display: flex; align-items: center; gap: var(--p-content-gap)">
<span v-if="user">{{ greeting }}</span>
<Button
style="margin-left: 1rem"
:label="$gettext('Sign out')"
@click="issueLogout"
>
{{ $gettext("Sign out") }}
</Button>
></Button>
</div>
</template>
1 change: 1 addition & 0 deletions arches_lingo/src/arches_lingo/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { UserRefAndSetter } from "@/arches_lingo/types.ts";

export const ANONYMOUS = "anonymous";
export const ERROR = "error";
export const SECONDARY = "secondary";
export const DEFAULT_ERROR_TOAST_LIFE = 8000;

export const USER_KEY = Symbol() as InjectionKey<UserRefAndSetter>;

0 comments on commit 2814405

Please sign in to comment.