Repository navigation
feat: add a minimal landing page and refresh the docs styling #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,3 +6,4 @@ build | |
| *.log | ||
| .DS_Store | ||
| scripts/screenshots/.output | ||
| .taste-skill | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| .main { | ||
| max-width: 1100px; | ||
| margin: 0 auto; | ||
| padding: 4rem 1.25rem 5rem; | ||
| } | ||
|
|
||
| .hero { | ||
| max-width: 44rem; | ||
| margin-bottom: 3rem; | ||
| } | ||
|
|
||
| .title { | ||
| font-size: clamp(2.25rem, 5vw, 3.75rem); | ||
| line-height: 1.05; | ||
| letter-spacing: -0.03em; | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .lede { | ||
| font-size: 1.25rem; | ||
| line-height: 1.5; | ||
| margin-bottom: 1.75rem; | ||
| } | ||
|
|
||
| .actions { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| gap: 0.75rem; | ||
| } | ||
|
|
||
| .shot { | ||
| display: block; | ||
| width: 100%; | ||
| height: auto; | ||
| border-radius: var(--ifm-global-radius); | ||
| background: var(--ifm-color-emphasis-100); | ||
| } | ||
|
|
||
| .points { | ||
| display: grid; | ||
| grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
| gap: 2rem; | ||
| margin-top: 3rem; | ||
| } | ||
|
|
||
| .pointTitle { | ||
| font-size: 1.25rem; | ||
| margin-bottom: 0.5rem; | ||
| } | ||
|
|
||
| @media (max-width: 800px) { | ||
| .main { | ||
| padding-top: 2.5rem; | ||
| } | ||
|
|
||
| .points { | ||
| grid-template-columns: 1fr; | ||
| gap: 1.5rem; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| import React from 'react'; | ||
| import Link from '@docusaurus/Link'; | ||
| import useBaseUrl from '@docusaurus/useBaseUrl'; | ||
| import Layout from '@theme/Layout'; | ||
| import styles from './index.module.css'; | ||
|
|
||
| const POINTS = [ | ||
| { | ||
| title: 'See rules run as you type', | ||
| text: 'Fields hide, show, become mandatory or receive values, and each one shows a badge for the last effect a rule had on it.', | ||
| }, | ||
| { | ||
| title: 'Know why a rule fired', | ||
| text: 'The Rules, Trace and Graph tabs show which rules apply, how each was evaluated and which fields they read and change.', | ||
| }, | ||
| { | ||
| title: 'Check against the server', | ||
| text: 'Verify with server runs a dry run of your values on your DHIS2 server. The app supports DHIS2 2.40 to 2.43.', | ||
| }, | ||
| ]; | ||
|
|
||
| export default function Home(): React.JSX.Element { | ||
| const shot = useBaseUrl('/app-hub/01-event-form.png'); | ||
|
|
||
| return ( | ||
| <Layout | ||
| title="Test and debug DHIS2 program rules" | ||
| description="Program Rules Playground is an open-source DHIS2 app for testing and debugging program rules against your real metadata." | ||
| > | ||
| <main className={styles.main}> | ||
| <section className={styles.hero}> | ||
| <h1 className={styles.title}>Test and debug DHIS2 program rules</h1> | ||
| <p className={styles.lede}> | ||
| Program Rules Playground is an open-source DHIS2 app. Fill in a form against your real | ||
| metadata and watch the rules run. | ||
| </p> | ||
| <div className={styles.actions}> | ||
| <Link className="button button--primary button--lg" to="/getting-started/install"> | ||
| Get started | ||
| </Link> | ||
| <Link | ||
| className="button button--secondary button--lg" | ||
| to="/introduction/what-is-program-rules-playground" | ||
| > | ||
| What is it? | ||
| </Link> | ||
| </div> | ||
| </section> | ||
|
|
||
| <img | ||
| className={styles.shot} | ||
| src={shot} | ||
| width={1280} | ||
| height={800} | ||
| alt="An event form in Program Rules Playground with effect badges on the fields and the Rules panel listing the rules that fire." | ||
| /> | ||
|
|
||
| <section className={styles.points}> | ||
| {POINTS.map((point) => ( | ||
| <div key={point.title}> | ||
| <h2 className={styles.pointTitle}>{point.title}</h2> | ||
| <p>{point.text}</p> | ||
| </div> | ||
| ))} | ||
| </section> | ||
| </main> | ||
| </Layout> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore the safety warning for older app versions.
This unqualified promise also reaches installations of
0.1.0-alpha.0through0.1.0-alpha.9. The removed warning said those versions save real data. A reader could therefore use an older installation on production expecting a dry run. Scope the promise to versions where it is verified, and restore the older-version warning here and in the FAQ.As per coding guidelines, “Do not describe app behaviour you have not confirmed in the app or its repository. Leave a
TODO(verify)instead.”Source: Coding guidelines