Skip to content

Commit

Permalink
feat: add navbar for different pages to playground
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaswolf committed Jun 21, 2024
1 parent 61a637e commit 49e377f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions playground/components/NavigationBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script setup lang="ts"></script>

<template>
<nav>
<NuxtLink to="/">Default</NuxtLink>
<NuxtLink to="/without">Lazy-loaded</NuxtLink>
</nav>
</template>

<style scoped>
nav {
display: flex;
gap: 20px;
}
</style>
2 changes: 2 additions & 0 deletions playground/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<script setup>
import { ref } from 'vue'
import NavigationBar from '~/components/NavigationBar.vue'
const CreditCardError = ref()
const CreditCardToken = ref()
const IdealError = ref()
</script>
<template>
<div>
<NavigationBar />
<h1>Nuxt mollie payments components</h1>

<h2>Credit Card</h2>
Expand Down
3 changes: 3 additions & 0 deletions playground/pages/without.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<script setup lang="ts">
import { ref } from 'vue'
import NavigationBar from '~/components/NavigationBar.vue'
const show = ref(false)
const CreditCardError = ref()
const CreditCardToken = ref()
</script>

<template>
<div>
<NavigationBar />

<h1>Load Mollie script lazily</h1>
<div>On this page the scripts load lazily, if the button is clicked.</div>
<div>To test this, the option <i>isIncludedGlobally: false</i> has to be set in nuxt config.</div>
Expand Down

0 comments on commit 49e377f

Please sign in to comment.