<script setup lang="ts">
defineProps<{ title: string }>()
</script>
<template>
  <div class="app-page">
    <h1 class="app-page-title">{{ title }}</h1>
    <slot></slot>
  </div>
</template>
<style lang="css">
.app-page {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem;
  padding-bottom: 1rem;
  background-color: var(--bg-lighter);

  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

.app-page-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 28px;
  font-weight: 700;
}
</style>
