2025-02-07 17:29:15 +01:00
< template >
2025-02-16 21:10:50 +01:00
< h1 id = "article" > Aktuality < / h1 >
2025-02-16 14:20:40 +01:00
< h2 > Přečtěte si aktuality z našeho klubu < / h2 >
2025-02-09 22:09:39 +01:00
< v-row >
2025-02-16 14:20:40 +01:00
< v-col
v - for = "(article, index) in articles"
: key = "index"
cols = "12"
md = "6"
>
< v-card class = "article" >
< v-row >
< v-col >
< v-img
: lazy - src = "article.src"
: src = "article.src"
aspect - ratio = "1"
cover
>
< template v -slot : placeholder >
< v-row >
< v-progress-circular
color = "grey-lighten-5"
indeterminate
> < / v-progress-circular >
< / v-row >
< / template >
< / v-img >
< / v-col >
< v-col
cols = "12"
md = "8"
2025-02-09 22:09:39 +01:00
>
2025-02-16 14:20:40 +01:00
< v-row class = "article__title" > { { article . title } } < / v-row >
< v-row class = "article__date" > { { article . date } } < / v-row >
< v-row class = "article__text" > { { article . desc } } < / v-row >
< v-row class = "article__sign" > { { article . autor } } < / v-row >
< / v-col >
< / v-row >
< / v-card >
2025-02-09 22:09:39 +01:00
< / v-col >
< / v-row >
2025-02-07 17:29:15 +01:00
< / template >
< script setup lang = "ts" >
2025-02-16 14:20:40 +01:00
import './assets/css/main.css'
2025-02-19 20:51:19 +01:00
import { useAPI } from "~/composables/useAPI" ;
const { error , data } = await useAPI ( 'load-articles/' , { method : "GET" } ) ;
console . log ( error . value ) ;
2025-02-09 22:09:39 +01:00
const articles = [
{
autor : "Bebloid Obecný" ,
date : "2. 2. 2025" ,
title : "David potrolil soutěž" ,
2025-02-16 21:10:50 +01:00
src : "/terka&david.jpg" ,
2025-02-16 14:20:40 +01:00
desc : "V neděli 2. 2. David potrolil sambu, kde místo tančení lítal jako zmatená včelka. Terka, ačkoliv před soutěží velice zmatkovala a sebepoškozovala se, tak na parketě předvedla výborné představení. Na další trolení se můžeme všichni těšit do Brna na konci tohoto měsíce. "
} ,
2025-02-09 22:09:39 +01:00
]
2025-02-16 14:20:40 +01:00
< / script >