-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from helios-pipeline/feat/replace-bullets-with-…
…icons feat: replaced lists with icons
- Loading branch information
Showing
20 changed files
with
239 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
docs/.vitepress/cache/ | ||
docs/.vitepress/cache/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<img v-if="iconSrc" :src="iconSrc" :alt="name" class="custom-icon" /> | ||
<span v-else class="icon-placeholder">?</span> | ||
</template> | ||
|
||
<script setup> | ||
import { computed } from 'vue' | ||
import { customIcons } from './customIcons.js' | ||
const props = defineProps(['name']) | ||
const iconSrc = computed(() => customIcons[props.name] || null) | ||
</script> | ||
|
||
<style scoped> | ||
.custom-icon { | ||
display: inline-block; | ||
width: 1.6em; | ||
height: 1.6em; | ||
vertical-align: middle; | ||
} | ||
.icon-placeholder { | ||
display: inline-block; | ||
width: 1.6em; | ||
height: 1.6em; | ||
vertical-align: middle; | ||
text-align: center; | ||
line-height: 1.6em; | ||
background-color: #ccc; | ||
color: #fff; | ||
font-weight: bold; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<component :is="iconComponent" v-if="isHeroicon" class="icon" /> | ||
<CustomIcon v-else :name="name" class="icon" /> | ||
</template> | ||
|
||
<script setup> | ||
import { computed } from 'vue' | ||
import * as OutlineIcons from '@heroicons/vue/24/outline' | ||
import CustomIcon from './CustomIcon.vue' | ||
import { customIcons } from './customIcons.js' | ||
const props = defineProps(['name']) | ||
const isHeroicon = computed(() => props.name in OutlineIcons) | ||
const isCustomIcon = computed(() => props.name in customIcons) | ||
const iconComponent = computed(() => isHeroicon.value ? OutlineIcons[props.name] : null) | ||
</script> | ||
|
||
<style scoped> | ||
/* .icon { */ | ||
/* display: inline-block; */ | ||
/* width: 1.6em; */ | ||
/* height: 1.6em; */ | ||
/* vertical-align: middle; */ | ||
/* } */ | ||
.icon { | ||
display: block; | ||
width: 1.6em; | ||
height: 1.6em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const customIcons = { | ||
"terraform-icon": "./custom_icons/terraform.png", | ||
"aws-icon": "./custom_icons/aws.png", | ||
"kafka-icon": "./custom_icons/kafka.png", | ||
"gcp-icon": "./custom_icons/gcp.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export { default as BenchmarkTable } from "./BenchmarkTable.vue"; | ||
export { default as TippyWrapper } from "./TippyWrapper.vue"; | ||
export { default as Icon } from "./Icon.vue"; | ||
export { default as HomePage } from "./HomePage.vue"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.