Skip to content

Commit

Permalink
Move paragraphs to server components
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobefu committed May 5, 2024
1 parent 41a7f9a commit 04f4880
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 41 deletions.
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion frontend/base/components/layout/LayoutMainContentSkip.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script setup lang="ts">
const { t } = useI18n()
</script>

<template>
<Teleport to="body">
<a
href="#main-content"
class="absolute z-50 p-2 text-center -translate-x-1/2 left-1/2 -top-16 focus:top-0"
>
{{ $t('skip_to_main_content') }}
{{ t('skip_to_main_content') }}
</a>
</Teleport>
</template>
36 changes: 0 additions & 36 deletions frontend/base/components/skeleton/SkeletonPlaceholderSingle.vue

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/base/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "../.nuxt/tsconfig.json"
"extends": "../../.nuxt/tsconfig.json"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script setup lang="ts">
const { t } = useI18n()
</script>

<template>
<Teleport to="body">
<a
href="#main-content"
class="absolute z-50 px-4 py-2 text-center transition-all -translate-x-1/2 bg-white shadow-lg rounded-b-xl left-1/2 -top-16 focus:top-0 dark:bg-zinc-950"
>
{{ $t('skip_to_main_content') }}
{{ t('skip_to_main_content') }}
</a>
</Teleport>
</template>

0 comments on commit 04f4880

Please sign in to comment.