-
Notifications
You must be signed in to change notification settings - Fork 192
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 #494 from esslamben/create-privacy-marker-component
Added privacy marker icon
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div | ||
class="flex items-center px-4 py-2 font-semibold text-center border select-none rounded-md xl:rounded-lg focus-brand w-fit shadow-sm shadow-zinc-700 text-light-text border-light-text dark:text-dark-cta-orange dark:border-dark-cta-orange fill-light-text dark:fill-dark-cta-orange bg-light-cta-orange dark:bg-dark-cta-orange/10 text-base sm:text-lg xl:text-xl xl:px-6 xl:py-3" | ||
:class="{ | ||
'text-xs': fontSize == 'xs', | ||
'text-sm': fontSize == 'sm', | ||
'text-base': fontSize == 'base', | ||
'text-lg': fontSize == 'lg', | ||
'text-base sm:text-lg xl:text-xl xl:px-6 xl:py-3': fontSize == 'xl', | ||
'text-base sm:text-lg xl:text-2xl xl:px-6 xl:py-3': fontSize == '2xl', | ||
'text-base sm:text-lg xl:text-3xl xl:px-6 xl:py-3': fontSize == '3xl', | ||
}" | ||
> | ||
<Icon | ||
class="-my-1" | ||
:name="type === 'group' ? 'IconGroup' : 'bi:eye-slash'" | ||
:size="iconSize" | ||
/> | ||
<span class="mx-auto hidden ml-2 md:block">{{ | ||
$t("components.marker-privacy.private") | ||
}}</span> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
export interface Props { | ||
fontSize: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl"; | ||
type?: "default" | "group"; | ||
iconSize?: string; | ||
ariaLabel: string; | ||
} | ||
withDefaults(defineProps<Props>(), { | ||
iconSize: "1em", | ||
type: "default", | ||
}); | ||
</script> |
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