260807_01_ENH: tailwind 기반으로 수정중
This commit is contained in:
51
src/components/ui/button.js
Normal file
51
src/components/ui/button.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import React from "react";
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import { cva } from "class-variance-authority";
|
||||
|
||||
import { cn } from "../../lib/utils";
|
||||
|
||||
const buttonVariants = cva(
|
||||
"kart-ui inline-flex w-auto min-w-0 m-0 shrink-0 items-center justify-center gap-2 whitespace-nowrap border border-transparent text-center font-bold leading-none outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: "rounded-pill bg-primary text-primary-foreground hover:bg-primary/90",
|
||||
secondary: "rounded-pill bg-secondary text-muted-foreground hover:bg-secondary/80",
|
||||
outline: "rounded-pill border-border bg-white text-primary hover:bg-muted",
|
||||
ghost: "bg-transparent text-foreground hover:bg-muted",
|
||||
square: "rounded bg-primary text-primary-foreground hover:bg-primary/90",
|
||||
soft: "rounded bg-muted text-muted-foreground hover:bg-border",
|
||||
destructive: "rounded bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
||||
icon: "rounded border-border bg-white text-muted-foreground hover:bg-muted",
|
||||
},
|
||||
size: {
|
||||
default: "h-7 px-4 text-sm",
|
||||
sm: "h-7 px-3 text-xs",
|
||||
md: "h-9 px-4 text-sm",
|
||||
lg: "h-[50px] px-5 text-base",
|
||||
icon: "h-9 w-9 p-0",
|
||||
legacy: "h-7 w-[113px] px-3 text-sm",
|
||||
wide: "h-[50px] w-[156px] px-5 text-base",
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
size: "default",
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
||||
const Comp = asChild ? Slot : "button";
|
||||
|
||||
return (
|
||||
<Comp
|
||||
className={cn(buttonVariants({ variant, size, className }))}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
Button.displayName = "Button";
|
||||
|
||||
export { Button, buttonVariants };
|
||||
1
src/components/ui/index.js
Normal file
1
src/components/ui/index.js
Normal file
@@ -0,0 +1 @@
|
||||
export { Button, buttonVariants } from "./button";
|
||||
6
src/lib/utils.js
Normal file
6
src/lib/utils.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { clsx } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
70
src/resources/css/global.css
Normal file
70
src/resources/css/global.css
Normal file
@@ -0,0 +1,70 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 0 0% 96%;
|
||||
--foreground: 0 0% 10%;
|
||||
--card: 0 0% 100%;
|
||||
--card-foreground: 0 0% 10%;
|
||||
--popover: 0 0% 100%;
|
||||
--popover-foreground: 0 0% 10%;
|
||||
--primary: 162 72% 40%;
|
||||
--primary-foreground: 0 0% 100%;
|
||||
--secondary: 0 0% 96%;
|
||||
--secondary-foreground: 0 0% 40%;
|
||||
--muted: 0 0% 96%;
|
||||
--muted-foreground: 0 0% 62%;
|
||||
--accent: 80 60% 81%;
|
||||
--accent-foreground: 0 0% 10%;
|
||||
--destructive: 8 100% 63%;
|
||||
--destructive-foreground: 0 0% 100%;
|
||||
--border: 0 0% 88%;
|
||||
--input: 0 0% 88%;
|
||||
--ring: 162 72% 40%;
|
||||
--radius: 4px;
|
||||
--radius-card: 15px;
|
||||
--radius-pill: 52px;
|
||||
--header-height: 64px;
|
||||
--titlebar-height: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.kart-ui,
|
||||
.kart-ui * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
button.kart-ui {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
a.kart-ui {
|
||||
display: inline-flex;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input.kart-ui,
|
||||
select.kart-ui,
|
||||
textarea.kart-ui {
|
||||
width: auto;
|
||||
height: auto;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@ button {
|
||||
background: #fff url(../images/ic_bookmark_14.png) no-repeat left 16px center/11px 14px;
|
||||
padding-left: 21px;
|
||||
}
|
||||
.rt03 .statistic_wrap .round_btn {
|
||||
.page-tabulation .statistic_wrap .round_btn {
|
||||
color: #17BBB0;
|
||||
background: #fff url(../images/ic_plus.png) no-repeat left 20px center/12px;
|
||||
height: 28px;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
@charset "utf-8";
|
||||
@import url(reset.css);
|
||||
@import url("https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css");
|
||||
@import url("~semantic-ui-css/semantic.min.css");
|
||||
@import url(custom.css);
|
||||
@import url(media.css);
|
||||
@import url(media.css);
|
||||
@import url(global.css);
|
||||
|
||||
@@ -81,7 +81,7 @@ const Main = (props) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<section id="main" className="main">
|
||||
<section id="main" className="page-overview">
|
||||
{specialEffect}
|
||||
<div className="wrap">
|
||||
<div className="chart_wrap">
|
||||
|
||||
@@ -371,7 +371,7 @@ const Derived = (props) => {
|
||||
return (
|
||||
<React.Fragment>
|
||||
{saveMutation.isLoading?<QueryLoading/>:null}
|
||||
<section id="main" className="rt02 rt05" style={isMobile?{display:'flex',justifyContent:'center',alignItems:'center',height:'80vh'}:{}}>
|
||||
<section id="main" className="page-report page-derived" style={isMobile?{display:'flex',justifyContent:'center',alignItems:'center',height:'80vh'}:{}}>
|
||||
{isMobile?
|
||||
<Icon src="icon_pc"/>
|
||||
:
|
||||
|
||||
@@ -142,7 +142,7 @@ const Exim = () => {
|
||||
return (
|
||||
<>
|
||||
{dataMutation.isLoading || guideMutation.isLoading || dataFormMutation.isLoading || questionFormMutation.isLoading || titleMutation.isLoading || importLoading?<QueryLoading/>:null}
|
||||
<section id="main" className="rt02 rt06" style={isMobile?{display:'flex',justifyContent:'center',alignItems:'center',height:'80vh'}:{}}>
|
||||
<section id="main" className="page-report page-exim" style={isMobile?{display:'flex',justifyContent:'center',alignItems:'center',height:'80vh'}:{}}>
|
||||
{isMobile?
|
||||
<Icon src="icon_pc"/>
|
||||
:
|
||||
|
||||
@@ -317,7 +317,7 @@ const Crosstab = () => {
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<section id="main" className="rt02 rt04 dropped drop_table mob dropped_word">
|
||||
<section id="main" className="page-report page-crosstab page-tabbed-report dropped drop_table mob dropped_word">
|
||||
<div className="tab_container">
|
||||
<BookmarkList page={'crosstab'} isMobile={isMobile} setSelectedBookMark={setSelectedBookMark} isViewBookMark={isViewBookMark} selectedBookMark={selectedBookMark}/>
|
||||
{isMobile===false?
|
||||
@@ -491,4 +491,4 @@ const Crosstab = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default Crosstab;
|
||||
export default Crosstab;
|
||||
|
||||
@@ -231,7 +231,7 @@ const Current = () => {
|
||||
return (
|
||||
<>
|
||||
{dayFetching || typeFetching || loiFetching || screenFetching?<QueryLoading/>:null}
|
||||
<section id="main" className="rt01" onMouseUp={(e)=>{setDataDate()}} >
|
||||
<section id="main" className="page-current" onMouseUp={(e)=>{setDataDate()}} >
|
||||
<div className="wrap">
|
||||
<div className="chart_wrap">
|
||||
<div className="chart_flex_box">
|
||||
|
||||
@@ -177,7 +177,7 @@ const Quota = () => {
|
||||
return (
|
||||
<React.Fragment>
|
||||
{setExportMutation.isLoading || exportMutation.isLoading?<QueryLoading/>:null}
|
||||
<section id="main" className="rt02">
|
||||
<section id="main" className="page-report page-quota">
|
||||
<div className="wrap">
|
||||
<div className="data_wrap">
|
||||
<LeftToggleBox leftToggle={leftToggle} setLeftToggle={setLeftToggle}/>
|
||||
@@ -216,4 +216,4 @@ const Quota = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default Quota;
|
||||
export default Quota;
|
||||
|
||||
@@ -343,7 +343,7 @@ const Tabulation = () => {
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<section id="main" className="rt02 rt03 rt04 dropped drop_table dropped_word" style={isMobile?{display:'flex',justifyContent:'center',alignItems:'center',height:'80vh'}:{}}>
|
||||
<section id="main" className="page-report page-tabulation page-tabbed-report dropped drop_table dropped_word" style={isMobile?{display:'flex',justifyContent:'center',alignItems:'center',height:'80vh'}:{}}>
|
||||
{
|
||||
isMobile?
|
||||
<Icon src="icon_pc"/>
|
||||
|
||||
Reference in New Issue
Block a user