DTL page : btns working
This commit is contained in:
parent
b63bbfd62d
commit
3913c8b93e
1 changed files with 18 additions and 3 deletions
|
|
@ -13,10 +13,18 @@
|
||||||
<p class="intro" v-html="page.content.introduction"></p>
|
<p class="intro" v-html="page.content.introduction"></p>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<div class="ctas | flex" style="--column-gap: 1rem">
|
<div class="ctas | flex" style="--column-gap: 1rem">
|
||||||
<button class="btn btn--white-10" @click="isDialogOpen = true">
|
<button
|
||||||
|
@click="isOptimizationDialogOpen = true"
|
||||||
|
class="btn btn--white-10"
|
||||||
|
>
|
||||||
Optimiser un projet existant
|
Optimiser un projet existant
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn--white">Créer un nouveau projet avec DTL</button>
|
<button
|
||||||
|
@click="isProjectRequestDialogOpen = true"
|
||||||
|
class="btn btn--white"
|
||||||
|
>
|
||||||
|
Créer un nouveau projet avec DTL
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="presentation | mt-64 flow">
|
<div class="presentation | mt-64 flow">
|
||||||
|
|
@ -51,18 +59,25 @@
|
||||||
|
|
||||||
<OptimizationRequestDialog
|
<OptimizationRequestDialog
|
||||||
v-if="isOptimizationDialogOpen"
|
v-if="isOptimizationDialogOpen"
|
||||||
@close="isDialogOpen = false"
|
@close="isOptimizationDialogOpen = false"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ProjectRequestDialog
|
||||||
|
v-if="isProjectRequestDialogOpen"
|
||||||
|
@close="isProjectRequestDialogOpen = false"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { usePageStore } from "../stores/page";
|
import { usePageStore } from "../stores/page";
|
||||||
import OptimizationRequestDialog from "../components/design-to-light/OptimizationRequestDialog.vue";
|
import OptimizationRequestDialog from "../components/design-to-light/OptimizationRequestDialog.vue";
|
||||||
|
import ProjectRequestDialog from "../components/ProjectRequestDialog.vue";
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
|
|
||||||
const { page } = storeToRefs(usePageStore());
|
const { page } = storeToRefs(usePageStore());
|
||||||
|
|
||||||
const isOptimizationDialogOpen = ref(false);
|
const isOptimizationDialogOpen = ref(false);
|
||||||
|
const isProjectRequestDialogOpen = ref(false);
|
||||||
|
|
||||||
const background = computed(() => {
|
const background = computed(() => {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue