Skip to content

Commit

Permalink
feat: updated styling of the demo theme
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Dec 4, 2024
1 parent adf747e commit c787ff5
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 6 deletions.
6 changes: 6 additions & 0 deletions themes/demo/public/assets/img/logos/logo-esa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions themes/demo/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta id="meta-description" name="description" content="">
<!-- <script defer="defer" src="/config.js"></script> -->
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but STAC Browser doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<header class="top-header">
<div class="container d-flex justify-content-between align-items-center">
<div><a href="/" target="_blank" rel="noopener noreffer" class="esa-link">The European Space Agency</a> </div> <img src="/assets/img/logos/logo-esa.svg" alt="esa-logo">
</div>
</header>
<div id="stac-browser"></div>
</body>
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 6 additions & 2 deletions themes/demo/src/theme/components/_browser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $border-radius: 10px;

h1, h2, h3, h4, h5, h6 {
&:not(.popover-header) {
color: var(--white);
color: var(--darkblue);
}
}

Expand All @@ -24,6 +24,10 @@ $border-radius: 10px;
h1 {
display: none;
}

.lead {
color: var(--darkblue);
}
}


Expand Down Expand Up @@ -78,7 +82,7 @@ $border-radius: 10px;

.expandable-card {
.card-body {
background-color: var(--greylight) !important;
background-color: var(--white) !important;
}
}

Expand Down
14 changes: 14 additions & 0 deletions themes/demo/src/theme/components/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.top-header {
background-color: var(--darkblue);
height: 70px;
> * {
height: 100%;
}

.esa-link {
color: white;
text-decoration: none;
text-transform: uppercase;
font-weight: 600;
}
}
4 changes: 4 additions & 0 deletions themes/demo/src/theme/components/_page.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body, h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family);
}

2 changes: 2 additions & 0 deletions themes/demo/src/theme/custom.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import "components/browser";
@import "components/header";
@import "components/page";
24 changes: 20 additions & 4 deletions themes/demo/src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ $logo-image: 'https://raw.githubusercontent.com/radiantearth/stac-site/master/im
$logo-image-height: 100px;

// Background and text default colors
$body-bg: #264653;
$body-color: #ffffff;
$body-bg: var(--greylight);
$body-color: var(--darkblue);

// Colors
$theme-colors: (
"primary": #2a9d8f,
"primary": #003247,
"secondary": #FFFFFF,
"success": #28a745,
"info": #09B3AD,
Expand Down Expand Up @@ -92,7 +92,7 @@ $h3-font-size: 1.4rem;
$h4-font-size: 1.2rem;

// Heading color
$headings-color: null;
$headings-color: var(--darkblue);

// Links
$link-color: map-get($theme-colors, "primary");
Expand All @@ -111,3 +111,19 @@ $border-radius: 0.25rem;

// Max. icon size
$max-icon-size: 32px;

@font-face {
font-display: swap;
font-family: "ESANotes";
font-style: normal;
font-weight: 400;
src: url("@/theme/assets/fonts/NotesEsaReg.otf")
}

@font-face {
font-display: swap;
font-family: "ESANotes";
font-style: normal;
font-weight: 800;
src: url("@/theme/assets/fonts/NotesEsaBol.otf")
}

0 comments on commit c787ff5

Please sign in to comment.