add bg image for login panel and image
authorJanicki Artur <artur.janicki@contractors.roche.com>
Thu, 20 Sep 2018 13:07:14 +0000 (15:07 +0200)
committerJanicki Artur <artur.janicki@contractors.roche.com>
Thu, 20 Sep 2018 13:07:14 +0000 (15:07 +0200)
Feature #13935

Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki@contractors.roche.com>

public/arvados-logo-big.png [new file with mode: 0644]
src/views/login-panel/login-panel.tsx

diff --git a/public/arvados-logo-big.png b/public/arvados-logo-big.png
new file mode 100644 (file)
index 0000000..c511f0e
Binary files /dev/null and b/public/arvados-logo-big.png differ
index 2521e14385315eed624227de81d8c63c9ec55e2b..377c58bbd2674b4cfa4b86e8c361d485e526bfec 100644 (file)
@@ -15,10 +15,22 @@ type CssRules = 'root' | 'container' | 'title' | 'content' | 'content__bolder' |
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     root: {
-        background: theme.palette.background.default
+        position: 'relative',
+        backgroundColor: theme.palette.grey["200"],
+        '&::after': {
+            content: `''`,
+            position: 'absolute',
+            top: 0,
+            left: 0,
+            bottom: 0,
+            right: 0,
+            background: 'url("arvados-logo-big.png") no-repeat center center',
+            opacity: 0.2,
+        }
     },
     container: {
-        width: '560px'
+        width: '560px',
+        zIndex: 10
     },
     title: {
         marginBottom: theme.spacing.unit * 6,
@@ -49,9 +61,8 @@ export const LoginPanel = compose(
                 Welcome to the Arvados Wrokbench
             </Typography>
             <Typography variant="body1" className={classes.content}>
-                The "Log in" button below will show you a Google sign-in page.
-                After you assure Google that you want to log in here with your Google account,
-                you will be redirected back here to Arvados Workbench.
+                The "Log in" button below will show you a Google sign-in page. 
+                After you assure Google that you want to log in here with your Google account, you will be redirected back here to Arvados Workbench.
             </Typography>
             <Typography variant="body1" className={classes.content}>
                 If you have never used Arvados Workbench before, logging in for the first time will automatically create a new account.