Skip to content

Commit

Permalink
redraft home page
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Nov 3, 2024
1 parent aca3407 commit ee69bdf
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 35 deletions.
29 changes: 28 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,31 @@ html[data-theme='dark'] .header-github-link:before {

.menu--responsive .menu__button {
bottom: 90px;
}
}

.highlights-wrapper {
margin-left: auto;
margin-right: auto;

display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 2rem 0;
width: 100%;
}

.highlight-card {
flex: 1;
margin-left: 20px;
margin-right: 20px;
text-align: center;

margin-bottom: 20px;
padding-top: 12px;
text-align: center;
border: solid 1px #c0c0c0;
border-radius: 8px;
min-width: 300px;
max-width: 400px;
}
76 changes: 42 additions & 34 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ import Particles from 'react-particles';
import { loadFull } from 'tsparticles';
import styles from './styles.module.css';

const highlights = [
{
title: 'Job Writing Guide',
link: 'documentation/jobs/job-writing-guide',
description: 'Writing a job for OpenFn? Start here',
},
{
title: 'CLI Usage Examples',
link: 'documentation/cli-usage',
description: 'See what the CLI can do at a glance',
},
{
title: 'JavaScript Tips & Tricks',
link: 'documentation/cli-usage',
description: 'Level up your code',
},
];

const features = [
{
title: 'Docs',
Expand All @@ -31,40 +49,17 @@ const features = [
</>
),
},
{
title: 'Articles',
link: 'articles',
imageUrl: 'img/undraw_Portfolio_update_re_jqnp.svg',
description: (
<>
How to prepare for data integration? How to structure external IDs? How
to...
</>
),
},
{
title: 'Blog',
link: 'https://www.openfn.org/blog',
imageUrl: 'img/undraw_reading_time_gvg0.svg',
description: (
<>
We help the world's most promising social impact interventions achieve
scale through automation, data integration, and interoperability. These
are their stories.
</>
),
},
{
title: 'Enterprise',
link: 'https://www.openfn.org',
imageUrl: 'img/undraw_secure_server_s9u8.svg',
description: (
<>
Check out the enterprise-grade OpenFn integration-platform-as-a-service
(iPaaS), offering free-forever plans and affordable pathways to scale.
</>
),
},
// {
// title: 'Enterprise',
// link: 'https://www.openfn.org',
// imageUrl: 'img/undraw_secure_server_s9u8.svg',
// description: (
// <>
// Check out the enterprise-grade OpenFn integration-platform-as-a-service
// (iPaaS), offering free-forever plans and affordable pathways to scale.
// </>
// ),
// },
];

function Feature({ imageUrl, title, description, link }) {
Expand Down Expand Up @@ -293,6 +288,19 @@ function Home() {
</section>
)}
</main>
<div className="container" style={{ marginTop: '30px' }}>
<h1 style={{ textAlign: 'center' }}>✨Documentation Highlights✨</h1>
<div className="highlights-wrapper">
{highlights.map(h => (
<div className="highlight-card">
<h3>
<a href={h.link}>{h.title}</a>
</h3>
<p>{h.description}</p>
</div>
))}
</div>
</div>
</Layout>
);
}
Expand Down

0 comments on commit ee69bdf

Please sign in to comment.