Skip to content

Commit

Permalink
add styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gegyhamdani committed Mar 20, 2020
1 parent acec48b commit 0bae434
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Layout = ({ confirmed, recovered, death, updated }) => {
<Main>
<Container>
<Square1>
<Date style={{ fontSize: "1.2em" }}>{updated}</Date>
<Date style={{ fontSize: "1.1em" }}>Update Terakhir: {updated}</Date>
<Title>Data Terbaru Corona di Indonesia</Title>
<Information>
<Data>
Expand Down
12 changes: 12 additions & 0 deletions src/components/Layout/styles.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import styled, { keyframes } from "styled-components";

const opacityFrame = keyframes`
from {
opacity: 0
}
to {
opacity: 1
}
`;

export const Main = styled.div`
animation: ${opacityFrame} 2s linear forwards;
background-color: #ffd300;
left: 0;
opacity: 0;
position: fixed;
top: 0;
width: 100vw;
Expand Down

1 comment on commit 0bae434

@vercel
Copy link

@vercel vercel bot commented on 0bae434 Mar 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.