@eox/pages-theme-esa 0.2.10 → 0.3.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.
@@ -0,0 +1 @@
1
+ package-lock.json
package/config.mjs ADDED
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from "vitepress";
2
+
3
+ // https://vitepress.dev/reference/site-config
4
+ export default defineConfig({
5
+ srcDir: "./pages",
6
+ appearance: "force-dark",
7
+ cleanUrls: true,
8
+ vue: {
9
+ template: {
10
+ compilerOptions: {
11
+ isCustomElement: (tag) => {
12
+ return tag.toLowerCase().includes("-");
13
+ },
14
+ },
15
+ },
16
+ },
17
+ });
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@eox/pages-theme-esa",
3
- "version": "0.2.10",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with ESA branding",
6
6
  "main": "src/index.js",
7
7
  "author": "EOX",
8
- "license": "MIT"
8
+ "license": "MIT",
9
+ "scripts": {
10
+ "format": "npx prettier --write ."
11
+ },
12
+ "devDependencies": {
13
+ "@eox/eslint-config": "^2.0.0"
14
+ }
9
15
  }
package/src/Layout.vue CHANGED
@@ -1,11 +1,12 @@
1
1
  <script setup>
2
2
  import { onMounted } from "vue";
3
- import { useData } from "vitepress";
4
- import NotFound from "./NotFound.vue";
5
- import Home from "./Home.vue";
6
- import Page from "./Page.vue";
3
+ import { useData, useRouter } from "vitepress";
4
+ import DefaultTheme from "vitepress/theme";
5
+ import { applyShadowDomEventListener } from "./helpers";
7
6
 
8
- const { site, page, frontmatter, theme } = useData();
7
+ const { Layout } = DefaultTheme;
8
+ const { site, theme, frontmatter } = useData();
9
+ const router = useRouter();
9
10
 
10
11
  onMounted(async () => {
11
12
  setTimeout(() => {
@@ -48,47 +49,162 @@ onMounted(async () => {
48
49
  });
49
50
 
50
51
  document.body.classList.add("loaded");
52
+
53
+ const routerEventHandler = (event, anchor) => {
54
+ const href = anchor.getAttribute("href");
55
+ const target = anchor.getAttribute("target");
56
+ if (href.startsWith("http") || target === "_blank") {
57
+ window.open(href, target).focus();
58
+ } else {
59
+ router.go(href);
60
+ }
61
+ };
62
+
63
+ applyShadowDomEventListener(
64
+ [
65
+ "esa-menu",
66
+ // "esa-header",
67
+ "esa-navbar",
68
+ "esa-cover",
69
+ "esa-capability",
70
+ "esa-card",
71
+ "esa-roadmap-step",
72
+ // "esa-gateway",
73
+ // "esa-footer",
74
+ // "esa-cookies",
75
+ ],
76
+ "click",
77
+ routerEventHandler,
78
+ );
51
79
  });
52
80
  });
53
81
  </script>
54
82
 
55
83
  <template>
56
- <ClientOnly>
57
- <esa-menu .menuItems="theme.nav" :enable-login="theme.login"></esa-menu>
58
- <esa-header></esa-header>
59
- <esa-navbar
60
- :brand-title="site.title"
61
- .menuItems="theme.nav"
62
- :enable-login="theme.login"
63
- ></esa-navbar>
64
- </ClientOnly>
65
- <div class="l-wrapper">
66
- <NotFound v-if="page.isNotFound" />
67
- <Home v-else-if="frontmatter.layout === 'home'" />
68
- <Page v-else />
69
- <ClientOnly>
70
- <esa-gateway
71
- v-if="theme.gateway"
72
- .items="theme.gateway"
73
- ></esa-gateway>
74
- <esa-footer
75
- :title="theme.footer.title"
76
- :description="theme.footer.description"
77
- :contact-link="theme.footer.contactLink"
78
- .footerItems="theme.footer.links"
79
- ></esa-footer>
80
- <esa-cookies
81
- link="https://www.esa.int/Services/Cookies_notice"
82
- style="display: none"
83
- ></esa-cookies>
84
- </ClientOnly>
85
- </div>
84
+ <Layout :class="frontmatter.layout">
85
+ <template #layout-top>
86
+ <ClientOnly>
87
+ <slot name="layout-top"></slot>
88
+ <esa-menu
89
+ .menuItems="theme.nav.map(n => ({title: n.text, href: n.link}))"
90
+ ></esa-menu>
91
+ <esa-header></esa-header>
92
+ <esa-navbar
93
+ :brand-title="site.title"
94
+ .menuItems="theme.nav.map(n => ({title: n.text, href: n.link}))"
95
+ ></esa-navbar>
96
+ </ClientOnly>
97
+ </template>
98
+ <template #home-hero-before>
99
+ <ClientOnly>
100
+ <esa-cover
101
+ :overline="frontmatter.title"
102
+ :title="frontmatter.hero.text"
103
+ :background-image="frontmatter.hero.image"
104
+ :underline="frontmatter.hero.tagline"
105
+ cta
106
+ :cta-link="frontmatter.hero.actions[0].link"
107
+ :cta-text="frontmatter.hero.actions[0].text"
108
+ ></esa-cover>
109
+ </ClientOnly>
110
+ </template>
111
+ <template #layout-bottom>
112
+ <ClientOnly>
113
+ <esa-gateway
114
+ .items='[
115
+ {
116
+ title: "ESA Vision",
117
+ links: [
118
+ {
119
+ name: "EO Science Strategy",
120
+ href: "https://doi.org/10.5281/zenodo.13819557",
121
+ },
122
+ ],
123
+ },
124
+ {
125
+ title: "ESA EO Programme",
126
+ links: [
127
+ {
128
+ name: "Observing the Earth",
129
+ href: "https://www.esa.int/Applications/Observing_the_Earth",
130
+ },
131
+ {
132
+ name: "Science for Society",
133
+ href: "https://eo4society.esa.int",
134
+ },
135
+ ],
136
+ },
137
+ {
138
+ title: "Research at ESA",
139
+ links: [
140
+
141
+ {
142
+ name: "Earth System Science Hub",
143
+ href: "https://sciencehub.esa.int",
144
+ },
145
+ ],
146
+ },
147
+ {
148
+ title: "Opportunities",
149
+ links: [
150
+
151
+ {
152
+ name: "Network of Resources",
153
+ href: "https://nor-discover.org",
154
+ },
155
+ ],
156
+ },
157
+ ]'
158
+ ></esa-gateway>
159
+ <esa-footer
160
+ title="Get in touch"
161
+ description="Join ESA's initiative to ensure long-term preservation and accessibility of research data, code, and documentation for a global scientific community."
162
+ contact-link="mailto:earthcode@esa.int"
163
+ .footerItems="[
164
+ [
165
+ {
166
+ href: 'https://www.esa.int/',
167
+ title: 'ESA Portal',
168
+ },
169
+ {
170
+ href: 'https://www.esa.int/About_Us/Corporate_news',
171
+ title: 'About ESA',
172
+ },
173
+ ],
174
+ [
175
+ {
176
+ href: 'https://www.esa.int/Services/Terms_and_conditions',
177
+ title: 'Terms and Conditions',
178
+ },
179
+ {
180
+ href: 'https://www.esa.int/Services/Cookies_notice',
181
+ title: 'Cookies Notice',
182
+ },
183
+ ],
184
+ [
185
+ {
186
+ href: 'https://www.esa.int/Services/Privacy_notice',
187
+ title: 'Privacy Notice',
188
+ },
189
+ ],
190
+ ]"
191
+ ></esa-footer>
192
+ <esa-cookies
193
+ link="https://www.esa.int/Services/Cookies_notice"
194
+ style="display: none"
195
+ ></esa-cookies>
196
+ </ClientOnly>
197
+ </template>
198
+ </Layout>
86
199
  </template>
87
200
 
88
201
  <style scoped>
89
- .container {
90
- width: 90%;
91
- margin-left: auto;
92
- margin-right: auto;
202
+ esa-footer {
203
+ padding: 0 24px;
204
+ }
205
+ @media (min-width: 640px) {
206
+ esa-footer {
207
+ padding: 0 200px;
208
+ }
93
209
  }
94
210
  </style>
@@ -0,0 +1,11 @@
1
+ import { createContentLoader } from "vitepress";
2
+
3
+ export default createContentLoader("../pages/blog/*.md", {
4
+ includeSrc: true,
5
+ render: true,
6
+ transform(rawData) {
7
+ return rawData.filter(
8
+ (d) => d.url !== "/blog/" && d.url !== "/blog/preview",
9
+ );
10
+ },
11
+ });
@@ -0,0 +1,20 @@
1
+ <script setup>
2
+ import { data as blogposts } from "../blogposts.data.js";
3
+ </script>
4
+
5
+ <template>
6
+ <esa-cards>
7
+ <esa-card
8
+ v-for="(blogpost, index) in blogposts.sort((a, b) =>
9
+ new Date(a.frontmatter.date) < new Date(b.frontmatter.date) ? 1 : -1,
10
+ )"
11
+ :feature="blogpost.frontmatter.feature"
12
+ overline="Story"
13
+ :image="blogpost.frontmatter.image"
14
+ :title="blogpost.frontmatter.title"
15
+ :date="new Date(blogpost.frontmatter.date).toLocaleDateString()"
16
+ :link="blogpost.url"
17
+ action="Read more"
18
+ ></esa-card>
19
+ </esa-cards>
20
+ </template>
@@ -0,0 +1,45 @@
1
+ <script setup>
2
+ import { onMounted, ref } from "vue";
3
+ import { useData } from "vitepress";
4
+
5
+ import { data as blogposts } from "../blogposts.data.js";
6
+
7
+ let { page } = useData();
8
+
9
+ let localContent = ref("");
10
+ let fetchedContent = ref("");
11
+
12
+ onMounted(async () => {
13
+ if (window.location.pathname === "/blog/preview") {
14
+ const urlParams = new URLSearchParams(window.location.search);
15
+ if (urlParams.has("url")) {
16
+ const response = await fetch(urlParams.get("url"));
17
+ fetchedContent.value = await response.text();
18
+ }
19
+ } else {
20
+ localContent.value = blogposts.find((n) =>
21
+ page.value.to.startsWith(n.url),
22
+ ).src;
23
+ }
24
+ });
25
+ </script>
26
+
27
+ <template>
28
+ <ClientOnly>
29
+ <eox-storytelling
30
+ .markdown="fetchedContent || localContent"
31
+ ></eox-storytelling>
32
+ </ClientOnly>
33
+ </template>
34
+
35
+ <style>
36
+ eox-storytelling {
37
+ --header-font-family: NotesESAbold, sans-serif;
38
+ --body-font-family: Arial, sans-serif;
39
+ margin: calc(var(--vp-nav-height) * -1) 0 var(--vp-nav-height) 0;
40
+ background: white;
41
+ --eox-color: var(--vp-c-black);
42
+ position: relative;
43
+ z-index: calc(var(--vp-z-index-local-nav) + 1);
44
+ }
45
+ </style>
Binary file
Binary file
Binary file
Binary file
package/src/helpers.js ADDED
@@ -0,0 +1,32 @@
1
+ export const applyShadowDomEventListener = (
2
+ elementTags,
3
+ eventType,
4
+ eventHandler,
5
+ ) => {
6
+ const findAnchorsInShadowRoots = (root) => {
7
+ const anchors = root.querySelectorAll("a");
8
+ const shadowRoots = [...root.querySelectorAll("*")].filter(
9
+ (el) => el.shadowRoot,
10
+ );
11
+ return [
12
+ ...anchors,
13
+ ...shadowRoots.flatMap((el) => findAnchorsInShadowRoots(el.shadowRoot)),
14
+ ];
15
+ };
16
+
17
+ elementTags.forEach((tagName) => {
18
+ document.querySelectorAll(tagName).forEach((element) => {
19
+ const anchors = element.shadowRoot
20
+ ? findAnchorsInShadowRoots(element.shadowRoot)
21
+ : [];
22
+
23
+ anchors.forEach((anchor) => {
24
+ anchor.addEventListener(eventType, (event) => {
25
+ event.preventDefault();
26
+ event.stopPropagation();
27
+ eventHandler(event, anchor);
28
+ });
29
+ });
30
+ });
31
+ });
32
+ };
package/src/index.js CHANGED
@@ -1,37 +1,48 @@
1
- import "./esa.css";
1
+ // https://vitepress.dev/guide/custom-theme
2
2
  import Layout from "./Layout.vue";
3
+ import BlogPost from "./components/BlogPost.vue";
4
+ import BlogGallery from "./components/BlogGallery.vue";
5
+ // import { data as blogposts } from "./blogposts.data.js";
6
+ import "./style.css";
3
7
 
8
+ /** @type {import('vitepress').Theme} */
4
9
  export default {
5
10
  Layout,
6
- async enhanceApp({ app }) {
11
+ async enhanceApp({ app, router, siteData }) {
12
+ app.component("blog", BlogPost);
13
+ app.component("BlogGallery", BlogGallery);
14
+ router.onBeforePageLoad = async (to) => {
15
+ if (!import.meta.env.SSR) {
16
+ if (to.includes("/blog/") && to !== "/blog/" && to !== "/blog/README") {
17
+ // console.log(router.route.data)
18
+ router.route.data = {
19
+ // content: blogposts.find((n) => to.startsWith(n.url)).src,
20
+ to,
21
+ frontmatter: {
22
+ layout: "blog",
23
+ },
24
+ };
25
+ return false;
26
+ }
27
+ }
28
+ return true;
29
+ };
30
+ router.onAfterRouteChanged = () => {
31
+ if (!import.meta.env.SSR) {
32
+ window.scrollTo(0, 0);
33
+ }
34
+ };
35
+
7
36
  if (!import.meta.env.SSR) {
8
- app.config.compilerOptions.isCustomElement = (tag) => tag.includes("-");
9
- const plugin1 = await import("@eox/esa-ui/components/header.js");
10
- app.use(plugin1);
11
- const plugin2 = await import("@eox/esa-ui/components/navbar.js");
12
- app.use(plugin2);
13
- const plugin3 = await import("@eox/esa-ui/components/footer.js");
14
- app.use(plugin3);
15
- const plugin4 = await import("@eox/esa-ui/components/menu.js");
16
- app.use(plugin4);
17
- const plugin5 = await import("@eox/esa-ui/components/cover.js");
18
- app.use(plugin5);
19
- const cta = await import("@eox/esa-ui/components/cta.js");
20
- app.use(cta);
21
- const plugin6 = await import("@eox/esa-ui/components/main-section.js");
22
- app.use(plugin6);
23
- const plugin7 = await import("@eox/esa-ui/components/cookies.js");
24
- app.use(plugin7);
25
- const plugin8 = await import("@eox/esa-ui/components/gateway.js");
26
- app.use(plugin8);
27
- const roadmap = await import("@eox/esa-ui/components/roadmap.js");
28
- app.use(roadmap);
29
- const capabilities = await import("@eox/esa-ui/components/capabilities.js");
30
- app.use(capabilities);
31
- const card = await import("@eox/esa-ui/components/card.js");
32
- app.use(card);
33
- const plugin9 = await import("@eox/esa-ui/css/main.css");
34
- app.use(plugin9);
37
+ app.use(await import("@eox/esa-ui/components/menu.js"));
38
+ app.use(await import("@eox/esa-ui/components/header.js"));
39
+ app.use(await import("@eox/esa-ui/components/navbar.js"));
40
+ app.use(await import("@eox/esa-ui/components/cover.js"));
41
+ app.use(await import("@eox/esa-ui/components/card.js"));
42
+ app.use(await import("@eox/esa-ui/components/gateway.js"));
43
+ app.use(await import("@eox/esa-ui/components/footer.js"));
44
+ app.use(await import("@eox/esa-ui/components/cookies.js"));
45
+ app.use(await import("@eox/storytelling/dist/eox-storytelling"));
35
46
  }
36
47
  },
37
48
  };
package/src/style.css ADDED
@@ -0,0 +1,230 @@
1
+ @font-face {
2
+ font-family: "NotesESAbold";
3
+ src: url("./fonts/notesesabol.ttf") format("truetype");
4
+ }
5
+ @font-face {
6
+ font-family: "NotesESAregular";
7
+ src:
8
+ url("./fonts/notesesareg.woff2") format("woff2"),
9
+ url("./fonts/notesesareg.ttf") format("truetype");
10
+ }
11
+ @font-face {
12
+ font-family: "NotesStyle";
13
+ src: url("./fonts/notesstyle.woff") format("woff");
14
+ }
15
+
16
+ :root {
17
+ --vp-c-white: #ffffff;
18
+ --vp-c-black: #101213;
19
+ --vp-font-family-base: Arial, sans-serif;
20
+ --vp-c-brand-1: #00b19d;
21
+ --vp-c-brand-2: #00b19d;
22
+ --vp-c-brand-3: #00b19d;
23
+ --vp-nav-height: 76px;
24
+ --vp-layout-top-height: 0px;
25
+ }
26
+
27
+ @media (min-width: 720px) {
28
+ :root {
29
+ --vp-nav-height: 92px;
30
+ }
31
+ }
32
+ @media (min-width: 1024px) {
33
+ :root {
34
+ --vp-nav-height: 92px;
35
+ }
36
+ }
37
+
38
+ .dark {
39
+ --vp-c-bg: #0b1d26;
40
+ --vp-c-bg-alt: #003247;
41
+ --vp-c-bg-elv: #0b1d26;
42
+ --vp-c-bg-soft: #003247;
43
+ }
44
+
45
+ html {
46
+ font-family: Arial, Helvetica;
47
+ }
48
+
49
+ body {
50
+ transition: opacity 0.3s ease-in-out;
51
+ background: #0b1d26;
52
+ }
53
+
54
+ body:not(.loaded) {
55
+ opacity: 0;
56
+ }
57
+
58
+ h1,
59
+ h2,
60
+ h3,
61
+ h4,
62
+ h5,
63
+ h6,
64
+ .VPNavBarTitle,
65
+ .VPButton,
66
+ .VPLink {
67
+ font-family: "NotesESAbold", sans-serif;
68
+ }
69
+
70
+ body {
71
+ margin: 0;
72
+ }
73
+
74
+ .VPNav,
75
+ .VPHero,
76
+ .VPHomeHero {
77
+ display: none;
78
+ }
79
+
80
+ .home .VPContent,
81
+ .page .VPContent,
82
+ .blog .VPContent {
83
+ padding-top: 0;
84
+ margin-top: 0;
85
+ }
86
+
87
+ .vp-doc.container {
88
+ padding: 0;
89
+ margin: 0;
90
+ max-width: unset;
91
+ }
92
+
93
+ section {
94
+ padding: 120px 24px;
95
+ }
96
+ @media (min-width: 640px) {
97
+ section {
98
+ padding: 120px 100px;
99
+ }
100
+ }
101
+ section.hero {
102
+ padding-top: calc(120px + var(--vp-nav-height));
103
+ }
104
+ section > * {
105
+ max-width: 1400px;
106
+ margin-left: auto !important;
107
+ margin-right: auto !important;
108
+ display: block;
109
+ }
110
+ section.white {
111
+ background: #fff;
112
+ color: var(--vp-c-black);
113
+ }
114
+ section.light-grey {
115
+ background: #f7f8f8;
116
+ color: var(--vp-c-black);
117
+ }
118
+ section.grey {
119
+ background: #8a969e;
120
+ color: var(--vp-c-white);
121
+ }
122
+ section.blue {
123
+ background: #0b1d26;
124
+ color: var(--vp-c-white);
125
+ }
126
+ section.dark-grey {
127
+ background: #202427;
128
+ color: var(--vp-c-white);
129
+ }
130
+
131
+ section h1 {
132
+ font-size: 3.5rem !important;
133
+ margin-bottom: 2.5rem !important;
134
+ line-height: 3.5625rem !important;
135
+ }
136
+ section h2 {
137
+ font-size: 2.5rem !important;
138
+ margin-bottom: 1.5rem !important;
139
+ line-height: 3rem !important;
140
+ border-top: none !important;
141
+ }
142
+ section h3 {
143
+ font-size: 1.875rem !important;
144
+ margin-bottom: 0.3125rem !important;
145
+ line-height: 2.5rem !important;
146
+ }
147
+ section > p {
148
+ font-size: 1.125rem !important;
149
+ margin-bottom: 1.5rem !important;
150
+ line-height: 1.75rem !important;
151
+ }
152
+
153
+ .two-column {
154
+ display: flex;
155
+ flex-direction: column;
156
+ gap: 40px;
157
+ }
158
+ .two-column h1,
159
+ .two-column h2,
160
+ .two-column h3,
161
+ .two-column h4,
162
+ .two-column h5,
163
+ .two-column h6 {
164
+ margin-top: 0;
165
+ }
166
+ @media (min-width: 640px) {
167
+ .two-column {
168
+ flex-direction: row;
169
+ }
170
+ }
171
+
172
+ /*
173
+ * CTA button
174
+ */
175
+ @keyframes cta-arrow {
176
+ 0%,
177
+ 100% {
178
+ transform: translateX(0);
179
+ }
180
+ 50% {
181
+ transform: translateX(50%);
182
+ }
183
+ }
184
+ .VPButton.cta {
185
+ display: inline-block;
186
+ text-decoration: none;
187
+ background-color: #fff;
188
+ color: #335e6f;
189
+ padding: 5px 71px 5px 30px !important;
190
+ border-radius: 2px !important;
191
+ transition: all 0.25s ease;
192
+ font-weight: 700;
193
+ font-family: "NotesESAbold", sans-serif;
194
+ font-size: 1rem !important;
195
+ line-height: 2.5rem !important;
196
+ text-transform: uppercase;
197
+ letter-spacing: 1.6px;
198
+ cursor: pointer;
199
+ height: 50px;
200
+ }
201
+ .VPButton.cta.primary {
202
+ background-color: #335e6f;
203
+ color: #fff;
204
+ }
205
+ .VPButton.cta:hover {
206
+ transform: translateY(-0.15rem);
207
+ color: #335e6f;
208
+ }
209
+ .VPButton.cta.primary:hover {
210
+ color: #fff;
211
+ }
212
+ .VPButton.cta:after {
213
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='10' viewBox='0 0 20 11.428'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23335e6f;%7D%3C/style%3E%3C/defs%3E%3Cg transform='translate(19380 17820)'%3E%3Cpath class='a' d='M13.885,128.157l-.316.316a.536.536,0,0,0,0,.758l3.747,3.725H.536a.536.536,0,0,0-.536.536v.446a.536.536,0,0,0,.536.536H17.316L13.57,138.2a.536.536,0,0,0,0,.758l.316.316a.536.536,0,0,0,.758,0l5.2-5.179a.536.536,0,0,0,0-.758l-5.2-5.179A.536.536,0,0,0,13.885,128.157Z' transform='translate(-19380 -17948)'/%3E%3C/g%3E%3C/svg%3E");
214
+ margin-left: 30px;
215
+ position: absolute;
216
+ }
217
+ .VPButton.cta.primary:after {
218
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='10' viewBox='0 0 20 11.428'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:white;%7D%3C/style%3E%3C/defs%3E%3Cg transform='translate(19380 17820)'%3E%3Cpath class='a' d='M13.885,128.157l-.316.316a.536.536,0,0,0,0,.758l3.747,3.725H.536a.536.536,0,0,0-.536.536v.446a.536.536,0,0,0,.536.536H17.316L13.57,138.2a.536.536,0,0,0,0,.758l.316.316a.536.536,0,0,0,.758,0l5.2-5.179a.536.536,0,0,0,0-.758l-5.2-5.179A.536.536,0,0,0,13.885,128.157Z' transform='translate(-19380 -17948)'/%3E%3C/g%3E%3C/svg%3E");
219
+ }
220
+ @media (min-width: 640px) {
221
+ .VPButton.cta {
222
+ padding: 5px 121px 5px 30px !important;
223
+ }
224
+ .VPButton.cta:after {
225
+ margin-left: 70px;
226
+ }
227
+ }
228
+ .VPButton.cta:hover:after {
229
+ animation: cta-arrow 1s ease-in-out infinite;
230
+ }
package/src/Home.vue DELETED
@@ -1,27 +0,0 @@
1
- <script setup>
2
- import { useData } from "vitepress";
3
- const { frontmatter, theme } = useData();
4
- </script>
5
-
6
- <template>
7
- <ClientOnly>
8
- <esa-cover
9
- :overline="frontmatter.hero.name"
10
- :underline="frontmatter.hero.underline"
11
- :title="frontmatter.hero.text"
12
- :background-image="frontmatter.hero.image.src"
13
- :cta="frontmatter.hero.cta"
14
- :cta-text="frontmatter.hero.cta?.text"
15
- :cta-link="frontmatter.hero.cta?.link"
16
- ></esa-cover>
17
- </ClientOnly>
18
- <main>
19
- <div class="container">
20
- <div class="l-row">
21
- <div class="l-col-10 l-col-lg-8 u-mx-auto">
22
- <Content />
23
- </div>
24
- </div>
25
- </div>
26
- </main>
27
- </template>
package/src/NotFound.vue DELETED
@@ -1,16 +0,0 @@
1
- <template>
2
- <main class="c-cover">
3
- <div class="l-container">
4
- <div class="l-row">
5
- <div
6
- class="l-col-12 l-col-sm-8 l-offset-sm-1 l-col-md-6 l-col-lg-8 l-offset-lg-2"
7
- >
8
- <h1 class="c-cover__heading u-mb-4">404 page not found.</h1>
9
- <p class="c-cover__subheading u-f-lg u-mb-0">
10
- Try something different. Maybe a search?
11
- </p>
12
- </div>
13
- </div>
14
- </div>
15
- </main>
16
- </template>
package/src/Page.vue DELETED
@@ -1,13 +0,0 @@
1
- <template>
2
- <main class="c-cover">
3
- <div class="l-container">
4
- <div class="l-row">
5
- <div
6
- class="l-col-12 l-col-sm-8 l-offset-sm-1 l-col-md-6 l-col-lg-8 l-offset-lg-2"
7
- >
8
- <Content />
9
- </div>
10
- </div>
11
- </div>
12
- </main>
13
- </template>
package/src/esa.css DELETED
@@ -1,118 +0,0 @@
1
- body {
2
- transition: opacity 0.3s ease-in-out !important;
3
- opacity: 0;
4
- }
5
- body.loaded {
6
- opacity: 1;
7
- }
8
-
9
- /* anchor tags*/
10
- .container a {
11
- all: unset;
12
- color: white;
13
- cursor: pointer;
14
- padding-bottom: 0.25rem;
15
- transition: all 0.5s ease;
16
- border-bottom: 0.2rem solid white;
17
- }
18
- .container a:hover {
19
- padding-bottom: 0.5rem;
20
- background: none;
21
- color: white;
22
- }
23
-
24
- /* highlight */
25
- .highlight {
26
- background: white;
27
- padding: 20px 40px 10px;
28
- box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
29
- margin: 4rem 0;
30
- }
31
- .highlight h3 {
32
- background: #00b19d;
33
- display: inline-flex;
34
- padding: 3px 5px;
35
- text-transform: uppercase;
36
- letter-spacing: 0.1rem;
37
- margin-bottom: 16px;
38
- }
39
- .highlight p,
40
- .highlight a,
41
- .highlight li {
42
- color: #003247;
43
- }
44
- .highlight a {
45
- border-bottom: 0.2rem solid #00ae9d;
46
- }
47
- .highlight a:hover {
48
- color: #00ae9d;
49
- }
50
- .highlight ul {
51
- padding: inherit;
52
- padding-top: 0;
53
- }
54
- .highlight li {
55
- list-style: unset;
56
- margin: 0;
57
- padding: 0;
58
- }
59
-
60
- .bg-light,
61
- .bg-white,
62
- .bg-grey {
63
- background: #e8e8e4;
64
- box-shadow: 0 0 0 100vmax #e8e8e4;
65
- clip-path: inset(0 -199vmax);
66
- padding: 6em 0;
67
- color: #003247;
68
- }
69
-
70
- .bg-white {
71
- background: #fff;
72
- box-shadow: 0 0 0 100vmax #fff;
73
- }
74
-
75
- .bg-grey {
76
- background: #8A969E;
77
- box-shadow: 0 0 0 100vmax #8A969E;
78
- color: #fff;
79
- }
80
-
81
- .bg-light h1,
82
- .bg-light h2,
83
- .bg-light h3,
84
- .bg-light h4,
85
- .bg-light h5,
86
- .bg-light p,
87
- .bg-light a,
88
- .bg-light a:hover,
89
- .bg-white h1,
90
- .bg-white h2,
91
- .bg-white h3,
92
- .bg-white h4,
93
- .bg-white h5,
94
- .bg-white p,
95
- .bg-white a,
96
- .bg-white a:hover {
97
- color: #003247;
98
- }
99
-
100
- .bg-grey h1,
101
- .bg-grey h2,
102
- .bg-grey h3,
103
- .bg-grey h4,
104
- .bg-grey h5,
105
- .bg-grey p,
106
- .bg-grey a,
107
- .bg-grey a:hover {
108
- color: #fff;
109
- }
110
-
111
- .bg-light a,
112
- .bg-white a {
113
- border-bottom: 0.2rem solid #003247;
114
- }
115
-
116
- .bg-grey a {
117
- border-bottom: 0.2rem solid #fff;
118
- }