Skip to content

Commit

Permalink
fix : mobile ui changed
Browse files Browse the repository at this point in the history
  • Loading branch information
junhyeongkim2 committed Sep 28, 2022
1 parent b420ccd commit 6f8b4c0
Show file tree
Hide file tree
Showing 9 changed files with 268 additions and 35 deletions.
207 changes: 207 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/Backbutton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function Backbutton() {

return (
<button
className="mt-28 md:mt-24 bg-green-500 p-4 md:pl-12 md:pr-12 rounded-3xl z-50 w-[7rem] md:w-[10rem] h-[3rem]"
className="mt-[8rem] md:mt-24 bg-green-500 p-4 md:pl-12 md:pr-12 rounded-3xl z-50 w-[8rem] h-[1rem] text-[0.7rem] md:w-[10rem] md:h-[3rem] align-middle "
onClick={() => navigate("/Mainpage")}
>
돌아가기
Expand Down
2 changes: 1 addition & 1 deletion src/components/Backbutton2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function Backbutton() {

return (
<button
className="mt-14 bg-green-500 p-4 pl-12 pr-12 rounded-3xl z-50 w-[10rem] h-[3rem]"
className="mt-14 bg-green-500 p-4 pl-12 pr-12 rounded-3xl z-50 w-[5rem] h-[3rem] md: w-[10rem] md:h-[3rem] align-middle "
onClick={() => navigate(-1)}
>
돌아가기
Expand Down
2 changes: 1 addition & 1 deletion src/components/Discriptionbutton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
function Discriptionbutton() {
return (
<button className="absoulte bg-button1 w-[4rem] h-[2rem] text-xs mr-2 rounded-xl ">
위인 설명
설명보기
</button>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Photouploadbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function Photouploadbox() {
const picFormData = new FormData();
picFormData.append("picuuid", picuuid);
var count = 0;
console.log(res);
if (task_id !== "") {
setLoading(true);
const getAnswer = async () => {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ function Slider() {
const greatslider = greats.map(great => (
<SwiperSlide>
<div
className="absolute w-[32rem] h-[32rem] -bottom-0 md:-bottom-4 bg-cover grid place-items-center"
className="absolute w-[20rem] h-[20rem] -bottom-0 md:w-[32rem] md:h-[32rem] md:-bottom-4 bg-cover grid place-items-center mb-[4rem] md:mb-[0rem]"
style={{ background: `url(${result})`, backgroundSize: "100%" }}
onClick={() => navigate("/Detailpage", { state: great })}
>
<div className="absolute w-[13rem] h-[17rem] z-40 bg-cover">
<div className="absolute w-[10rem] h-[14rem] md:w-[13rem] md:h-[17rem] z-40 bg-cover">
<img src={great.great_url} alt="" />
</div>

Expand Down Expand Up @@ -96,7 +96,7 @@ function Slider() {
}}
navigation={true}
modules={[Pagination, Navigation]}
className="mySwiper z-50"
className="mySwiper z-50 "
>
{greatslider}
</Swiper>
Expand Down
Loading

0 comments on commit 6f8b4c0

Please sign in to comment.