mirror of
https://github.com/LJ5O/website.git
synced 2026-08-11 22:54:46 +02:00
Button made hidden when useless for features
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="feature_div" :class="{'reversed':props.side}">
|
<div class="feature_div" :class="{'reversed':side}">
|
||||||
<div class="feature_img_div">
|
<div class="feature_img_div">
|
||||||
<img :src="props.picture">
|
<img :src="picture">
|
||||||
</div>
|
</div>
|
||||||
<div class="feature_text_div">
|
<div class="feature_text_div">
|
||||||
<h2>{{ props.title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
<article>
|
<article>
|
||||||
<p>{{ props.desc }}</p>
|
<p>{{ desc }}</p>
|
||||||
</article>
|
</article>
|
||||||
<RouterLink :to="props.link">
|
<RouterLink :to="link" v-if="link!='#'">
|
||||||
<button @click="goToTop" class="button feature_button">{{ props.buttonText }}</button>
|
<button @click="goToTop" class="button feature_button">{{ buttonText }}</button>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- Feature div -->
|
</div> <!-- Feature div -->
|
||||||
@@ -29,11 +29,13 @@
|
|||||||
},
|
},
|
||||||
buttonText:{
|
buttonText:{
|
||||||
type:String,
|
type:String,
|
||||||
required:true
|
required:false,
|
||||||
|
default:""
|
||||||
},
|
},
|
||||||
link:{
|
link:{
|
||||||
type:String,
|
type:String,
|
||||||
required:true
|
required:false,
|
||||||
|
default: "#"
|
||||||
},
|
},
|
||||||
picture:{
|
picture:{
|
||||||
type:String,
|
type:String,
|
||||||
|
|||||||
Reference in New Issue
Block a user