Skip to content

Commit

Permalink
[RESPONSIVE] Hiding the button on the left home on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
JustalK committed Jan 11, 2021
1 parent 995da18 commit b2df1e0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/assets/less/introduction_link.less
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

#HOME {
&.mounted .links-open-door {
top: 75%;
top: 80%;
}
}

Expand Down
11 changes: 10 additions & 1 deletion src/assets/less/socials.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
font-size: 35px;
text-align: center;
background: @text-color-dark;
transition: transform 0.25s cubic-bezier(0.8, 0, 0.25, 1) 0.25s, background 0.25s cubic-bezier(0.8, 0, 0.25, 1), color 0.25s cubic-bezier(0.8, 0, 0.25, 1);
box-shadow: 10px 10px #000;
transition: transform 0.25s cubic-bezier(0.8, 0, 0.25, 1) 0.25s, background 0.25s cubic-bezier(0.8, 0, 0.25, 1), color 0.25s cubic-bezier(0.8, 0, 0.25, 1), box-shadow 0.25s cubic-bezier(0.8, 0, 0.25, 1), padding-left 0.25s cubic-bezier(0.8, 0, 0.25, 1);

&.invisible {
transform: translateX(-150%);
Expand All @@ -25,6 +26,14 @@
&:hover {
background: @background-bloc-1;
color: @text-color-white;
box-shadow: 0 0 transparent;
padding-left: 25px;
}
}
}

@media screen and (max-width: @PHONE_MQ) {
#SOCIALS {
display: none;
}
}
6 changes: 3 additions & 3 deletions src/components/socials.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
id="SOCIALS">
<a
:class="{invisible: invisible}"
:href="url"><font-awesome-icon :icon="['fab', 'google-play']" /></a>
:href="props_introduction.android_url"><font-awesome-icon :icon="['fab', 'google-play']" /></a>
</div>
</template>
<script>
Expand All @@ -14,8 +14,8 @@ export default {
type: Boolean,
required: true
},
url: {
type: String,
props_introduction: {
type: Object,
required: true
}
}
Expand Down
7 changes: 4 additions & 3 deletions src/pages/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@zoom="zoom">
<components_socials
:invisible="invisible"
:props_introduction="props_introduction"
url="http://localhost:8082/" />
</components_introduction_side>
<components_introduction_side
Expand Down Expand Up @@ -73,10 +74,10 @@ export default {
async get_my_identity() {
const my_identity = await api.get_my_identity();
const image_path = my_identity.image !== null ? my_identity.image.path : null;
this.update_introduction(my_identity.fullname, my_identity.email, image_path);
this.update_introduction(my_identity.fullname, my_identity.email, image_path, my_identity.android_url);
},
update_introduction(name, email, image) {
this.props_introduction = {name, email, image};
update_introduction(name, email, image, android_url) {
this.props_introduction = {name, email, image, android_url};
}
}
};
Expand Down

0 comments on commit b2df1e0

Please sign in to comment.