Skip to content

Commit a0c5139

Browse files
Merge pull request #22 from educates/develop
Reworked style and changed featuredContent
2 parents ce24466 + 413fea9 commit a0c5139

4 files changed

Lines changed: 25 additions & 79 deletions

File tree

src/css/custom.css

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #2e8555;
10-
--ifm-color-primary-dark: #29784c;
11-
--ifm-color-primary-darker: #277148;
12-
--ifm-color-primary-darkest: #205d3b;
13-
--ifm-color-primary-light: #33925d;
14-
--ifm-color-primary-lighter: #359962;
15-
--ifm-color-primary-lightest: #3cad6e;
9+
--ifm-color-primary: #2e63a3;
10+
--ifm-color-primary-dark: #29569A;
11+
--ifm-color-primary-darker: #274981;
12+
--ifm-color-primary-darkest: #203c66;
13+
--ifm-color-primary-light: #3370b4;
14+
--ifm-color-primary-lighter: #3577c1;
15+
--ifm-color-primary-lightest: #3C8BBC;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
--primary: #ff6a3e;
@@ -197,7 +197,9 @@
197197
margin: 2rem auto 0 auto;
198198
border-radius: 2rem;
199199
box-shadow: 0 4px 32px rgba(0,0,0,0.10);
200-
background: #fff;
200+
background: rgba(203, 225, 240, 0.4); /* 60% transparent var(--color-odd) */
201+
backdrop-filter: blur(10px);
202+
-webkit-backdrop-filter: blur(10px);
201203
left: 0;
202204
right: 0;
203205
position: sticky;
@@ -217,24 +219,6 @@
217219
box-shadow: 0 4px 32px rgba(0,0,0,0.30);
218220
}
219221

220-
body::before {
221-
content: "";
222-
display: block;
223-
position: fixed;
224-
top: 0;
225-
left: 0;
226-
width: 100vw;
227-
height: 7rem; /* Adjust height to cover navbar + margin */
228-
background: var(--color-odd);
229-
z-index: 99;
230-
pointer-events: none;
231-
opacity: 1;
232-
transition: opacity 0.3s;
233-
}
234-
body.navbar-bg-transparent::before {
235-
opacity: 0;
236-
}
237-
238222
.menu__link,
239223
.dropdown__link,
240224
.navbar__item:not(.navbar-login-button) {

src/data/featuredContent.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { FeaturedCardData } from "../components/sections/FeaturedContent";
22

33
const featuredCards: FeaturedCardData[] = [
4+
{
5+
image: '/img/logo.svg',
6+
title: 'Educates is now independent',
7+
description: 'The Educates Training Platform is is now available as an Open Source independent product. Learn more about it here.',
8+
ctaLabel: 'Read blog',
9+
ctaHref: '/blog/educates-independent',
10+
},
411
{
512
image: '/img/featured-content/working_locally.jpeg',
613
title: 'How to best work locally',
@@ -15,12 +22,12 @@ const featuredCards: FeaturedCardData[] = [
1522
ctaLabel: 'Read blog',
1623
ctaHref: '/blog/install-educates-cloud-cli',
1724
},
18-
{
19-
image: '/img/featured-content/cloud.jpeg',
20-
title: 'Installing Educates on a cloud provider (Part 2)',
21-
description: 'Verification of the installation of Educates Training Platform on a cloud provider including verification of the platform components and deploy and verify a training portal and workshop',
22-
ctaLabel: 'Read blog',
23-
ctaHref: '/blog/verify-educates-cloud-install',
24-
},
25+
// {
26+
// image: '/img/featured-content/cloud.jpeg',
27+
// title: 'Installing Educates on a cloud provider (Part 2)',
28+
// description: 'Verification of the installation of Educates Training Platform on a cloud provider including verification of the platform components and deploy and verify a training portal and workshop',
29+
// ctaLabel: 'Read blog',
30+
// ctaHref: '/blog/verify-educates-cloud-install',
31+
// },
2532
];
2633
export default featuredCards;

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import FeaturedContent from '../components/sections/FeaturedContent';
1111
import featuredCards from '../data/featuredContent';
1212
export default function Home(): JSX.Element {
1313
const { siteConfig } = useDocusaurusContext();
14-
var index = 0;
14+
var index = 1;
1515

1616
function getSectionType(index: number) {
1717
return index % 2 === 0 ? 'odd' : 'even';

src/theme/Layout.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)