-
Notifications
You must be signed in to change notification settings - Fork 9
/
rules.vue
40 lines (38 loc) · 1.37 KB
/
rules.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<script setup lang="ts">
import { ref } from 'vue'
const bg = 'bg-[hsl(2.7,81.9%,69.6%)]'
const index = 1
const customClass = 'text-red'
const bool = ref<boolean>()
</script>
<template>
<div class="text-center aaa" p="4">
<div text="4xl" class="rotate-180 i-carbon-campsite" :class="bg" />
<div class="border bg-blue-200 font-(light mono) ">
<div class="hover:(!bg-gray-600 text-white font-medium)" text="#fff">
0123456789
</div>
</div>
<div :class="{ 'bg-blue': bool }" p-2 :hover-class="['!bg-green']">
class="hover:bg-green"
</div>
<div flex="~ col gap-1" class="p-1" items-center :class="bool ? 'text-yellow-500 px-2.5' : ''">
<div i-carbon-campsite inline-block color="blue" text="xl" />
{{ `index${index + 1}` }}
</div>
<div flex="~ col" border="2 blue">
<div text-right h-10 flex="1" text="red" :class="{ 'text-sm': index > 0 }">
0123456789
</div>
<div h-10 flex="1" text-blue :class="[index > 1 ? 'text' : '']" :style="[index > 1 ? '' : '']" :type="index > 1">
0123456789
</div>
</div>
<div class="bg-[url(https://static.runoob.com/images/demo/demo2.jpg)]" w-40 h-20 ma color="white" bg="center cover">
bg-img
</div>
<div class="m-0.5 p-1 text-2xl" :class="bool ? '' : 'text-yellow-500 p-2.5'">
abckefghijklmnopqrstuvwxyz
</div>
</div>
</template>