Skip to content

Commit

Permalink
add why volunnter on organization show page
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Nov 1, 2024
1 parent 866eacf commit 8f1a6c1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
1 change: 1 addition & 0 deletions lang/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"share_page": "Distribuie pagina pe",
"activity_domains": "Domenii de activitate",
"description": "Descriere",
"why_volunteer": "De ce să devin voluntar?",
"ong_projects": "Proiectele organizației",
"see_projects": "Vezi proiecte",
"share": "Dă un share proiectului pe",
Expand Down
42 changes: 24 additions & 18 deletions resources/js/Pages/Public/Organizations/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
</div>
</div>

<!-- Soacial share -->
<div class="flex flex-col mx-auto mb-8 lg:flex-row max-w-7xl px-9">
<div class="w-full lg:w-6/12">
<h2 class="mb-8 text-3xl font-bold text-primary-900">{{ $t('share_page') }}</h2>
Expand All @@ -65,6 +64,13 @@
<h2 class="mb-8 text-3xl font-bold text-primary-900">{{ $t('description') }}</h2>
<div class="text-lg text-gray-500" v-text="organization.description" />
</div>

<div v-if="organization.accepts_volunteers">
<h2 class="my-8 text-3xl font-bold text-primary-900">
{{ $t('why_volunteer') }}
</h2>
<div class="text-lg text-gray-500" v-text="organization.why_volunteer" />
</div>
</div>

<div class="w-full mt-4 lg:w-6/12 lg:mt-0 lg:px-10">
Expand Down Expand Up @@ -157,21 +163,21 @@
</template>

<script setup>
import Head from '@/Components/Head.vue';
/** Import components. */
import PageLayout from '@/Layouts/PageLayout.vue';
import ProjectCard from '@/Components/cards/ProjectCard.vue';
import DonateModal from '@/Components/modals/DonateModal.vue';
import VolunteerModal from '@/Components/modals/VolunteerModal.vue';
import SharePage from '@/Components/SharePage.vue';
import HowCanYouHelp from '@/Components/HowCanYouHelp.vue';
import { ChartBarIcon, GlobeAltIcon } from '@heroicons/vue/outline';
import { HomeIcon, MailIcon, UserIcon } from '@heroicons/vue/solid';
/** Page props. */
const props = defineProps({
organization: [Array, Object],
});
import Head from '@/Components/Head.vue';
/** Import components. */
import PageLayout from '@/Layouts/PageLayout.vue';
import ProjectCard from '@/Components/cards/ProjectCard.vue';
import DonateModal from '@/Components/modals/DonateModal.vue';
import VolunteerModal from '@/Components/modals/VolunteerModal.vue';
import SharePage from '@/Components/SharePage.vue';
import HowCanYouHelp from '@/Components/HowCanYouHelp.vue';
import { ChartBarIcon, GlobeAltIcon } from '@heroicons/vue/outline';
import { HomeIcon, MailIcon, UserIcon } from '@heroicons/vue/solid';
/** Page props. */
const props = defineProps({
organization: [Array, Object],
});
</script>

0 comments on commit 8f1a6c1

Please sign in to comment.