mirror of
https://github.com/gromlab-ru/svg-sprites.git
synced 2026-07-22 20:50:19 +03:00
48 lines
864 B
Vue
48 lines
864 B
Vue
<script setup>
|
|
import { AppIcon } from '../src/app-icons/index.js'
|
|
import { RemoteAppIcon } from '../src/remote-app-icons/index.js'
|
|
</script>
|
|
|
|
<template>
|
|
<main>
|
|
<h1>Nuxt + Webpack</h1>
|
|
<AppIcon
|
|
data-testid="icon"
|
|
data-app="nuxt-webpack"
|
|
icon="check"
|
|
aria-label="Check icon"
|
|
width="64"
|
|
height="64"
|
|
style="--icon-color-1: #16a34a"
|
|
/>
|
|
<RemoteAppIcon
|
|
data-testid="remote-icon"
|
|
data-app="nuxt-webpack-remote"
|
|
icon="check"
|
|
aria-label="Remote check icon"
|
|
width="64"
|
|
height="64"
|
|
style="--icon-color-1: #16a34a"
|
|
/>
|
|
<SpriteViewer />
|
|
</main>
|
|
</template>
|
|
|
|
<style>
|
|
:root {
|
|
font-family: system-ui, sans-serif;
|
|
color: #172033;
|
|
background: #fff;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 40px;
|
|
}
|
|
|
|
gromlab-sprite-viewer {
|
|
display: block;
|
|
margin-top: 32px;
|
|
}
|
|
</style>
|