Component for available sources in home page
This commit is contained in:
44
resources/js/components/AvailableSources.vue
Normal file
44
resources/js/components/AvailableSources.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div class="border-b mt-5">
|
||||
<div class="mb-5">
|
||||
<div>
|
||||
<h2
|
||||
class="text-gray-800 font-bold text-3xl text-center mt-3 mb-2 MvAamu"
|
||||
>
|
||||
މަސްދަރުތަށް
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-wrap justify-center">
|
||||
<div
|
||||
v-for="source in sources"
|
||||
:key="source.id"
|
||||
class="flex flex-col items-center shadow hover:shadow-lg mr-5 rounded p-10"
|
||||
>
|
||||
<img
|
||||
class="h-16 w-16"
|
||||
:src="source.logo"
|
||||
:alt="source.name"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "available-sources",
|
||||
|
||||
data() {
|
||||
return {
|
||||
sources: []
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
axios.get("/api/sources").then(response => {
|
||||
this.sources = response.data.data;
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user