Minor adjustments

This commit is contained in:
Nicholas Zuber 2019-03-31 22:44:44 -04:00
parent 8215891c53
commit 5f51778783
3 changed files with 38 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import meteoriteLogo from './icon-black.png'; import meteoriteLogo from './icon-gray.png';
export default function LoadingIcon ({ style, size, ...props }) { export default function LoadingIcon ({ style, size, ...props }) {
return ( return (
@ -7,6 +7,7 @@ export default function LoadingIcon ({ style, size, ...props }) {
background: `url(${meteoriteLogo}) center center no-repeat`, background: `url(${meteoriteLogo}) center center no-repeat`,
backgroundSize: 'contain', backgroundSize: 'contain',
position: 'relative', position: 'relative',
cursor: props.onClick ? 'pointer' : 'default',
height: size, height: size,
width: size, width: size,
...style ...style

View File

@ -37,11 +37,10 @@ function stringOfType (type) {
} }
function getPRIssueIcon (type, _reasons) { function getPRIssueIcon (type, _reasons) {
const scale = 1.5;
switch (type) { switch (type) {
case 'PullRequest': case 'PullRequest':
return ( return (
<NotificationIconWrapper> <NotificationIconWrapper css={css`background: #DBE7FF;`}>
<i className="fas fa-code-branch" css={css` <i className="fas fa-code-branch" css={css`
color: #4C84FF; color: #4C84FF;
font-size: 18px; font-size: 18px;
@ -50,8 +49,11 @@ function getPRIssueIcon (type, _reasons) {
); );
case 'Issue': case 'Issue':
return ( return (
<NotificationIconWrapper> <NotificationIconWrapper css={css`background: #47af4c24;`}>
<Icon.IssueOpen shrink={scale} /> <i className="fas fa-exclamation" css={css`
color: #47af4c;
font-size: 18px;
`}></i>
</NotificationIconWrapper> </NotificationIconWrapper>
); );
default: default:
@ -126,6 +128,14 @@ const loadingKeyframe = keyframes`
} }
`; `;
const Title = styled('h1')`
margin: 0;
font-size: 2rem;
line-height: 3rem;
font-weight: 500;
letter-spacing: -1.05px;
`;
const Container = styled('div')` const Container = styled('div')`
position: relative; position: relative;
display: block; display: block;
@ -184,7 +194,8 @@ const CardSection = styled('div')`
`; `;
const Card = styled('div')` const Card = styled('div')`
width: 298px; width: 250px;
padding: 20px 24px;
height: 100px; height: 100px;
margin: 32px auto 0; margin: 32px auto 0;
background: ${WHITE}; background: ${WHITE};
@ -193,6 +204,10 @@ const Card = styled('div')`
border-radius: 6px; border-radius: 6px;
`; `;
const CardTitle = styled(Title)`
font-size: 1.5em;
`;
const IconContainer = styled('div')` const IconContainer = styled('div')`
position: relative; position: relative;
height: 72px; height: 72px;
@ -259,14 +274,6 @@ const SubTitleSection = styled('div')`
} }
`; `;
const Title = styled('h1')`
margin: 0;
font-size: 2rem;
line-height: 3rem;
font-weight: 500;
letter-spacing: -1.05px;
`;
const UnorderedList = styled('ul')` const UnorderedList = styled('ul')`
position: relative; position: relative;
width: 100%; width: 100%;
@ -604,7 +611,6 @@ const ProfilePicture = styled('img')`
`; `;
const NotificationIconWrapper = styled('div')` const NotificationIconWrapper = styled('div')`
background: #DBE7FF;
width: 48px; width: 48px;
height: 48px; height: 48px;
display: flex; display: flex;
@ -710,6 +716,7 @@ function SortingItem ({children, selected, onChange, descending, setDescending,
export default function Scene ({ export default function Scene ({
notifications, notifications,
notificationsPermission, notificationsPermission,
currentTime,
highestScore, highestScore,
lowestScore, lowestScore,
hasUnread, hasUnread,
@ -814,11 +821,18 @@ export default function Scene ({
}} />} }} />}
</SearchField> </SearchField>
<Logo <Logo
style={{left: '50%', marginLeft: -18, position: 'absolute', opacity: 0.25}} css={css`
onClick={() => { position: absolute !important;
window.scrollTo(0, 0); left: 50%;
}} margin-left: -18px;
size={36} opacity: 0.5;
transition: all 200ms ease;
&:hover {
opacity: 0.75;
}
`}
onClick={() => window.scrollTo(0, 0)}
size={32}
/> />
{user && ( {user && (
<ProfileContainer> <ProfileContainer>
@ -864,7 +878,9 @@ export default function Scene ({
</MenuContainerItem> </MenuContainerItem>
<ContentItem> <ContentItem>
<CardSection> <CardSection>
<Card /> <Card>
<CardTitle>{currentTime.format('dddd, MMMM Do')}</CardTitle>
</Card>
<Card /> <Card />
</CardSection> </CardSection>
<NotificationsSection> <NotificationsSection>