Skip to content

Commit

Permalink
Add download demo (#444)
Browse files Browse the repository at this point in the history
* feat (greeting): Add download demo realm link

* feat (Greeting): Add url for download the demo Realm file

* refactor (Greeting): Move Link styles to global styles
  • Loading branch information
IvanCoronado authored and kraenhansen committed Nov 23, 2017
1 parent f52def5 commit 90b1d82
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/greeting/Greeting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ $history-panel-icon-size: 20px;
margin: $spacer / 4;
}

&__DownloadDemo {
margin-top: $spacer / 2;
font-size: .7rem;
}

&__HistoryPanel {
background: $color-charcoal;
color: $color-dove;
Expand Down
9 changes: 9 additions & 0 deletions src/ui/greeting/Greeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ export const Greeting = ({
Connect to Realm Object Server
</Button>
</div>
<div className="Greeting__DownloadDemo">
<span>New to realm? </span>
<a
href="https://static.realm.io/downloads/realm-studio/demo.realm"
className="Link"
>
Download a demo Realm file
</a>
</div>
</div>
<HistoryPanelContainer />
<SignupOverlayContainer />
Expand Down
6 changes: 6 additions & 0 deletions styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ body,
height: 100%;
}

.Link {
color: $brand-primary;
cursor: pointer;
text-decoration: underline;
}

@import "./form-controls";

0 comments on commit 90b1d82

Please sign in to comment.