Добавлен компонент YandexMetrika
This commit is contained in:
16
src/lib/components/YandexMetrika.svelte
Normal file
16
src/lib/components/YandexMetrika.svelte
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{#if id}
|
||||||
|
<img src={`https://mc.yandex.ru/watch/${id}`} alt=""/>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let { id } = $props()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
img {
|
||||||
|
position: absolute;
|
||||||
|
left: -9999px;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
export { default as Image } from './components/Image.svelte'
|
export { default as Image } from './components/Image.svelte'
|
||||||
export { default as Picture } from './components/Picture.svelte'
|
export { default as Picture } from './components/Picture.svelte'
|
||||||
|
export { default as YandexMetrika } from './components/YandexMetrika.svelte'
|
||||||
Reference in New Issue
Block a user