Skip to content

Commit

Permalink
fix(web-app): fix page not found vertical spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
francinelucca committed Mar 6, 2024
1 parent 0f93ea5 commit 655e8d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions services/web-app/components/page-not-found/page-not-found.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
import { Button, Column, Grid } from '@carbon/react'
import { ArrowRight } from '@carbon/react/icons'
import { H1 } from '@carbon-platform/mdx-components'
import { useEffect, useState } from 'react'

import { useAuth } from '@/contexts/auth'
Expand All @@ -26,15 +27,16 @@ export const PageNotFound = () => {
return (
<Grid className={styles.grid}>
<Column className={styles.column} sm={4} md={8} lg={6}>
<h1 className={styles.title}>Page not found.</h1>
<H1 headingClassName={styles.title} className={styles['h1-container']}>
Page not found.
</H1>
{!isAuthorized && (
<>
<h2 className={styles.title}>Log in to view all pages.</h2>
<Grid>
<Column sm={4}>
<Button className={styles.button} as="a" href="/api/login">
<Button className={styles.button} as="a" href="/api/login" renderIcon={ArrowRight}>
Log in
<ArrowRight size={16} />
</Button>
</Column>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

@use '@carbon/react/scss/breakpoint' as breakpoint;
@use '@carbon/react/scss/spacing' as spacing;
@use '@carbon/react/scss/type' as type;

Expand All @@ -17,3 +18,12 @@
margin-top: spacing.$spacing-10;
}
}

// override carbon max-width and padding-right
.button {
margin-top: spacing.$spacing-07;

@include breakpoint.breakpoint('md') {
margin-top: spacing.$spacing-10;
}
}

0 comments on commit 655e8d3

Please sign in to comment.