score:0
score:3
Here is a simplified example using styled-components
It's using your css and resizing the way it should.
You can copy/paste this Component and import it into your app maybe it helps figuring out your problem.
import React, { Component } from 'react'
import styled from 'styled-components';
const Wrapper = styled.div`
@media only screen and (max-width : 399px) {
width: 10%
}
`
const BtnFacebook = styled.button`
width: 165px;
height:35px;
border-radius: 4px;
background: #3b5998;
color:white;
border:0px transparent;
text-align: center;
margin:5px;
display: inline-block;
&:hover{
background: #3b5998;
opacity: 0.6;
}
`;
const BtnGoogle = styled.button`
margin:5px;
width: 165px;
height:35px;
border-radius: 4px;
background: #db3236;
color:white;
border:0px transparent;
text-align: center;
&:hover{
background: #3b5998;
opacity: 0.6;
}
`
class Login extends Component {
render() {
return (
<div style={{ display: 'flex', flexWrap: 'wrap' }} >
<Wrapper>
<BtnFacebook >
Sign In with Facebook
</BtnFacebook >
<BtnGoogle>
Sign In with Google
</BtnGoogle >
</Wrapper>
</div>
)
}
}
export default Login
Source: stackoverflow.com
Related Query
- Use Facebook Login Button with React
- How to center text in Facebook Login Button for React Native (Android)?
- React Facebook Login - Hide Button after Login
- Change button style on press in React Native
- How do I embed a facebook send button in my react app?
- React Material UI condition statement within style property of button
- react native button style not working
- React Facebook Login popping up on page load
- Hover style '&:hover:{ }' doesn't work for the button within react component
- How to style the day button in react material-ui date picker
- Google Login Button Does Not Render in React
- How to change login button to logout button in React
- How can I pass custom props to a react Login Button
- React Router issue. Whenever login button is clicked. I am directed to a blank page with the homepage link appended to the login page link is made
- toggle between multiple button style on click of button in react
- How to get a login button to navigate to a new page once clicked. I have downloaded and used the React router dom
- How to use facebook/google login button to store user information with react redux
- how to customize the Facebook Login Button with ReactJs
- React Bootstrap Alert Dismissible Button Without style
- Facebook Login using Cordova / React
- How to use Facebook Javascript SDK to login and force re-authentication with React Web and Typescript inside of a component
- CSS style is not applying to button in React component
- How do I target and change the style of a different element when I click a button in react
- Change style on button click react
- On click on the Google Login button in my react hooks page, nothing is happening
- React Material UI Button override the hove style
- React Facebook Login with Enzyme mount - TypeError cannot read property 'parentNode' of undefined
- how can I make a react login button render a login component
- Dynamic changing style of checked radio button in React
- React button active style
More Query from same tag
- use PrevState in useState hook in React typescript
- Tailwind Circle background color on hover over a div with three horizontal dots
- Attempted import error: 'Navlink' is not exported from 'react-router-dom'
- How to use useMemo with an external API?
- How to use map in reactjs if a list is present under another list?
- How to use jest to mock out a private variable
- How to make an input field
- Shopify - App must set security headers to protect against clickjacking
- React - <optgroup> material UI by key
- Javascript import set images dynamically
- OpenFin child window not visible
- Invoking a node module from react component
- How to add data into an array using inputs in reactjs?
- Reactjs animate replace: How to wait for fade out before adding content to fade in?
- Vue: declared props in component are undefined
- How to make certain <div>'s appear/disappear on category selection | ReactJS
- I can't understand why and how are we passing something to this function. Selector question
- CKEditorError: Cannot read property 'name' of undefined
- Remove scroll listener reactjs
- ReactJS/Redux : controlled input - set value with properties
- Rendering multiple EditorJS components
- React Native Webview with openlayers
- How to mock loadable.lib to make the library be loaded synchronously in some unit tests?
- How to have 2 synchronised nested loops in React?
- MERN Scaffolding with Authorization
- Clicking a link when enter key is pressed using React
- React Redux HOC
- Attempt to use map which was not loaded: world_mill
- Passing Function two level deeper in React
- Fetch the count for no of occurence in a array of object