Skip to content

Commit

Permalink
Merge pull request #18 from polkadot-cloud/rb-update-header-icon
Browse files Browse the repository at this point in the history
feat: Update header
  • Loading branch information
rossbulat authored Jul 30, 2024
2 parents b191e60 + 785348e commit 9978d20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
21 changes: 9 additions & 12 deletions src/library/Header/Wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ export const HeaderWrapper = styled.div`
&:first-child {
> h1 {
font-family: InterBold, sans-serif;
font-size: 0.72rem;
text-transform: uppercase;
color: var(--accent-color-primary);
display: flex;
align-items: center;
> a {
font-family: InterBold, sans-serif;
font-size: 0.72rem;
text-transform: uppercase;
color: #881cbc;
}
}
> span {
Expand All @@ -36,14 +41,6 @@ export const HeaderWrapper = styled.div`
height: 100%;
}
}
> .version {
color: var(--text-color-primary);
font-family: InterSemiBold, sans-serif;
margin-left: 0.35rem;
margin-right: 0.5rem;
font-size: 0.7rem;
opacity: 0.75;
}
}
&:last-child {
Expand Down
8 changes: 2 additions & 6 deletions src/library/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@
import { faGithub } from '@fortawesome/free-brands-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { GithubRepoUrl } from 'consts';
import IconSvg from 'svg/Cloud.svg?react';
import IconSvg from 'svg/Icon.svg?react';
import { HeaderWrapper } from './Wrapper';
import { version } from '../../../package.json';
import { Link } from 'react-router-dom';

export const Header = () => (
<HeaderWrapper>
<div>
<span
style={{ width: '1.1rem', height: '1.1rem', marginRight: '0.4rem' }}
>
<span style={{ width: '1rem', height: '1rem', marginRight: '0.5rem' }}>
<IconSvg />
</span>
<h1>
<Link to="/">Polkadot Cloud Portal</Link>
</h1>
<span className="version">{version}</span>
</div>
<div>
<button type="button" onClick={() => window.open(GithubRepoUrl)}>
Expand Down
1 change: 1 addition & 0 deletions src/svg/Icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9978d20

Please sign in to comment.