@eox/pages-theme-eox 0.9.4 → 0.10.0

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.9.4",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -3,6 +3,7 @@
3
3
  <template #layout-top>
4
4
  <slot name="layout-top"></slot>
5
5
  <NavBar />
6
+ <NewsBanner v-if="theme.newsBanner" :content="theme.newsBanner" />
6
7
  <HeroSection />
7
8
  <!-- <nav
8
9
  v-if="frontmatter.layout !== 'home'"
@@ -119,11 +119,12 @@ const props = defineProps([
119
119
  background: var(--surface-container-low);
120
120
  }
121
121
  .feature-section.dark .holder {
122
+ background: var(--primary);
122
123
  background: radial-gradient(
123
- farthest-corner at 100% 100%,
124
- #0f9bff 0%,
125
- var(--primary) 60%,
126
- #000c14 100%
124
+ 74.48% 130.95% at 50% -12.27%,
125
+ hsl(from var(--primary) h s calc(l + 7)) 0%,
126
+ var(--primary) 45%,
127
+ hsl(from var(--primary) h s calc(l - 20)) 100%
127
128
  );
128
129
  color: #fff;
129
130
  }
@@ -0,0 +1,25 @@
1
+ <template>
2
+ <div
3
+ class="news-banner primary center-align middle-align small-padding"
4
+ v-html="content"
5
+ ></div>
6
+ </template>
7
+
8
+ <script setup>
9
+ import { defineProps } from "vue";
10
+ const props = defineProps(["content"]);
11
+ </script>
12
+
13
+ <style scoped>
14
+ .news-banner {
15
+ position: fixed;
16
+ top: calc(var(--vp-nav-height) - 2px);
17
+ z-index: 999999;
18
+ background: color-mix(in srgb, var(--primary) 70%, transparent) !important;
19
+ width: 100%;
20
+ transition: all 0.25s ease;
21
+ backdrop-filter: blur(5px);
22
+ pointer-events: none;
23
+ gap: 0.5rem;
24
+ }
25
+ </style>
package/src/index.js CHANGED
@@ -7,6 +7,7 @@ import FeaturesGallery from "./components/FeaturesGallery.vue";
7
7
  import PricingTable from "./components/PricingTable.vue";
8
8
  import CTASection from "./components/CTASection.vue";
9
9
  import LogoSection from "./components/LogoSection.vue";
10
+ import NewsBanner from "./components/NewsBanner.vue";
10
11
  import CookieBanner from "./components/CookieBanner.vue";
11
12
  import CookieSettings from "./components/CookieSettings.vue";
12
13
  import NotFound from "./components/NotFound.vue";
@@ -25,6 +26,7 @@ export default {
25
26
  app.component("PricingTable", PricingTable);
26
27
  app.component("CTASection", CTASection);
27
28
  app.component("LogoSection", LogoSection);
29
+ app.component("NewsBanner", NewsBanner);
28
30
  app.component("CookieBanner", CookieBanner);
29
31
  app.component("CookieSettings", CookieSettings);
30
32
  app.component("NotFound", NotFound);
package/src/style.css CHANGED
@@ -164,6 +164,8 @@ button.text:hover,
164
164
  }
165
165
 
166
166
  .primary-gradient-bg {
167
+ /*Fallback*/
168
+ background: var(--primary);
167
169
  background: radial-gradient(
168
170
  74.48% 130.95% at 50% -12.27%,
169
171
  hsl(from var(--primary) h s calc(l + 7)) 0%,