Ignore:
Timestamp:
07/19/22 19:38:51 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
41d3f60
Parents:
faff334
Message:

Added authentication with google

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/LoginScreen.jsx

    rfaff334 r22367db  
    77import { setPlayer } from '../redux/reducers/playerSlice';
    88import { setStyle } from '../redux/reducers/styleSlice';
     9
     10import { FcGoogle } from 'react-icons/fc';
     11import { signIn } from 'next-auth/react';
    912
    1013import axios from 'axios';
     
    146149                        <button className="secondaryButton" onClick={() => login()}>Log In</button>
    147150                    </div>
     151                    <button onClick={() => signIn()} className="primaryButton" style={{marginTop: '10rem', color: '#eee', padding: '.6rem 2rem'}}><FcGoogle style={{padding: '.2rem', background: '#eee', borderRadius: '50%', fontSize: '2rem', marginBottom: '-.4rem'}}/> Log In With Google</button>
    148152                </div>
    149153            </div>
Note: See TracChangeset for help on using the changeset viewer.