Skip to content
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

feat(datatrak): RN-1501: Offline screen #6032

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Conversation

tcaiger
Copy link
Contributor

@tcaiger tcaiger commented Jan 6, 2025

Issue #: feat(datatrak): RN-1501: Offline screen

Changes:

  • Add offline screen template

Screenshots:

Screenshot 2025-01-06 at 1 13 14 PM
Screenshot 2025-01-06 at 1 12 07 PM

@@ -58,6 +59,7 @@ const AuthViewLoggedInRedirect = ({ children }) => {
export const Routes = () => {
return (
<RouterRoutes>
<Route path="/offline" element={<OfflinePage />} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure how the offline page will be used yet so I've just put it here

Copy link
Contributor

@jaskfla jaskfla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just nitpicks, but overall lgtm!

height: 100vh;
`;

const HeaderContainer = styled.div`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this semantically header?

Suggested change
const HeaderContainer = styled.div`
const HeaderContainer = styled.header`

align-items: center;
block-size: ${HEADER_HEIGHT};
padding: 0 1.5rem;
margin: 0 auto;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I’m not mistaken, margin-block is already 0. Best to set only what we need to override to clean up the cascade for debugging:

Suggested change
margin: 0 auto;
margin-inline: auto;

Comment on lines +46 to +47
width="100%"
height="100%"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if React has some special sauce, but if this is a plain ol’ vanilla <img>, then this must be a unitless integer. If my understanding is correct, these values as-is will be ignored

These are the intrinsic dimensions from the file:

Suggested change
width="100%"
height="100%"
width={84}
height={42}

align-items: center;
justify-content: center;
text-align: center;
padding: 1rem 1.5rem 1rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
padding: 1rem 1.5rem 1rem;
padding-block: 1rem;
padding-inline: 1.5rem;

Comment on lines +77 to +82
margin-block-end: 3%;
`;

const Text = styled(Typography)`
font-size: 1rem;
margin-block-end: 5%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly concerned about these percentage values behaving unpredictably. Perhaps something like clamp() might communicate our designed intent more clearly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants