Skip to content

Commit 7dada19

Browse files
committed
[UPDATE] 진단하기 병해정보 ui
1 parent b6bfc66 commit 7dada19

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

src/components/SelectPlant/SelectDescriptionComponent.js

+25-9
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const SelectDescriptionComponent = () => {
128128
tabindex="-1"
129129
aria-labelledby="exampleFrameBottomModalLabel"
130130
aria-hidden="true">
131-
<div data-te-modal-dialog-ref className="h-2/3 pointer-events-none absolute bottom-0 w-full translate-y-[50px] opacity-0 transition-all duration-300 ease-in-out">
131+
<div data-te-modal-dialog-ref className="h-[70%] pointer-events-none absolute bottom-0 w-full translate-y-[50px] opacity-0 transition-all duration-300 ease-in-out">
132132
<div className="rounded-t-2xl pointer-events-auto relative flex w-full h-full flex-col border-none bg-gray-50 bg-clip-padding shadow-lg outline-none">
133133
<div className="relative h-full p-5" data-te-modal-body-ref>
134134

@@ -140,30 +140,46 @@ const SelectDescriptionComponent = () => {
140140
<path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
141141
</svg>
142142
</div>
143-
143+
144144
{/** 사진, 작물명, 병해충명, 학명 */}
145145
<div className="flex mb-4 bg-white w-full h-50 rounded-xl mt-4 p-2 drop-shadow-md ">
146146
<div className="h-36 w-36">
147147
<img src={modalImage} className="w-36 h-36 rounded-xl" />
148148
</div>
149149

150150
<div className="flex flex-col justify-evenly ml-5">
151-
<div>작물명 : {selectPlant}</div>
152-
<div>병해충명 : {diseaseName}</div>
153-
<div>학명: {scientifiName}</div>
151+
<div class="flex items-center text-lg">
152+
<div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div>
153+
<strong> {selectPlant}</strong>
154+
</div>
155+
<div class="flex items-center">
156+
<div class="w-3 h-3 bg-yellow-500 rounded-full mr-2"></div>
157+
<strong> 병해충명: {diseaseName}</strong>
158+
</div>
159+
<div class="flex items-center">
160+
<div class="w-3 h-3 bg-red-500 rounded-full mr-2"></div>
161+
<strong>학명: {scientifiName}</strong>
162+
</div>
163+
154164
</div>
155165
</div>
156166

157167
{/** 내용 */}
158168
<div className="flex flex-col justify-center h-fit bg-white w-full rounded-xl mt-4 p-2 drop-shadow-md ">
159-
<div className="mb-4">
160-
<div className="text-3xl font-bold mb-2">피해</div>
169+
<div className="mb-3">
170+
<div className="w-full flex mb-1">
171+
<div className="w-1.5 bg-green-600 mr-2"></div>
172+
<div className="text-xl font-bold">피해</div>
173+
</div>
161174
<p>{damage}</p>
162175

163176
</div>
164177

165178
<div>
166-
<div className="text-3xl font-bold mb-2">방제</div>
179+
<div className="w-full flex mb-1">
180+
<div className="w-1.5 bg-green-600 mr-2"></div>
181+
<div className="text-xl font-bold">방제</div>
182+
</div>
167183
<p>{treat}</p>
168184
</div>
169185
</div>
@@ -174,7 +190,7 @@ const SelectDescriptionComponent = () => {
174190
<button
175191
type="button"
176192
className="ml-2 inline-block rounded bg-[#10b981] px-7 pb-1.5 pt-2 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-[#10b981] hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-[#10b981] focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-[#10b981] active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)]">
177-
<span className="fs-4">더보기</span>
193+
<span className="fs-4">더보기</span>
178194
</button>
179195
</a>
180196
</div>

tailwind.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ module.exports = {
33
content: ["./src/**/*.{html,js}"
44
,"./node_modules/tw-elements/dist/js/**/*.js"],
55
theme: {
6-
extend: {},
6+
extend: {
7+
height: {
8+
'70%': '70%',
9+
}
10+
},
711
},
812
plugins: [require("tw-elements/dist/plugin.cjs")],
913
darkMode: "class"

0 commit comments

Comments
 (0)