This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1f7054
commit c93c1b4
Showing
2 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
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,74 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import Icon from './icon' | ||
|
||
const Main = styled.main` | ||
position: relative; | ||
.skeleton { | ||
position: fixed; | ||
top: 3.5rem; | ||
left: 1.25rem; | ||
width: 232px; | ||
max-width: 100vw; | ||
} | ||
.dotted-lines { | ||
position: absolute; | ||
top: .25rem; | ||
right: 5.5rem; | ||
width: 17rem; | ||
z-index: 3; | ||
} | ||
.create-new-dat, | ||
.link { | ||
position: absolute; | ||
width: 15rem; | ||
color: var(--color-neutral-30); | ||
svg { | ||
display: inline-block; | ||
width: 2rem; | ||
height: 2rem; | ||
} | ||
} | ||
.create-new-dat { | ||
top: 14.5rem; | ||
right: 4rem; | ||
} | ||
.link { | ||
top: 6rem; | ||
right: 8.5rem; | ||
svg { | ||
margin-bottom: -.75rem; | ||
} | ||
} | ||
` | ||
|
||
const Empty = () => ( | ||
<Main> | ||
<img src="./assets/table-skeleton.svg" alt="" className="skeleton" /> | ||
<div className="tutorial"> | ||
<img src="./assets/dotted-lines.svg" alt="" className="dotted-lines" /> | ||
<div className="link"> | ||
<Icon name="link" /> | ||
<h3 className="f4 ttu mt0 mb0"> | ||
Download A Dat | ||
</h3> | ||
<p className="f7"> | ||
… and keep data up-to-date | ||
<br /> | ||
by entering the link here. | ||
</p> | ||
</div> | ||
<div className="tr create-new-dat"> | ||
<Icon name="create-new-dat" /> | ||
<h3 className="f4 ttu mt0 mb0">Share a Folder</h3> | ||
<p className="f7"> | ||
… and sync changes by sharing | ||
<br /> | ||
the link with someone else. | ||
</p> | ||
</div> | ||
</div> | ||
</Main> | ||
) | ||
|
||
export default Empty |
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