Skip to content

Commit

Permalink
Added twitter icon
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Mar 19, 2021
1 parent 03ea330 commit 98df0d2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 23 deletions.
7 changes: 6 additions & 1 deletion website/macos-big-sur-icons/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<!-- Desktop -->
<div class="mobile-hidden">
<div class="header-grid-btns">

<!-- Back to all icons -->
<div class="opacity-50" v-if="this.$route.name != 'Home'">
<router-link to="/">
Expand Down Expand Up @@ -196,6 +196,11 @@
<span>Submit icons</span>
</button>
</div>

<a href="https://twitter.com/elrumo" target="_blank" rel="noopener">
<img :src="icons.twitter" class="header-item header-icon" alt="">
</a>

</div>
</div>

Expand Down
13 changes: 0 additions & 13 deletions website/macos-big-sur-icons/src/components/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,6 @@ export default {
},
async updateCount(id){
let parent = this;
let Icons = await parent.parseObj
let query = new Icons.Query(Icons)
let docToUpdate = await query.get(id)
docToUpdate.increment("downloads")
docToUpdate.save().then(() => {
console.log("Saved!!");
}).catch((e) => {
console.log("error: ", e);
})
},
showDialog(dialog) {
Expand Down
18 changes: 9 additions & 9 deletions website/macos-big-sur-icons/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@ export default {
// console.log("icon: ", icon);
// console.log("ID: ", id);
let query = new Parse.Query(Icons)
let docToUpdate = await query.get(id)
docToUpdate.increment("downloads")
docToUpdate.save().then(() => {
// console.log("Saved!!");
}).catch((e) => {
console.log("error: ", e);
})
// let query = new Parse.Query(Icons)
// let docToUpdate = await query.get(id)
// docToUpdate.increment("downloads")
// docToUpdate.save().then(() => {
// // console.log("Saved!!");
// }).catch((e) => {
// console.log("error: ", e);
// })
},
Expand Down
18 changes: 18 additions & 0 deletions website/macos-big-sur-icons/src/components/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,24 @@ main{
line-height: 2rem;
}

.header-icon{
height: 22px;
padding: 0px 20px;
cursor: pointer;
position: relative;
top: 50%;
transform: translateY(-50%);
transition: 0.2s;
}

.coral--dark .header-icon:hover{
filter: brightness(1.5);
}

.coral--light .header-icon:hover{
filter: brightness(0.7);
}

.transform-centre{
left: 50%;
transform: translateX(-50%);
Expand Down

1 comment on commit 98df0d2

@vercel
Copy link

@vercel vercel bot commented on 98df0d2 Mar 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.