<template>
  <q-page class="row items-center justify-evenly">
    <div class="col-12 col-md-6">
      <q-card class="q-mt-md">
        <q-card-section>
          <div class="text-h6">{{ t('home.welcome') }}</div>
          <p>
            <router-link to="/dev">{{ t('app.devSection') }}</router-link>
          </p>
        </q-card-section>
      </q-card>
      <div class="q-pa-md row items-start q-gutter-md">
        <q-card class="my-card">
          <img src="https://cdn.quasar.dev/img/mountains.jpg" />

          <q-card-section>
            <div class="text-h6">{{ t('home.cardTitle') }}</div>
            <div class="text-subtitle2">{{ t('home.cardSubtitle') }}</div>
          </q-card-section>

          <q-card-section class="q-pt-none">
            {{ t('home.lorem') }}
          </q-card-section>
        </q-card>

        <q-card class="my-card">
          <q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
            <div class="absolute-bottom text-subtitle2 text-center">{{ t('home.imageTitle') }}</div>
          </q-img>
        </q-card>

        <q-card class="my-card">
          <q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
            <div class="absolute-bottom text-h6">{{ t('home.imageTitle') }}</div>
          </q-img>

          <q-card-section>
            {{ t('home.lorem') }}
          </q-card-section>
        </q-card>

        <q-card class="my-card">
          <q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
            <div class="text-subtitle2 absolute-top text-center">{{ t('home.imageTitle') }}</div>
          </q-img>
        </q-card>

        <q-card class="my-card">
          <q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
            <div class="text-h5 absolute-bottom text-right">{{ t('home.imageTitle') }}</div>
          </q-img>
        </q-card>

        <q-card class="my-card">
          <q-item>
            <q-item-section avatar>
              <q-avatar>
                <img src="https://cdn.quasar.dev/img/avatar2.jpg" />
              </q-avatar>
            </q-item-section>

            <q-item-section>
              <q-item-label>{{ t('home.imageTitle') }}</q-item-label>
              <q-item-label caption>{{ t('home.imageSubhead') }}</q-item-label>
            </q-item-section>
          </q-item>

          <img src="https://cdn.quasar.dev/img/parallax2.jpg" />
        </q-card>

        <q-card class="my-card">
          <q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
            <div class="absolute-bottom">
              <div class="text-h6">{{ t('home.cardTitle') }}</div>
              <div class="text-subtitle2">{{ t('home.cardSubtitle') }}</div>
            </div>
          </q-img>

          <q-card-actions>
            <q-btn flat>{{ t('home.action1') }}</q-btn>
            <q-btn flat>{{ t('home.action2') }}</q-btn>
          </q-card-actions>
        </q-card>
      </div>
    </div>
  </q-page>
</template>

<script setup lang="ts">
import { useI18n } from 'vue-i18n';

const { t } = useI18n();
</script>

<style lang="sass" scoped>
.my-card
  width: 100%
  max-width: 250px
</style>
