generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 5
styling cleanup and remove lingering focus state on homepage button #650
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
Open
interim17
wants to merge
2
commits into
feature/homepage
Choose a base branch
from
feature/hp-spacing
base: feature/homepage
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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 |
|---|---|---|
|
|
@@ -15,3 +15,6 @@ | |
| padding: 16px 16px 6px 16px; | ||
| } | ||
|
|
||
| .header-spacing { | ||
| margin-bottom: 16px; | ||
| } | ||
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,3 @@ | ||
| .header-spacing { | ||
| margin-bottom: 16px; | ||
| } | ||
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 |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| import * as React from "react"; | ||
| import { Link } from "react-router-dom"; | ||
| import { Typography } from "antd"; | ||
| import classNames from "classnames"; | ||
| import dragDropImage from "../../assets/drag-drop.gif"; | ||
| import { VIEWER_PATHNAME } from "../../routes"; | ||
| import { SUPPORTED_ENGINES, DOWNLOAD_URL } from "../../constants"; | ||
|
|
@@ -11,14 +12,14 @@ import styles from "./style.css"; | |
| const { Text } = Typography; | ||
| const TutorialPage = (): JSX.Element => { | ||
| return ( | ||
| <ContentPage> | ||
| <ContentPage contactPanelIsDark={true}> | ||
| <ContentPagePanel> | ||
| <h1>Getting Started with Simularium</h1> | ||
| <p> | ||
| <h3> | ||
| To get started with the{" "} | ||
| <Link to={VIEWER_PATHNAME}>Simularium Viewer</Link>, either | ||
| download example data or convert your own data. | ||
| </p> | ||
| </h3> | ||
|
Comment on lines
+18
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally use the h1 > h2 > h3 page layout hierarchy |
||
| </ContentPagePanel> | ||
| <ContentPagePanel isDark={true}> | ||
| <ul className={styles.list}> | ||
|
|
@@ -107,7 +108,7 @@ const TutorialPage = (): JSX.Element => { | |
| </li> | ||
| <li> | ||
| We support the following simulators: | ||
| <ul> | ||
| <ul className={styles.disc}> | ||
| {SUPPORTED_ENGINES.map( | ||
| (engine: string[]) => { | ||
| const [name, url] = engine; | ||
|
|
@@ -132,7 +133,7 @@ const TutorialPage = (): JSX.Element => { | |
| If you used one of our supported simulators | ||
| to generate your data, choose the notebook | ||
| for that simulator: | ||
| <ul> | ||
| <ul className={styles.disc}> | ||
| {SUPPORTED_ENGINES.map( | ||
| (engine: string[]) => { | ||
| const name = engine[0]; | ||
|
|
@@ -228,7 +229,7 @@ const TutorialPage = (): JSX.Element => { | |
| dialog, provide the URL to your Simularium file and | ||
| choose Load. | ||
| </li> | ||
| <ul> | ||
| <ul className={styles.disc}> | ||
| <li> | ||
| If your file uses geometry files, like .obj or | ||
| .pdb files, make sure you've provided the | ||
|
|
@@ -246,24 +247,20 @@ const TutorialPage = (): JSX.Element => { | |
| </ul> | ||
| </ContentPagePanel> | ||
| <ContentPagePanel> | ||
| <ul className={styles.list}> | ||
| <h3 className={styles.listHeader}>Browser support</h3> | ||
| <ul className={styles.disc}> | ||
| <li> | ||
| Currently, Simularium supports Chrome, Safari, Edge, | ||
| and Firefox. Some features may not work on other | ||
| browsers. | ||
| </li> | ||
| <li> | ||
| If using Safari on a Mac, please enable WebGL 2.0 by | ||
| choosing Develop > Experimental Features and | ||
| enabling "WebGL 2.0" (If you do not have a | ||
| Develop menu in your menu bar, first choose Safari | ||
| > Preferences > Advanced and enable "Show | ||
| Develop menu in menu bar".) Then reload the | ||
| viewer. | ||
| </li> | ||
| </ul> | ||
| <h2 className={styles.headerSpacing}>Browser support</h2> | ||
| <ul className={classNames(styles.disc, styles.list)}> | ||
| <li> | ||
| Currently, Simularium supports Chrome, Safari, Edge, and | ||
| Firefox. Some features may not work on other browsers. | ||
| </li> | ||
| <li> | ||
| If using Safari on a Mac, please enable WebGL 2.0 by | ||
| choosing Develop > Experimental Features and enabling | ||
| "WebGL 2.0" (if you do not have a Develop menu | ||
| in your menu bar, first choose Safari > Preferences | ||
| > Advanced and enable "Show Develop menu in menu | ||
| bar"). Then reload the viewer. | ||
| </li> | ||
| </ul> | ||
| </ContentPagePanel> | ||
| </ContentPage> | ||
|
|
||
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
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.
If this class is being used in multiple places, can you define it once in a global stylesheet and import it wherever it's being used?
https://developer.mozilla.org/en-US/docs/Web/CSS/@import