mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-19 12:04:09 -04:00
Theme welcome and choose your account pages
This commit is contained in:
8
changelog/unreleased/theme-konnectd-subpages.md
Normal file
8
changelog/unreleased/theme-konnectd-subpages.md
Normal file
@@ -0,0 +1,8 @@
|
||||
Change: Theme welcome and choose account pages
|
||||
|
||||
Tags: konnectd
|
||||
|
||||
We've themed the konnectd pages Welcome and Choose account.
|
||||
All text has a white color now to be easily readable on the dark background.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/887
|
||||
File diff suppressed because one or more lines are too long
@@ -13,9 +13,7 @@ import renderIf from 'render-if';
|
||||
import { retryHello } from '../actions/common';
|
||||
import { ErrorMessage } from '../errors';
|
||||
|
||||
function Loading(props) {
|
||||
const { error } = props;
|
||||
|
||||
function Loading({ error, dispatch }) {
|
||||
const retry = (event) => {
|
||||
event.preventDefault();
|
||||
dispatch(retryHello());
|
||||
|
||||
@@ -69,10 +69,10 @@ function Chooseaccount({ loading, errors, classes, hello, history, dispatch }) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Typography variant="h5" component="h3">
|
||||
<Typography variant="h5" component="h3" className="oc-light">
|
||||
<FormattedMessage id="konnect.chooseaccount.headline" defaultMessage="Choose an account"></FormattedMessage>
|
||||
</Typography>
|
||||
<Typography variant="subtitle1" className={classes.subHeader}>
|
||||
<Typography variant="subtitle1" className={classes.subHeader + " oc-light"}>
|
||||
<FormattedMessage id="konnect.chooseaccount.subHeader" defaultMessage="to sign in to Kopano">
|
||||
</FormattedMessage>
|
||||
</Typography>
|
||||
@@ -86,7 +86,7 @@ function Chooseaccount({ loading, errors, classes, hello, history, dispatch }) {
|
||||
disabled={!!loading}
|
||||
onClick={(event) => logon(event)}
|
||||
><ListItemAvatar><Avatar>{username.substr(0, 1)}</Avatar></ListItemAvatar>
|
||||
<ListItemText primary={username} />
|
||||
<ListItemText className="oc-light" primary={username} />
|
||||
</ListItem>
|
||||
<ListItem
|
||||
button
|
||||
@@ -102,6 +102,7 @@ function Chooseaccount({ loading, errors, classes, hello, history, dispatch }) {
|
||||
</Avatar>
|
||||
</ListItemAvatar>
|
||||
<ListItemText
|
||||
className="oc-light"
|
||||
primary={
|
||||
<FormattedMessage
|
||||
id="konnect.chooseaccount.useOther.label"
|
||||
|
||||
@@ -29,18 +29,18 @@ class Welcomescreen extends React.PureComponent {
|
||||
const loading = hello === null;
|
||||
return (
|
||||
<ResponsiveScreen loading={loading}>
|
||||
<Typography variant="h5" component="h3">
|
||||
<Typography variant="h5" component="h3" className="oc-light">
|
||||
<FormattedMessage
|
||||
id="konnect.welcome.headline"
|
||||
defaultMessage="Welcome {displayName}"
|
||||
values={{displayName: hello.displayName}}>
|
||||
</FormattedMessage>
|
||||
</Typography>
|
||||
<Typography variant="subtitle1" className={classes.subHeader}>
|
||||
<Typography variant="subtitle1" className={classes.subHeader + " oc-light"}>
|
||||
{hello.username}
|
||||
</Typography>
|
||||
|
||||
<Typography gutterBottom>
|
||||
<Typography gutterBottom className="oc-light">
|
||||
<FormattedMessage id="konnect.welcome.message"
|
||||
defaultMessage="You are signed in - awesome!"></FormattedMessage>
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user