@eox/pages-theme-eox 0.4.4 → 0.4.5

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.4.4",
3
+ "version": "0.4.5",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -31,15 +31,39 @@
31
31
  </button>
32
32
  </nav>
33
33
  <ul class="list border large-space">
34
- <li v-for="item in theme.nav">
34
+ <li v-for="item in theme.nav.filter((item) => !item.action)">
35
35
  <a
36
36
  data-ui="#mobile-menu"
37
37
  :href="item.link"
38
- class="primary-text"
39
- >{{ item.text }}</a
38
+ :class="
39
+ item.action
40
+ ? 'button large medium-elevate cta'
41
+ : 'primary-text'
42
+ "
40
43
  >
44
+ <span>{{ item.text }}</span>
45
+ <i v-if="item.action" class="mdi mdi-arrow-right"></i>
46
+ </a>
41
47
  </li>
42
48
  </ul>
49
+ <div class="grid">
50
+ <div class="s12">
51
+ <nav v-for="item in theme.nav.filter((item) => item.action)">
52
+ <a
53
+ data-ui="#mobile-menu"
54
+ :href="item.link"
55
+ :class="
56
+ item.action
57
+ ? `button responsive large medium-elevate cta ${item.action}`
58
+ : 'primary-text'
59
+ "
60
+ >
61
+ <span>{{ item.text }}</span>
62
+ <i v-if="item.action" class="mdi mdi-arrow-right"></i>
63
+ </a>
64
+ </nav>
65
+ </div>
66
+ </div>
43
67
  </dialog>
44
68
  </nav>
45
69
  <nav
@@ -55,20 +79,26 @@
55
79
  <div class="space"></div>
56
80
  <nav>
57
81
  <ul class="left-align no-margin">
58
- <li v-for="item in theme.nav">
82
+ <li v-for="item in theme.nav.filter((i) => !i.action)">
59
83
  <a :href="item.link">{{ item.text }}</a>
60
84
  </li>
61
85
  </ul>
62
86
  </nav>
63
87
  <div class="max"></div>
64
- <a class="button text right-align" href="">
65
- <span>Contact sales</span>
66
- <i class="mdi mdi-arrow-right"></i>
67
- </a>
68
- <a class="button right-align" href="">
69
- <span>Log in</span>
70
- <i class="mdi mdi-arrow-right"></i>
71
- </a>
88
+ <nav>
89
+ <ul class="left-align no-margin">
90
+ <li v-for="item in theme.nav.filter((item) => item.action)">
91
+ <a
92
+ class="button right-align"
93
+ :class="item.action === 'primary' ? '' : 'text'"
94
+ :href="item.link"
95
+ >
96
+ <span>{{ item.text }}</span>
97
+ <i class="mdi mdi-arrow-right"></i>
98
+ </a>
99
+ </li>
100
+ </ul>
101
+ </nav>
72
102
  </nav>
73
103
  </div>
74
104
  <header v-if="frontmatter.hero" class="primary center-align">
@@ -239,6 +269,7 @@ header .cta.alt {
239
269
  footer {
240
270
  padding: 0;
241
271
  }
272
+ .top-nav > nav,
242
273
  .top-nav > .holder,
243
274
  footer > .holder {
244
275
  width: 100%;
package/src/index.js CHANGED
@@ -8,6 +8,9 @@ export default {
8
8
  extends: DefaultTheme,
9
9
  Layout,
10
10
  enhanceApp({ app, router, siteData }) {
11
+ document.body.classList.remove("dark");
12
+ document.body.classList.add("light");
13
+
11
14
  app.component("FeatureSection", FeatureSection);
12
15
 
13
16
  router.onAfterRouteChanged = () => {