-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: requests page setup + banner (#1783)
- Loading branch information
Showing
14 changed files
with
218 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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,27 @@ | ||
import React from 'react'; | ||
import type { FC } from 'react'; | ||
import { Heading } from '@digdir/design-system-react'; | ||
import SC from './styled'; | ||
|
||
import EllipseSVG from './svg/ellipse-1.svg'; | ||
import RectangleSVG from './svg/rectangle-1.svg'; | ||
|
||
interface Props { | ||
title: string; | ||
} | ||
|
||
const Banner: FC<Props> = ({ title }) => ( | ||
<SC.Container> | ||
<SC.SvgEllipse> | ||
<EllipseSVG /> | ||
</SC.SvgEllipse> | ||
<SC.TitleContainer> | ||
<Heading size='xlarge'>{title}</Heading> | ||
</SC.TitleContainer> | ||
<SC.SvgRectangle> | ||
<RectangleSVG /> | ||
</SC.SvgRectangle> | ||
</SC.Container> | ||
); | ||
|
||
export default Banner; |
This file contains 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,63 @@ | ||
import styled from 'styled-components'; | ||
|
||
const Container = styled.div` | ||
position: relative; | ||
display: flex; | ||
width: 100%; | ||
align-items: flex-start; | ||
color: #2d3741; | ||
background-color: #ffffff; | ||
overflow-wrap: break-word; | ||
height: 160px; | ||
`; | ||
|
||
const TitleContainer = styled.div` | ||
display: flex; | ||
width: 100%; | ||
overflow-wrap: break-word; | ||
flex-grow: 1; | ||
align-self: center; | ||
justify-content: center; | ||
`; | ||
|
||
const SvgEllipse = styled.div` | ||
position: absolute; | ||
padding-top: 1.6rem; | ||
@media screen and (max-width: 600px) { | ||
.svgEllipse { | ||
display: none; | ||
} | ||
} | ||
@media (max-width: 1620px) { | ||
.svgEllipse { | ||
position: relative; | ||
} | ||
`; | ||
|
||
const SvgRectangle = styled.div` | ||
position: absolute; | ||
right: 100px; | ||
padding-bottom: 1.6rem; | ||
@media screen and (max-width: 940px) { | ||
.svgRectangle { | ||
display: none; | ||
} | ||
} | ||
@media screen and (max-width: 940px) { | ||
.svgRectangle { | ||
display: none; | ||
position: relative; | ||
} | ||
} | ||
`; | ||
|
||
export default { | ||
SvgRectangle, | ||
SvgEllipse, | ||
Container, | ||
TitleContainer | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 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 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 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,10 @@ | ||
import React from 'react'; | ||
import Banner from '../../components/banner'; | ||
import localization from '../../lib/localization'; | ||
|
||
const RequestsPage = () => ( | ||
<main id='content' className='container'> | ||
<Banner title={localization.page.requests} /> | ||
</main> | ||
); | ||
export default RequestsPage; |
This file contains 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 @@ | ||
export default {}; |
This file contains 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