@eox/pages-theme-esa 0.5.0 → 0.6.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-esa",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with ESA branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -106,6 +106,7 @@ onMounted(async () => {
106
106
  ></esa-menu>
107
107
  <esa-header></esa-header>
108
108
  <esa-navbar
109
+ :brand-logo="theme.logo"
109
110
  :brand-title="site.title"
110
111
  .menuItems="theme.nav.map((n) => ({ title: n.text, href: n.link }))"
111
112
  :enable-login="theme.login"
@@ -117,92 +118,57 @@ onMounted(async () => {
117
118
  <esa-cover
118
119
  :overline="frontmatter.title"
119
120
  :title="frontmatter.hero.text"
120
- :background-image="frontmatter.hero.image"
121
+ :background-image="frontmatter.hero.background"
121
122
  :underline="frontmatter.hero.tagline"
122
123
  :cta="frontmatter.hero.actions?.[0]"
123
124
  :cta-link="frontmatter.hero.actions?.[0]?.link"
124
125
  :cta-text="frontmatter.hero.actions?.[0]?.text"
126
+ :alt="frontmatter.hero.actions?.[1]"
127
+ :alt-link="frontmatter.hero.actions?.[1]?.link"
128
+ :alt-text="frontmatter.hero.actions?.[1]?.text"
129
+ :image="frontmatter.hero.image"
125
130
  ></esa-cover>
126
131
  </ClientOnly>
127
132
  </template>
128
133
  <template #layout-bottom>
129
134
  <ClientOnly>
130
- <esa-gateway
131
- .items="[
132
- {
133
- title: 'ESA Vision',
134
- links: [
135
+ <esa-footer
136
+ :small="theme.footer.small"
137
+ :title="theme.footer.title || 'Get in touch'"
138
+ :description="
139
+ theme.footer.description || `Contact ESA for more information`
140
+ "
141
+ :contact-link="theme.footer.contact || 'mailto:info@esa.int'"
142
+ .footerItems="
143
+ theme.footer.items || [
144
+ [
135
145
  {
136
- name: 'EO Science Strategy',
137
- href: 'https://doi.org/10.5281/zenodo.13819557',
146
+ href: 'https://www.esa.int/',
147
+ title: 'ESA Portal',
138
148
  },
139
- ],
140
- },
141
- {
142
- title: 'ESA EO Programme',
143
- links: [
144
149
  {
145
- name: 'Observing the Earth',
146
- href: 'https://www.esa.int/Applications/Observing_the_Earth',
150
+ href: 'https://www.esa.int/About_Us/Corporate_news',
151
+ title: 'About ESA',
147
152
  },
153
+ ],
154
+ [
148
155
  {
149
- name: 'Science for Society',
150
- href: 'https://eo4society.esa.int',
156
+ href: 'https://www.esa.int/Services/Terms_and_conditions',
157
+ title: 'Terms and Conditions',
151
158
  },
152
- ],
153
- },
154
- {
155
- title: 'Research at ESA',
156
- links: [
157
159
  {
158
- name: 'Earth System Science Hub',
159
- href: 'https://sciencehub.esa.int',
160
+ href: 'https://www.esa.int/Services/Cookies_notice',
161
+ title: 'Cookies Notice',
160
162
  },
161
163
  ],
162
- },
163
- {
164
- title: 'Opportunities',
165
- links: [
164
+ [
166
165
  {
167
- name: 'Network of Resources',
168
- href: 'https://nor-discover.org',
166
+ href: 'https://www.esa.int/Services/Privacy_notice',
167
+ title: 'Privacy Notice',
169
168
  },
170
169
  ],
171
- },
172
- ]"
173
- ></esa-gateway>
174
- <esa-footer
175
- title="Get in touch"
176
- description="Join ESA's initiative to ensure long-term preservation and accessibility of research data, code, and documentation for a global scientific community."
177
- contact-link="mailto:earth-code@esa.int"
178
- .footerItems="[
179
- [
180
- {
181
- href: 'https://www.esa.int/',
182
- title: 'ESA Portal',
183
- },
184
- {
185
- href: 'https://www.esa.int/About_Us/Corporate_news',
186
- title: 'About ESA',
187
- },
188
- ],
189
- [
190
- {
191
- href: 'https://www.esa.int/Services/Terms_and_conditions',
192
- title: 'Terms and Conditions',
193
- },
194
- {
195
- href: 'https://www.esa.int/Services/Cookies_notice',
196
- title: 'Cookies Notice',
197
- },
198
- ],
199
- [
200
- {
201
- href: 'https://www.esa.int/Services/Privacy_notice',
202
- title: 'Privacy Notice',
203
- },
204
- ],
205
- ]"
170
+ ]
171
+ "
206
172
  ></esa-footer>
207
173
  <esa-cookies
208
174
  link="https://www.esa.int/Services/Cookies_notice"
@@ -217,9 +183,12 @@ onMounted(async () => {
217
183
  esa-footer {
218
184
  padding: 0 24px;
219
185
  }
186
+ esa-footer[small] {
187
+ background: white;
188
+ }
220
189
  @media (min-width: 640px) {
221
190
  esa-footer {
222
- padding: 0 200px;
191
+ padding: 0 100px;
223
192
  }
224
193
  }
225
194
  </style>
package/src/style.css CHANGED
@@ -228,3 +228,6 @@ section > p {
228
228
  .VPButton.cta:hover:after {
229
229
  animation: cta-arrow 1s ease-in-out infinite;
230
230
  }
231
+ .VPFooter {
232
+ display: none;
233
+ }