2023-04-03 13:49:19 +03:00
|
|
|
import { createStyleSheet } from '../../base/styles/functions.any';
|
2018-08-10 12:30:00 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* For styling explanations, see:
|
2021-11-04 22:10:43 +01:00
|
|
|
* https://developers.google.com/identity/branding-guidelines.
|
2018-08-10 12:30:00 +02:00
|
|
|
*/
|
|
|
|
|
const BUTTON_HEIGHT = 40;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The styles of the React {@code Components} of google-api.
|
|
|
|
|
*/
|
|
|
|
|
export default createStyleSheet({
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Image of the sign in button (Google branded).
|
|
|
|
|
*/
|
|
|
|
|
signInImage: {
|
|
|
|
|
flex: 1
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An image-based button for sign in.
|
|
|
|
|
*/
|
|
|
|
|
signInButton: {
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
height: BUTTON_HEIGHT,
|
|
|
|
|
justifyContent: 'center'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A text-based button for sign out (no sign out button guidance for
|
|
|
|
|
* Google).
|
|
|
|
|
*/
|
|
|
|
|
signOutButton: {
|
2023-03-13 10:47:54 +02:00
|
|
|
alignSelf: 'center',
|
2023-04-18 16:29:52 +03:00
|
|
|
maxWidth: 120,
|
2023-03-13 10:47:54 +02:00
|
|
|
width: 'auto'
|
2018-08-10 12:30:00 +02:00
|
|
|
}
|
|
|
|
|
});
|