@eox/pages-theme-eox 0.4.1 → 0.4.3

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.1",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -77,7 +77,7 @@
77
77
  class="background-image"
78
78
  :src="frontmatter.hero.image.src"
79
79
  />
80
- <h1 class="large bold" style="font-size: clamp(4rem, 5vw, 94px)">
80
+ <h1 class="large bold" style="font-size: clamp(3rem, 5vw, 94px)">
81
81
  {{ frontmatter.hero.text }}
82
82
  </h1>
83
83
  <p>{{ frontmatter.hero.tagline }}</p>
package/src/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import DefaultTheme from "vitepress/theme";
2
+ import FeatureSection from "./components/FeatureSection.vue";
2
3
  import Layout from "./Layout.vue";
3
4
  import "@eox/ui";
4
5
  import "./style.css";
@@ -7,12 +8,7 @@ export default {
7
8
  extends: DefaultTheme,
8
9
  Layout,
9
10
  enhanceApp({ app, router, siteData }) {
10
- const modules = import.meta.glob("./components/*.vue");
11
- for (const path in modules) {
12
- modules[path]().then((mod) => {
13
- app.component(path.split("/")[2].replace(".vue", ""), mod.default);
14
- });
15
- }
11
+ app.component("FeatureSection", FeatureSection);
16
12
 
17
13
  router.onAfterRouteChanged = () => {
18
14
  if (!import.meta.env.SSR) {