|
| 1 | +<!-- |
| 2 | + ~ Copyright 2023 Exactpro (Exactpro Systems Limited) |
| 3 | + ~ |
| 4 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + ~ you may not use this file except in compliance with the License. |
| 6 | + ~ You may obtain a copy of the License at |
| 7 | + ~ |
| 8 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + ~ |
| 10 | + ~ Unless required by applicable law or agreed to in writing, software |
| 11 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + ~ See the License for the specific language governing permissions and |
| 14 | + ~ limitations under the License. |
| 15 | + --> |
| 16 | + |
| 17 | +<script setup lang="ts"> |
| 18 | +const config = useAppConfig() |
| 19 | +
|
| 20 | +const social = config.exactproDocs.social |
| 21 | +</script> |
| 22 | + |
| 23 | +<template> |
| 24 | + <div class="flex flex-wrap gap-2"> |
| 25 | + <!-- GitHub --> |
| 26 | + <a |
| 27 | + v-if="!social?.githhub?.disabled" |
| 28 | + :href="social?.githhub?.url" |
| 29 | + target="_blank" |
| 30 | + > |
| 31 | + <img |
| 32 | + v-if="!social?.githhub?.customIcon" |
| 33 | + src="../../../assets/img/footer/github.svg" |
| 34 | + alt="Exactpro GitHub page" |
| 35 | + class="icon" |
| 36 | + /> |
| 37 | + <Icon v-else class="icon" :name="social?.githhub?.customIcon" /> |
| 38 | + </a> |
| 39 | + <!-- Facebook --> |
| 40 | + <a |
| 41 | + v-if="!social?.facebook?.disabled" |
| 42 | + :href="social?.facebook?.url" |
| 43 | + target="_blank" |
| 44 | + > |
| 45 | + <img |
| 46 | + v-if="!social?.facebook?.customIcon" |
| 47 | + src="../../../assets/img/footer/facebook.svg" |
| 48 | + alt="Exactpro Facebook page" |
| 49 | + class="icon" |
| 50 | + /> |
| 51 | + <Icon v-else class="icon" :name="social?.facebook?.customIcon" /> |
| 52 | + </a> |
| 53 | + <!-- Twitter --> |
| 54 | + <a |
| 55 | + v-if="!social?.twitter?.disabled" |
| 56 | + :href="social?.twitter?.url" |
| 57 | + target="_blank" |
| 58 | + > |
| 59 | + <img |
| 60 | + v-if="!social?.twitter?.customIcon" |
| 61 | + src="../../../assets/img/footer/twitter.svg" |
| 62 | + class="icon" |
| 63 | + alt="Exactpro Twitter page" |
| 64 | + /> |
| 65 | + <Icon v-else class="icon" :name="social?.twitter?.customIcon" /> |
| 66 | + </a> |
| 67 | + <!-- Linkedin --> |
| 68 | + <a |
| 69 | + v-if="!social?.linkedin?.disabled" |
| 70 | + :href="social?.linkedin?.url" |
| 71 | + target="_blank" |
| 72 | + > |
| 73 | + <img |
| 74 | + v-if="!social?.linkedin?.customIcon" |
| 75 | + class="icon" |
| 76 | + src="../../../assets/img/footer/linkedin.svg" |
| 77 | + alt="Exactpro LinkedIn page" |
| 78 | + /> |
| 79 | + <Icon v-else class="icon" :name="social?.linkedin?.customIcon" /> |
| 80 | + </a> |
| 81 | + <!-- Youtube --> |
| 82 | + <a |
| 83 | + v-if="!social?.youtube?.disabled" |
| 84 | + :href="social?.youtube?.url" |
| 85 | + target="_blank" |
| 86 | + ><img |
| 87 | + v-if="!social?.youtube?.customIcon" |
| 88 | + class="icon" |
| 89 | + src="../../../assets/img/footer/youtube.svg" |
| 90 | + alt="Exactpro Youtube account" |
| 91 | + /> |
| 92 | + <Icon v-else class="icon" :name="social?.youtube?.customIcon" /> |
| 93 | + </a> |
| 94 | + </div> |
| 95 | +</template> |
| 96 | + |
| 97 | +<style scoped> |
| 98 | +.icon { |
| 99 | + width: 3em; |
| 100 | + height: 3em; |
| 101 | +} |
| 102 | +</style> |
0 commit comments