<template>
    <div>
        <div class="m-2">
            <div class="card">
                <div class="text-black m-2 p-2 flex flex-col">
                    <h2>Raspberry Links</h2>
                    <ul class="mt-2">
                        <li><a v-for="(link, index) in links" :href="link.link" :key="index" target="_blank" class="block text-lg">{{ link.name }}</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'AutomaticLinksHome',
    data: function () {
        return {
            links: [
                { name: 'Météo', link: 'http://192.168.1.32/meteo/meteo'},
                { name: 'MotionEye', link: 'http://192.168.1.32:8765'},
                { name: 'TT-RSS', link: 'https://tt-rss.bricooli.fr'},
                { name: 'Pi-Hole', link: 'http://192.168.1.32/admin/index.php'},
                { name: 'RaspAp', link: 'http://192.168.1.32/raspap'},
                { name: 'Kodi', link: 'http://192.168.1.19:8080/'},
                { name: 'RaspiWeb Adminer', link: 'http://192.168.1.32/adminer.php'},
                { name: 'RaspiGate Adminer', link: 'http://192.168.1.29/adminer.php'},
            ],
        }
    },
}
</script>
