Skip to content

Commit

Permalink
🦄 refactor: added socials links
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Nov 22, 2023
1 parent 1a18d53 commit 5c85f32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/site/layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<ul class="mt-8 flex justify-center gap-6 sm:mt-0 lg:justify-end">
<li v-for="(item, key, index) in socials">
<a :href="item" rel="noreferrer" target="_blank" class="text-blue-700 transition hover:opacity-75">
<a :href="socialUrl[key]+item" rel="noreferrer" target="_blank" class="text-blue-700 transition hover:opacity-75">
<span class="sr-only">{{key}}</span>
<svg class="h-6 w-6">
<use v-bind="{'xlink:href':'/assets/img/socials.svg#'+key}" />
Expand Down
10 changes: 9 additions & 1 deletion web/site/public/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ const App = {
products: ref([]),

// pages
content: ref([])
content: ref([]),

socialUrl: {
facebook: "https://facebook.com/",
instagram: "https://instagram.com/",
twitter: "https://twitter.com/@",
dribbble: "https://dribbble.com/",
github: "https://github.com/",
}
}
},

Expand Down

0 comments on commit 5c85f32

Please sign in to comment.