forked from mozilla-lockwise/lockbox-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an intro page to the manager; resolves mozilla-lockwise#292
- Loading branch information
Jim Porter
committed
Dec 13, 2017
1 parent
d9c3d3c
commit 23575fd
Showing
8 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
.intro-images { | ||
display: grid; | ||
grid-auto-flow: column; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-rows: auto auto auto; | ||
grid-column-gap: 4em; | ||
margin: 4em; | ||
} | ||
|
||
.intro-image { | ||
display: contents; | ||
text-align: center; | ||
} | ||
|
||
.intro-image > h1, | ||
.intro-image > p { | ||
overflow: hidden; | ||
} | ||
|
||
.intro-image > img { | ||
width: 100%; | ||
border: 1px solid rgba(12, 12, 13, 0.3); | ||
border-radius: 5px; | ||
box-shadow: 0 0 10px rgba(12, 12, 13, 0.3); | ||
} | ||
|
||
.intro-image > h1 { | ||
font-size: 17px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.intro-image > p { | ||
font-size: 15px; | ||
} |
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,55 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import { Localized } from "fluent-react"; | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
|
||
import AccountDetails from "../containers/account-details"; | ||
|
||
import styles from "./intro-page.css"; | ||
|
||
function IntroImage({src, title, children}) { | ||
return ( | ||
<div className={styles.introImage}> | ||
<img src={src} alt=""/> | ||
<h1>{title}</h1> | ||
<p>{children}</p> | ||
</div> | ||
); | ||
} | ||
|
||
IntroImage.propTypes = { | ||
src: PropTypes.string.isRequired, | ||
title: PropTypes.string.isRequired, | ||
children: PropTypes.node, | ||
}; | ||
|
||
export default function IntroPage() { | ||
return ( | ||
<article className={styles.introPage}> | ||
<section className={styles.introImages}> | ||
<Localized id="intro-page-step-1"> | ||
<IntroImage src={browser.extension.getURL("/images/intro-step-1.png")} | ||
title="aDd lOGIn iNFo to lOCKBOx"> | ||
sAVe uSERNAMe aNd pASSWORd... | ||
</IntroImage> | ||
</Localized> | ||
<Localized id="intro-page-step-2"> | ||
<IntroImage src={browser.extension.getURL("/images/intro-step-2.png")} | ||
title="go sTRAIGHt to yOUr lOGINs"> | ||
cLICk tHe lOCKBOx iCOn... | ||
</IntroImage> | ||
</Localized> | ||
<Localized id="intro-page-step-3"> | ||
<IntroImage src={browser.extension.getURL("/images/intro-step-3.png")} | ||
title="sIGn in fROm lOCKBOx"> | ||
cOPy an eNTRY's iNFo... | ||
</IntroImage> | ||
</Localized> | ||
</section> | ||
<AccountDetails/> | ||
</article> | ||
); | ||
} |
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
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