This repository has been archived by the owner on Apr 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
6 changed files
with
129 additions
and
23 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,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Launch Chrome against 127.0.0.1", | ||
"url": "http://127.0.0.1:3000", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,61 @@ | ||
.extension-splash { | ||
width: 100%; | ||
|
||
background-color: var(--xlight-grey); | ||
box-sizing: border-box; | ||
font: var(--ui-basic-font); | ||
margin: 0; | ||
min-height: 100vh; | ||
padding: calc(var(--header-bar-height) + var(--lgrd)) 0 var(--lgrd); | ||
box-sizing: border-box; | ||
|
||
& .extension-splash__content { | ||
max-width: var(--middle-column-default-width); | ||
margin: 0 auto; | ||
background-color: white; | ||
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15); | ||
min-height: 100vh; | ||
padding: var(--mgrd) var(--xlgrd); | ||
box-sizing: border-box; | ||
position: relative; | ||
} | ||
|
||
& .extension-splash__screenshot { | ||
width: 100%; | ||
max-height: 500px; | ||
object-fit: scale-down; | ||
} | ||
|
||
& .extension-splash__body { | ||
font: var(--ui-basic-font--large); | ||
max-width: 800px; | ||
margin: 0 auto; | ||
} | ||
|
||
& .extension-splash__title { | ||
margin: var(--mgrd) 0 var(--lgrd) 0; | ||
font: var(--ui-header-font); | ||
text-align: center; | ||
} | ||
|
||
& .extension-splash__browser-list { | ||
display: flex; | ||
list-style: none; | ||
justify-content: center; | ||
} | ||
|
||
& .extension-splash__browser-list-item { | ||
text-align: center; | ||
margin: var(--sgrd); | ||
} | ||
& .extension-splash__install-button { | ||
} | ||
& .extension-splash__comming-soon { | ||
color: var(--ui-basic-font-color--light); | ||
padding: var(--xxsgrd); | ||
} | ||
|
||
& .extension-splash__request-browser { | ||
text-align: center; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,27 +1,58 @@ | ||
import React from 'react'; | ||
import HeaderBar from './header-bar'; | ||
import Button from './button'; | ||
import LabelStyle from './label-style'; | ||
|
||
export default function ExtensionSplash() { | ||
return ( | ||
<div className="extension-splash"> | ||
<HeaderBar /> | ||
<div className="extension-splash__content"> | ||
<h1 className="extension-splash__title"> | ||
Add Rapid PREreview to your browser | ||
</h1> | ||
|
||
<h1>Add Rapid PREreview to your browser</h1> | ||
<div className="extension-splash__body"> | ||
<p> | ||
The Outbreak Science Rapid PREreview app lets you read and add | ||
reviews (or requests for feedback) directly from the preprint sites | ||
you visit without having to navigate to the Rapid PREreview | ||
homepage. | ||
</p> | ||
<img | ||
src="images/extension-preview.png" | ||
className="extension-splash__screenshot" | ||
/> | ||
<ul className="extension-splash__browser-list"> | ||
<li className="extension-splash__browser-list-item"> | ||
<Button | ||
className="extension-splash__install-button" | ||
primary={true} | ||
> | ||
Install for Chrome | ||
</Button> | ||
</li> | ||
<li className="extension-splash__browser-list-item"> | ||
<Button | ||
className="extension-splash__install-button" | ||
primary={true} | ||
disabled={true} | ||
> | ||
Install for Firefox | ||
</Button> | ||
<br /> | ||
<div className="extension-splash__comming-soon"> | ||
<LabelStyle>(comming soon)</LabelStyle> | ||
</div> | ||
</li> | ||
</ul> | ||
|
||
<p> | ||
The Rapid PREreview app let you read and add reviews (or requests for | ||
feedback) directly from the preprint sites you visit without having to | ||
navigate to the Rapid PREreview homepage. | ||
</p> | ||
|
||
<ul> | ||
<li>Install for Chrome</li> | ||
<li>Install for Firefox (comming soon)</li> | ||
</ul> | ||
|
||
<p> | ||
Don’t see support for your browser? <a href="#">let us know!</a> | ||
</p> | ||
<p className="extension-splash__request-browser"> | ||
Don’t see support for your browser? <br />{' '} | ||
<a href="#">let us know!</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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
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