Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 08ddf63

Browse files
authored
Merge pull request #46 from sdsc-ordes/feat/add-logos-and-links
Feat/add logos and links
2 parents c6584f4 + 74876a2 commit 08ddf63

10 files changed

Lines changed: 81 additions & 17 deletions

File tree

src/lib/components/Footer.svelte

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<script lang="ts">
2+
import { base } from '$app/paths';
3+
import { publicConfig } from '$lib/config';
4+
</script>
5+
<footer class="p-8 md:p-12 flex flex-col items-center gap-8 bg-surface-100 dark:bg-surface-800">
6+
<div class="flex flex-wrap justify-center items-center gap-10 md:gap-16">
7+
<a href="{publicConfig.PUBLIC_SWISSCAT_URL}" target="_blank" rel="noopener" class="opacity-75 hover:opacity-100 transition-opacity">
8+
<img
9+
src="{base}/catplus-logo.png"
10+
alt="CAT Plus at EPFL"
11+
class="h-14 w-auto"
12+
/>
13+
</a>
14+
<a href="{publicConfig.PUBLIC_SDSC_URL}" target="_blank" rel="noopener" class="opacity-75 hover:opacity-100 transition-opacity">
15+
<img
16+
src="{base}/logo-sdsc.png"
17+
alt="SDSC Swiss Data Science Center"
18+
class="h-14 w-auto"
19+
/>
20+
</a>
21+
</div>
22+
23+
<p class="text-sm text-surface-500 dark:text-surface-400">
24+
Chemboard 2025
25+
</p>
26+
27+
</footer>

src/lib/components/Header.svelte

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
11
<script lang="ts">
22
import { AppBar } from '@skeletonlabs/skeleton-svelte';
33
import { base } from '$app/paths';
4-
import Paperclip from '@lucide/svelte/icons/paperclip';
5-
import Calendar from '@lucide/svelte/icons/calendar';
64
import Home from '@lucide/svelte/icons/home';
75
import Database from '@lucide/svelte/icons/database';
8-
import CircleUser from '@lucide/svelte/icons/circle-user';
96
import Search from '@lucide/svelte/icons/search';
7+
import { publicConfig } from '$lib/config';
108
</script>
119

12-
<AppBar classes="flex items-left">
10+
<AppBar
11+
classes="flex items-left"
12+
gridColumns="grid-cols-3"
13+
slotLead="place-self-start"
14+
slotDefault="place-self-center"
15+
slotTrail="place-self-end"
16+
class="p-4"
17+
>
1318
{#snippet lead()}
1419
<a href="{base}/" class="flex items-center mx-4 gap-x-2"><Home size={20} />Home</a>
1520
<a href="{base}/search" class="flex items-center mx-4 gap-x-2"><Search size={20} />Search</a>
1621
<a href="{base}/data" class="flex items-center mx-4 gap-x-2"><Database size={20} />Data</a>
1722
{/snippet}
23+
<span class="text-2xl font-bold">HT Chemboard</span>
1824
{#snippet trail()}
19-
<Paperclip size={20} />
20-
<Calendar size={20} />
21-
<CircleUser size={20} />
25+
<a href="{publicConfig.PUBLIC_CHEMBOARD_GITHUB_URL}"
26+
target="_blank" rel="noopener" class="opacity-75 hover:opacity-100 transition-opacity">
27+
<img
28+
src="{base}/github-mark.png"
29+
alt="Github repository"
30+
class="h-10 w-auto"
31+
/>
32+
</a>
2233
{/snippet}
23-
<span>CAT+ Chemboard</span>
2434
</AppBar>

src/lib/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,19 @@ export const publicConfig = {
121121
PUBLIC_QLEVER_UI_URL: publicEnv.PUBLIC_QLEVER_UI_URL || process.env.PUBLIC_QLEVER_UI_URL,
122122
PUBLIC_CATPLUS_ONTOLOGY_URL: publicEnv.PUBLIC_CATPLUS_ONTOLOGY_URL || process.env.PUBLIC_CATPLUS_ONTOLOGY_URL,
123123
PUBLIC_RESULTS_PER_PAGE: parseInt(publicEnv.PUBLIC_RESULTS_PER_PAGE || process.env.PUBLIC_RESULTS_PER_PAGE),
124+
PUBLIC_SWISSCAT_URL: publicEnv.PUBLIC_SWISSCAT_URL || process.env.PUBLIC_SWISSCAT_URL,
125+
PUBLIC_SDSC_URL: publicEnv.PUBLIC_SDSC_URL || process.env.PUBLIC_SDSC_URL,
126+
PUBLIC_CHEMBOARD_GITHUB_URL: publicEnv.PUBLIC_CHEMBOARD_GITHUB_URL || process.env.PUBLIC_CHEMBOARD_GITHUB_URL,
124127
}
125128

126129
export function validatePublicConfiguration(): void {
127130
const requiredPaths = [
128131
'PUBLIC_QLEVER_UI_URL',
129132
'PUBLIC_CATPLUS_ONTOLOGY_URL',
130133
'PUBLIC_RESULTS_PER_PAGE',
134+
'PUBLIC_SWISSCAT_URL',
135+
'PUBLIC_SDSC_URL',
136+
'PUBLIC_CHEMBOARD_GITHUB_URL'
131137
];
132138

133139
const missingVars: string[] = [];

src/routes/+layout.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import '../app.css';
33
import Header from '$lib/components/Header.svelte';
4+
import Footer from '$lib/components/Footer.svelte';
45
56
let { children } = $props();
67
</script>
@@ -11,5 +12,5 @@
1112
<Header />
1213
</header>
1314
{@render children()}
14-
<footer class="p-4 text-center">Chemboard 2025</footer>
15+
<Footer />
1516
</div>

src/routes/+page.svelte

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
</script>
77

88
{#snippet sidebar()}
9-
<h1 class="mb-6 text-2xl font-bold text-surface-800-200">Cat Plus</h1>
109
<section class="space-y-4">
1110
<div class="card preset-filled-surface-100-900 w-full max-w-md p-4 text-center">
1211
<img
@@ -36,12 +35,13 @@
3635
{/snippet}
3736

3837
{#snippet main()}
39-
<h1 class="mb-6 p-4 text-2xl font-bold text-surface-800-200">An automated Catalysis Lab</h1>
40-
<h2 class="mb-6 p-4 text-xl font-bold"><a href="{base}/data" class="text-primary-500">Explore the data</a></h2>
38+
<div class="space-y-6">
39+
<h1 class="text-2xl font-bold text-surface-800-200">Cat+:An automated Catalysis Lab</h1>
40+
<h2 class="text-xl font-bold"><a href="{base}/data" class="text-primary-500">Explore the data</a></h2>
4141
<p>Explore the campaigns by year / month / day</p>
42-
<h2 class="mb-6 p-4 text-xl font-bold"><a href="{base}/search" class="text-primary-500">Search in the Campaigns</a></h2>
42+
<h2 class="text-xl font-bold"><a href="{base}/search" class="text-primary-500">Search in the Campaigns</a></h2>
4343
<p>You can search Campaigns by a variety of search criteria:</p>
44-
<ul class="mb-6 p-4 list-disc">
44+
<ul class="list-disc list-inside space-y-2">
4545
<li>Campaign Name</li>
4646
<li>Reaction Type</li>
4747
<li>Reaction Name</li>
@@ -50,7 +50,7 @@
5050
<li>SMILES</li>
5151
<li>Device</li>
5252
</ul>
53-
<h2 class="mb-6 p-4 text-xl font-bold">Search with Sparql</h2>
53+
<h2 class="text-xl font-bold">Search with Sparql</h2>
5454
<p class="leading-normal">
5555
You can use our
5656
<a
@@ -61,7 +61,9 @@
6161
<ExternalLink class="h-4 w-4" />
6262
<span class="ml-1">Sparql Endpoint</span>
6363
</a>
64-
to query the data directly via Sparql. See the
64+
to query the data directly via Sparql.
65+
</p>
66+
<p>See the
6567
<a
6668
href="{publicConfig.PUBLIC_CATPLUS_ONTOLOGY_URL}"
6769
target="_blank"
@@ -71,7 +73,7 @@
7173
<span class="ml-1">Catplus Ontology</span>
7274
</a> for more information on our data model.
7375
</p>
74-
76+
</div>
7577
{/snippet}
7678

7779
<ContentLayout {sidebar} {main} />

static/catplus-logo.png

26.7 KB
Loading

static/github-mark.png

6.24 KB
Loading

static/logo-sdsc.png

38 KB
Loading

tools/deploy/templates/configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ data:
1818
QLEVER_UI_URL: #@ data.values.app.qleverUiUrl
1919
CATPLUS_ONTOLOGY_URL: #@ data.values.app.catplusOntologyUrl
2020
RESULTS_PER_PAGE: #@ data.values.app.resultsPerPage
21+
SWISSCAT_URL: #@ data.values.app.swisscatUrl
22+
SDSC_URL: #@ data.values.app.sdscUrl
23+
CHEMBOARD_GITHUB_URL: #@ data.values.app.chemboardGithubUrl

tools/deploy/templates/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ spec:
5858
configMapKeyRef:
5959
name: #@ data.values.name + "-config"
6060
key: QLEVER_UI_URL
61+
- name: PUBLIC_SDSC_URL
62+
valueFrom:
63+
configMapKeyRef:
64+
name: #@ data.values.name + "-config"
65+
key: SDSC_URL
66+
- name: PUBLIC_SWISSCAT_URL
67+
valueFrom:
68+
configMapKeyRef:
69+
name: #@ data.values.name + "-config"
70+
key: SWISSCAT_URL
71+
- name: PUBLIC_CHEMBOARD_GITHUB_URL
72+
valueFrom:
73+
configMapKeyRef:
74+
name: #@ data.values.name + "-config"
75+
key: CHEMBOARD_GITHUB_URL
6176
- name: PUBLIC_CATPLUS_ONTOLOGY_URL
6277
valueFrom:
6378
configMapKeyRef:

0 commit comments

Comments
 (0)