-
Notifications
You must be signed in to change notification settings - Fork 2
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 #5 from zzzi-ori/event-ui-2.0
Event UI 2.0
- Loading branch information
Showing
12 changed files
with
295 additions
and
232 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
<template> | ||
<button :class="style({disabled, color})" :disabled="disabled"> | ||
<LeftLine/> | ||
<slot/> | ||
<RightLine/> | ||
<LeftLine /> | ||
<slot /> | ||
<RightLine /> | ||
</button> | ||
</template> | ||
<script setup lang="ts"> | ||
import {cva} from 'class-variance-authority' | ||
import {PropType} from 'vue' | ||
import { cva } from 'class-variance-authority' | ||
import { PropType } from 'vue' | ||
import LeftLine from '../../components/button/_assets/LeftLine.vue' | ||
import RightLine from '../../components/button/_assets/RightLine.vue' | ||
defineProps({ | ||
disabled: {type: Boolean, default: false}, | ||
color: {type: String as PropType<ButtonColor>, default: 'primary'} | ||
disabled: { type: Boolean, default: false }, | ||
color: { type: String as PropType<ButtonColor>, default: 'primary' }, | ||
}) | ||
type ButtonColor = 'primary' | 'secondary' | ||
const style = cva( | ||
[ | ||
'text-black text-body-b', | ||
'flex justify-between w-full rounded-[8px] px-[12px] py-[11px] border-2' | ||
'flex justify-between w-full rounded-[8px] px-[12px] py-[11px] border-2', | ||
] | ||
, { | ||
variants: { | ||
disabled: { | ||
true: 'border-dark-green text-dark-green bg-green', | ||
false: 'border-black' | ||
true: 'border-transBlack-15 text-transBlack-15 bg-transBlack-10', | ||
false: 'border-black', | ||
}, | ||
color: { | ||
'primary': 'bg-[#FCBF31]', | ||
'secondary': 'bg-green' | ||
} | ||
'secondary': 'bg-green', | ||
}, | ||
}, | ||
}) | ||
</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
Oops, something went wrong.