Skip to content

Commit

Permalink
Add created by bn digital to header, fix container's height and heade…
Browse files Browse the repository at this point in the history
…r-text width
  • Loading branch information
MarynaPotiievska committed May 24, 2024
1 parent bc73c2f commit f8ea592
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
Binary file added src/assets/bn-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions src/components/header/Header.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.app-header {
position: relative;
height: 100vh;
padding: 200px 56px 0 64px;
background-color: #ffffff;
Expand All @@ -25,8 +26,28 @@
}

.header-text {
display: block;
max-width: 330px;
font-weight: 500;
color: #8d8d8f;
}
}

.rights {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
display: flex;
align-items: center;
gap: 7px;
padding: 31px 65px 30px 65px;

span {
font-family: "Inter Medium";
font-size: 14px;
line-height: 1.15;
color: #8d8d8f;
}
}
}
10 changes: 8 additions & 2 deletions src/components/header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Button, Layout, Typography } from "antd";
import logo from "../../assets/logo.png"
import bnLogo from "../../assets/bn-logo.png"
import './Header.scss'
import { useNavigate } from "react-router-dom";


const {Title, Text} = Typography
const Header = () => {
const navigate = useNavigate()
Expand All @@ -13,8 +15,12 @@ const Header = () => {
<img src={logo}/>
{'Mortgage Calculator'}</Button>
<Title level={1}>{'Find your refinance options'}</Title>
<Text className={'header-text'}>{'Mortgage refinancing is when you replace your current home loan with a new one.\n' +
'This is a demo of a form submission.'}</Text>
<Text className={'header-text'}>{'Mortgage refinancing is when you replace your current home loan with a new one.'}</Text>
<Text className={'header-text'}>{'This is a demo of a form submission.'}</Text>
</div>
<div className={'rights'}>
<Text>{'created by'}</Text>
<img src={bnLogo}/>
</div>
</Layout.Sider>
);
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.container {
max-width: 960px;
height: 100%;
height: fit-content;
margin: 0 auto;
padding: 200px 176px 100px 144px;
}
Expand Down

0 comments on commit f8ea592

Please sign in to comment.