@eox/pages-theme-eox 0.5.0 → 0.5.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/pages-theme-eox",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -39,10 +39,6 @@
39
39
  :class="item.action ? 'button large medium-elevate cta' : ''"
40
40
  >
41
41
  <span>{{ item.text }}</span>
42
- <i
43
- v-if="item.action === 'primary'"
44
- class="mdi mdi-arrow-right"
45
- ></i>
46
42
  </a>
47
43
  </li>
48
44
  </ul>
@@ -56,13 +52,15 @@
56
52
  :rel="item.rel"
57
53
  :class="
58
54
  item.action
59
- ? `button responsive large ${item.action === 'primary' ? 'primary medium-elevate' : 'border no-elevate'}`
55
+ ? `button responsive large ${item.action === 'primary' || item.action === 'secondary' ? `${item.action} medium-elevate` : 'border no-elevate'}`
60
56
  : 'primary-text'
61
57
  "
62
58
  >
63
59
  <span>{{ item.text }}</span>
64
60
  <i
65
- v-if="item.action === 'primary'"
61
+ v-if="
62
+ item.action === 'primary' || item.action === 'secondary'
63
+ "
66
64
  class="mdi mdi-arrow-right"
67
65
  ></i>
68
66
  </a>
@@ -101,14 +99,20 @@
101
99
  <li v-for="item in theme.nav.filter((item) => item.action)">
102
100
  <a
103
101
  class="button right-align"
104
- :class="item.action === 'primary' ? 'primary' : 'border'"
102
+ :class="
103
+ item.action === 'primary' || item.action === 'secondary'
104
+ ? item.action
105
+ : 'border'
106
+ "
105
107
  :href="withBase(item.link)"
106
108
  :target="item.target"
107
109
  :rel="item.rel"
108
110
  >
109
111
  <span>{{ item.text }}</span>
110
112
  <i
111
- v-if="item.action === 'primary'"
113
+ v-if="
114
+ item.action === 'primary' || item.action === 'secondary'
115
+ "
112
116
  class="mdi mdi-arrow-right"
113
117
  ></i>
114
118
  </a>
@@ -146,9 +150,7 @@
146
150
  </div>
147
151
  <div style="grid-area: actions">
148
152
  <a
149
- v-for="(action, i) in frontmatter.hero.actions.filter(
150
- (a) => a.theme === 'brand',
151
- )"
153
+ v-for="(action, i) in frontmatter.hero.actions"
152
154
  :href="withBase(action.link)"
153
155
  :target="action.target"
154
156
  :rel="action.rel"
@@ -156,15 +158,14 @@
156
158
  :class="
157
159
  action.theme === 'brand'
158
160
  ? 'primary-text surface medium-elevate'
159
- : 'border white-border no-elevate white-text'
161
+ : action.theme === 'secondary'
162
+ ? 'secondary'
163
+ : 'border no-elevate white-text'
160
164
  "
161
165
  :style="i === 0 ? 'margin-left: 0 !important' : ''"
162
166
  >
163
167
  <span>{{ action.text }}</span>
164
- <i
165
- v-if="action.theme === 'brand'"
166
- class="mdi mdi-arrow-right"
167
- ></i>
168
+ <i v-if="action.theme !== 'alt'" class="mdi mdi-arrow-right"></i>
168
169
  </a>
169
170
  </div>
170
171
  </div>
@@ -282,10 +283,11 @@ if (!import.meta.env.SSR) {
282
283
  .top-nav.at-top {
283
284
  box-shadow: none;
284
285
  }
285
- .top-nav.at-top .button.primary {
286
+ .Layout.layout-home .top-nav.at-top .nav-desktop .button.primary,
287
+ .Layout.layout-home .top-nav.at-top .nav-desktop .button.secondary {
286
288
  display: none;
287
289
  }
288
- .top-nav.at-top nav.actions {
290
+ .Layout.layout-home .top-nav.at-top nav.actions {
289
291
  gap: 0;
290
292
  }
291
293
  .top-nav:not(.at-top) > nav {
@@ -299,15 +301,15 @@ if (!import.meta.env.SSR) {
299
301
  .Layout .top-nav nav .button {
300
302
  color: var(--on-surface);
301
303
  }
302
- .Layout.layout-home .top-nav.at-top nav .button {
304
+ .Layout.layout-home .top-nav.at-top .nav-desktop .button {
303
305
  color: var(--on-surface);
304
306
  background: var(--surface);
305
307
  }
306
- .Layout.layout-home .top-nav.at-top nav .button.text {
308
+ .Layout.layout-home .top-nav.at-top .nav-desktop .button.text {
307
309
  color: #f7f8f8;
308
310
  background: none;
309
311
  }
310
- .Layout.layout-home .top-nav.at-top nav .button.border {
312
+ .Layout.layout-home .top-nav.at-top .nav-desktop .button.border {
311
313
  color: #f7f8f8;
312
314
  border-color: #f7f8f855;
313
315
  background: none;
@@ -16,6 +16,7 @@
16
16
  </h3>
17
17
  <p class="large-text">{{ tagline }}</p>
18
18
  <a
19
+ v-if="primaryButton"
19
20
  class="button extra small-margin"
20
21
  :class="dark !== undefined ? 'surface' : 'primary'"
21
22
  :href="primaryLink"
@@ -23,10 +24,16 @@
23
24
  ></a>
24
25
  <a
25
26
  v-if="secondaryButton"
27
+ class="button extra small-margin secondary"
28
+ :href="secondaryLink"
29
+ >{{ secondaryButton }}<i class="mdi mdi-arrow-right"></i
30
+ ></a>
31
+ <a
32
+ v-if="altButton"
26
33
  class="button border extra small-margin"
27
34
  :class="dark !== undefined ? 'white-text' : ''"
28
- :href="secondaryLink"
29
- >{{ secondaryButton }}</a
35
+ :href="altLink"
36
+ >{{ altButton }}</a
30
37
  >
31
38
  </div>
32
39
  <div class="large-space"></div>
@@ -43,6 +50,8 @@ const props = defineProps([
43
50
  "primaryLink",
44
51
  "secondaryButton",
45
52
  "secondaryLink",
53
+ "altButton",
54
+ "altLink",
46
55
  "tagline",
47
56
  "title",
48
57
  ]);
@@ -32,10 +32,20 @@
32
32
  v-if="secondaryLink !== undefined"
33
33
  :href="withBase(secondaryLink)"
34
34
  :target="secondaryLink.includes('https://') ? '_blank' : '_self'"
35
- class="button border no-margin"
35
+ class="button secondary medium-elevate no-margin"
36
36
  style="color: var(--on-surface); margin-top: 12px !important"
37
37
  >
38
38
  <span>{{ secondaryButton || "Contact sales" }}</span>
39
+ <i class="mdi mdi-arrow-right"></i>
40
+ </a>
41
+ <a
42
+ v-if="altLink !== undefined"
43
+ :href="withBase(altLink)"
44
+ :target="altLink.includes('https://') ? '_blank' : '_self'"
45
+ class="button border no-margin"
46
+ style="color: var(--on-surface); margin-top: 12px !important"
47
+ >
48
+ <span>{{ altButton || "Contact sales" }}</span>
39
49
  </a>
40
50
  </div>
41
51
  </div>
@@ -60,6 +70,8 @@ const props = defineProps([
60
70
  "reverse",
61
71
  "secondaryButton",
62
72
  "secondaryLink",
73
+ "altButton",
74
+ "altLink",
63
75
  "tagline",
64
76
  "title",
65
77
  ]);
@@ -28,7 +28,7 @@
28
28
  </div>
29
29
  <div
30
30
  class="grid m l surface-bright"
31
- style="position: sticky; top: 88px; z-index: 1000; padding-top: 20px"
31
+ style="position: sticky; top: 72px; z-index: 1000; padding-top: 20px"
32
32
  v-if="localDetails.length"
33
33
  >
34
34
  <div class="s12 m3"></div>
@@ -213,10 +213,7 @@
213
213
  plan.details[row]?.checkmark
214
214
  "
215
215
  >
216
- <i
217
- class="mdi mdi-check-circle-outline"
218
- style="color: #4caf50"
219
- ></i>
216
+ <i class="mdi mdi-check-circle-outline"></i>
220
217
  </template>
221
218
  <template v-else>
222
219
  <span v-html="plan.details[row]"></span>
package/src/style.css CHANGED
@@ -68,6 +68,15 @@ body {
68
68
  padding-right: 0;
69
69
  }
70
70
 
71
+ .VPHome .vp-doc a {
72
+ font-weight: 400;
73
+ color: inherit;
74
+ }
75
+ .VPHome .vp-doc a.button {
76
+ font-weight: 500;
77
+ color: var(--on-primary);
78
+ }
79
+
71
80
  .VPHome .vp-doc h1 {
72
81
  font-size: 3.5625rem;
73
82
  }