@eox/pages-theme-eox 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -65,27 +65,44 @@ const featuresExcerpts =
|
|
|
65
65
|
);
|
|
66
66
|
})
|
|
67
67
|
.filter((f) => f);
|
|
68
|
-
const siteTitle = sectionTitle || `More ${site.value.title} features
|
|
68
|
+
const siteTitle = sectionTitle !== false ? (sectionTitle || `More ${site.value.title} features:`) : false;
|
|
69
69
|
</script>
|
|
70
70
|
|
|
71
71
|
<template>
|
|
72
72
|
<section :class="`${background} full-width`">
|
|
73
|
-
<
|
|
74
|
-
|
|
73
|
+
<template v-if="sectionTitle">
|
|
74
|
+
<div class="large-space"></div>
|
|
75
|
+
<div class="large-space"></div>
|
|
76
|
+
</template>
|
|
75
77
|
<div class="holder large-padding">
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
+
<template v-if="siteTitle">
|
|
79
|
+
<h5>{{ siteTitle }}</h5>
|
|
80
|
+
<div class="medium-space"></div>
|
|
81
|
+
</template>
|
|
78
82
|
<div class="cards-gallery">
|
|
79
83
|
<div
|
|
80
84
|
v-for="feature in featuresExcerpts"
|
|
81
85
|
:key="feature.id"
|
|
82
86
|
class="card-wrapper"
|
|
83
87
|
>
|
|
88
|
+
<a
|
|
89
|
+
v-if="feature.link && !feature.link.text"
|
|
90
|
+
:href="feature.link.href"
|
|
91
|
+
:target="feature.link.target"
|
|
92
|
+
class="link-card"
|
|
93
|
+
>
|
|
94
|
+
<FeatureCard
|
|
95
|
+
:title="feature.title"
|
|
96
|
+
:content="feature.content"
|
|
97
|
+
:icon="feature.icon"
|
|
98
|
+
/>
|
|
99
|
+
</a>
|
|
84
100
|
<FeatureCard
|
|
101
|
+
v-else
|
|
85
102
|
:title="feature.title"
|
|
86
103
|
:content="feature.content"
|
|
87
104
|
:icon="feature.icon"
|
|
88
|
-
:link="feature.link"
|
|
105
|
+
:link="feature.link.text ? feature.link : undefined"
|
|
89
106
|
/>
|
|
90
107
|
</div>
|
|
91
108
|
</div>
|
|
@@ -103,6 +120,16 @@ const siteTitle = sectionTitle || `More ${site.value.title} features:`;
|
|
|
103
120
|
margin-top: 16px;
|
|
104
121
|
}
|
|
105
122
|
|
|
123
|
+
.link-card {
|
|
124
|
+
display: block;
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
border: .0625rem solid transparent;
|
|
127
|
+
}
|
|
128
|
+
.link-card:hover article {
|
|
129
|
+
box-shadow: none;
|
|
130
|
+
border: .0625rem solid var(--outline-variant);
|
|
131
|
+
}
|
|
132
|
+
|
|
106
133
|
.card-wrapper {
|
|
107
134
|
display: flex;
|
|
108
135
|
flex: 0 0 calc(25% - 18px);
|