Created
August 15, 2020 15:11
-
-
Save fredriccliver/d9f9b8a921f8fa4156726104305b1fef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
.container, | |
.profile-section, | |
.login-section { | |
margin-top: 2rem; | |
} | |
.container { | |
padding-left: 5rem; | |
} | |
.profile-section { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
} | |
#profile-picture { | |
width: 3rem; | |
height: 3rem; | |
border-radius: 50%; | |
} | |
</style> | |
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-firestore.js"></script> | |
</head> | |
<body> | |
<div class="container"> | |
<div class=""> | |
<h1>Firebase Auth</h1> | |
</div> | |
<div class="profile-section"> | |
<img | |
id="profile-picture" | |
src="./images/profile-image-placeholder.jpg" | |
/> | |
<div id="profile-email"></div> | |
<div id="profile-name"></div> | |
</div> | |
<div class="login-section"> | |
<button id="login-button" style="display: none;"> | |
Login with Google | |
</button> | |
<button id="logout-button" style="display: none;">Logout</button> | |
</div> | |
</div> | |
<script type="module" src="./index.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment