Commit 247e4cf2 authored by Tarsvini's avatar Tarsvini

added css

parent 9d538805
Pipeline #14597951 passed with stages
in 3 minutes and 54 seconds
body {
background-color: #ADC6C7;
}
.profile .data{
position: absolute;
margin: auto;
min-width: 50%;
top: 10%;
left: 0;
right: 0;
padding: 15px;
background: rgba(121,174,200,0.5);
}
.profile .cover {
width: 100%;
}
html {
padding: 0;
margin: 0;
}
.profile {
background-size: cover;
background-repeat: no-repeat;
}
.profile .picture{
display: block;
margin: auto;
}
.profile * {
text-align: center;
font-size: 125%
}
#postInput {
width: 100%;
}
.buttons {
text-align: center;
}
.login-button * {
text-align: center;
margin: 32vh auto;
height: 20vh;
width: 100%;
font-size:300%;
}
#feeds {
margin: 15px auto;
}
#feeds * {
text-align: center;
font-size: 125%;
}
#feeds button {
font-size: 100%;
}
#feeds .feed {
border-style: solid;
border-color: black;
border-width: 5px;
padding: 2px;
}
footer {
font-size: 12px;
text-align: center;
margin: 0;
}
.content {
margin-top: 50px;
margin-bottom: 50px;
}
// FB initiation function
window.fbAsyncInit = () => {
FB.init({
appId : '{your app id}',
appId : '922605761248460',
cookie : true,
xfbml : true,
version : '{your api version}'
version : 'v2.11'
});
// implement a function that check login status (getLoginStatus)
......@@ -127,7 +127,7 @@
// What does it mean by a callback function?
const getUserData = (fun) => {
...
FB.api('/me?fields=....', 'GET', function (response){
FB.api('/me?fields=cover,picture,name,about,email,gender', 'GET', function (response){
fun(response);
});
...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment