๐ ์ค๋์ ์ฌ๊ธฐ๊น์ง..
1. ํํ๋ก์ ํธ ๊น ๋ ํฌ ๋ค์ ์์ฑ
2. ๋ฉ์ธํ์ด์ง(์ด์ )-ํ๋ฉ ์์ธํ์ด์ง(์ค๋) view๊น์ง๋ง ๊ตฌํ
โ ๋ฉ์ธํ์ด์ง view
import React from 'react';
import { useNavigate } from 'react-router-dom';
import {
MainContainer,
LeftContainer,
Logo,
P,
Button,
RightContainer,
Navbar,
NavbarBtn,
NavbarBtnDiv,
Body,
BannerImg,
FundingDiv,
FundingSection,
FundingGrid,
FundingImg,
// FundingNewline,
ProgressBar,
Progress,
BetweenDiv,
TogatherDiv,
Footer,
} from './HomeStyles';
// ์ด๋ฏธ์ง ํฌ๊ธฐ ์กฐ์ ํจ์
// const resizeImg = (imgFile) => {
// const maxWidth = 200;
// const maxHeight = 140;
// // canvas element๋ฅผ ์์ฑํ๊ณ 2D Context๋ฅผ ์ป์
// const canvas = document.createElement("canvas");
// const ctx = canvas.getContext("2d");
// // img element๋ฅผ ์์ฑํ๊ณ ์
๋ ฅ ์ด๋ฏธ์ง ํ์ผ๋ก ์ค์
// const img = new Image();
// img.src = URL.createObjectURL(imgFile);
// // ์กฐ์ ๋ ์ด๋ฏธ์ง Blob์ผ๋ก resolve๋๋ Promis๋ฅผ ๋ฐํ
// return new Promise((resolve) => {
// img.onload = () => {
// let width = img.width;
// let height = img.height;
// // ์ด๋ฏธ์ง ๋์ด๊ฐ 140๋ณด๋ค ์์ ๊ฒฝ์ฐ, ๋์ด๋ฅผ 140์ผ๋ก ํ์ฅ
// if (height < maxHeight) {
// width *= maxHeight / height;
// height = maxHeight;
// }
// // ์ด๋ฏธ์ง ๋์ด๊ฐ 140๋ณด๋ค ํฐ ๊ฒฝ์ฐ, ๋์ด๋ฅผ 140์ผ๋ก ์ถ์
// if (height > maxHeight) {
// width *= maxHeight / height;
// height = maxHeight;
// }
// canvas.width = maxWidth;
// canvas.height = maxHeight;
// // ์ด๋ฏธ์ง ๊ฐ์ด๋ฐ ์ ๋ ฌ
// const xOffset = (maxWidth - width) / 2;
// const yOffset = (maxHeight - height) / 2;
// canvas.width = maxWidth;
// canvas.height = maxHeight;
// ctx.drawImage(img, xOffset, yOffset, width, height);
// // canvas ๋ด์ฉ์ Blob์ผ๋ก ๋ณํํ๊ณ Promise๋ฅผ resolove
// canvas.toBlob((blob) => {
// resolve(blob);
// }, imgFile.type);
// };
// });
// };
// ์ด๋ฏธ์ง ํฌ๊ธฐ ์กฐ์
// const resizedImgBlob = await resizeImg(fundingImg);
// FormData๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง์ ๋ฐ์ดํฐ๋ฅผ ์๋ฒ์ ์ ์ก
// const formData = new FormData();
// formData.append("fundingImg", resizedImgBlob);
// formData.append("fundingTitle", fundingTitle);
// formData.append("fundingContents", fundingContents);
const Home = () => {
const navigate = useNavigate();
const meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover';
document.getElementsByTagName('head')[0].appendChild(meta);
return (
<MainContainer>
<LeftContainer>
<Logo>๐ Giftipie</Logo>
<P pt="25px" fs="16px" fw="800" pb="5px">
๊ธฐํํฐํ์ด์์
</P>
<P fs="16px" fw="800" pb="5px">
์ ๋ง ์ํ๋ ์ ๋ฌผ์
</P>
<P fs="16px" fw="800">
์ฃผ๊ณ ๋ฐ์์
</P>
<Button onClick={() => navigate('/')}>ํ๋ฉ ์์ํ๊ธฐ</Button>
</LeftContainer>
<RightContainer>
<Navbar>
<NavbarBtn fs="20px" fw="800" pl="15px">
๐ Giftipie
</NavbarBtn>
<NavbarBtnDiv pr="15px">
<NavbarBtn fs="13px" fw="600">
๋ฌธ์
</NavbarBtn>
<NavbarBtn fs="13px" fw="600">
๋ก๊ทธ์ธ/ํ์๊ฐ์
</NavbarBtn>
</NavbarBtnDiv>
</Navbar>
<Body>
<BannerImg src="/imgs/banner.png" alt="logo" />
<FundingDiv>
<P pt="30px" pl="20px" fs="14px" fw="800">
์ง๊ธ ์งํ์ค์ธ ํ๋ฉ
</P>
<FundingSection>
<FundingGrid onClick={() => navigate('/fundingdetail')}>
<FundingImg src="/imgs/airpodspro.jpeg" alt="logo" />
<P pt="10px" fs="12px" fw="800">
์ค๋ง์ด AirPods Pro ์คํ์
์๋์
, ๊ฐ์ง๋
๊ธฐ๋
์ผ๋ก ์ฌ์ฃผ์ธ์ ๐
{/* <FundingNewline></FundingNewline> */}
</P>
<P pt="10px" fs="10px" fw="800" color="gray">
์์ดํ ํ๋ก
</P>
<ProgressBar>
<Progress width={(65 / 100) * 100} />
</ProgressBar>
<BetweenDiv>
<P pt="8px" fs="10px" fw="800">
65%
</P>
<P pt="8px" pl="90px" fs="10px" fw="800">
13์ผ ๋จ์
</P>
</BetweenDiv>
</FundingGrid>
<FundingGrid onClick={() => navigate('/fundingdetail')}>
<FundingImg src="/imgs/airpodspro.jpeg" alt="logo" />
<P pt="10px" fs="12px" fw="800">
์ค๋ง์ด AirPods Pro ์คํ์
์๋์
, ๊ฐ์ง๋
๊ธฐ๋
์ผ๋ก ์ฌ์ฃผ์ธ์ ๐
</P>
<P pt="10px" fs="10px" fw="800" color="gray">
์์ดํ ํ๋ก
</P>
<ProgressBar>
<Progress width={(20 / 100) * 100} />
</ProgressBar>
<BetweenDiv>
<P pt="8px" fs="10px" fw="800">
20%
</P>
<P pt="8px" pl="90px" fs="10px" fw="800">
28์ผ ๋จ์
</P>
</BetweenDiv>
</FundingGrid>
<FundingGrid onClick={() => navigate('/fundingdetail')}>
<FundingImg src="/imgs/airpodspro.jpeg" alt="logo" />
<P pt="10px" fs="12px" fw="800">
์ค๋ง์ด AirPods Pro ์คํ์
์๋์
, ๊ฐ์ง๋
๊ธฐ๋
์ผ๋ก ์ฌ์ฃผ์ธ์ ๐
</P>
<P pt="10px" fs="10px" fw="800" color="gray">
์์ดํ ํ๋ก
</P>
<ProgressBar>
<Progress width={(20 / 100) * 100} />
</ProgressBar>
<BetweenDiv>
<P pt="8px" fs="10px" fw="800">
20%
</P>
<P pt="8px" pl="90px" fs="10px" fw="800">
28์ผ ๋จ์
</P>
</BetweenDiv>
</FundingGrid>
<FundingGrid onClick={() => navigate('/fundingdetail')}>
<FundingImg src="/imgs/airpodspro.jpeg" alt="logo" />
<P pt="10px" fs="12px" fw="800">
์ค๋ง์ด AirPods Pro ์คํ์
์๋์
, ๊ฐ์ง๋
๊ธฐ๋
์ผ๋ก ์ฌ์ฃผ์ธ์ ๐
</P>
<P pt="10px" fs="10px" fw="800" color="gray">
์์ดํ ํ๋ก
</P>
<ProgressBar>
<Progress width={(20 / 100) * 100} />
</ProgressBar>
<BetweenDiv>
<P pt="8px" fs="10px" fw="800">
20%
</P>
<P pt="8px" pl="90px" fs="10px" fw="800">
28์ผ ๋จ์
</P>
</BetweenDiv>
</FundingGrid>
</FundingSection>
</FundingDiv>
<TogatherDiv>
<P pt="30px" pl="30px" fs="14px" fw="800">
Giftipie์์ ํจ๊ป ํ๋ ๊ธฐ์จ
</P>
<BetweenDiv>
<P pt="40px" pl="30px" fs="13px" fw="800">
ํ๋ฉ์ ์ฐธ์ฌํ ์ฌ๋
</P>
<P pt="40px" pr="30px" fs="13px" fw="800">
11๋ช
</P>
</BetweenDiv>
<BetweenDiv>
<P pt="20px" pl="30px" fs="13px" fw="800">
์ ๋ฌผ์ ๋ฐ์ ์ฌ๋
</P>
<P pt="20px" pr="30px" fs="13px" fw="800">
11๋ช
</P>
</BetweenDiv>
<BetweenDiv>
<P pt="20px" pl="30px" fs="13px" fw="800">
๋ชจ์ธ ํ๋ฉ ๊ธ์ก
</P>
<P pt="20px" pr="30px" fs="13px" fw="800">
89,345,000์
</P>
</BetweenDiv>
</TogatherDiv>
</Body>
<Footer>Footer</Footer>
</RightContainer>
</MainContainer>
);
};
export default Home;
import styled from "styled-components";
// ์ ์ฒด ์ปจํ
์ด๋
export const MainContainer = styled.div`
display: flex;
justify-content: center; // ์์ ํจ
/* width: 1200px; */
max-width: 1200px; // ์์ ํจ
min-height: 100vh;
margin: 0 auto;
flex-wrap: wrap;
`;
// ์ผ์ชฝ ์ปจํ
์ด๋
export const LeftContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 500px;
height: 100vh;
padding: 20px;
border: 1px solid lightgray;
border-radius: 8px;
margin-right: 100px;
@media (max-width: 1024px) {
display: none;
}
`;
export const Logo = styled.h1`
font-size: 24px;
font-weight: 800;
`;
export const P = styled.p`
padding-top: ${(props) => props.pt};
padding-bottom: ${(props) => props.pb};
padding-left: ${(props) => props.pl};
padding-right: ${(props) => props.pr};
font-size: ${(props) => props.fs};
font-weight: ${(props) => props.fw};
color: ${(props) => props.color};
align-items: center;
`;
export const Button = styled.button`
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
padding: 10px;
background-color: orange;
border-radius: 7px;
color: white;
font-size: 15px;
font-weight: 600;
margin-top: 30px;
margin-bottom: 20px;
&:hover {
color: white;
background-color: violet;
cursor: pointer;
}
`;
// ์ค๋ฅธ์ชฝ ์ปจํ
์ด๋
export const RightContainer = styled.div`
position: relative;
/* width: 470px; */
width: 442px;
/* margin-left: auto; */
border: 1px solid lightgray;
/* @media (max-width: 1024px) { */
@media (max-width: 442px) {
width: 100%;
}
`;
// ๋ค๋ธ๋ฐ ์์ญ
export const Navbar = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 70px;
`;
export const NavbarBtn = styled.button`
font-size: ${(props) => props.fs};
font-weight: ${(props) => props.fw};
padding-left: ${(props) => props.pl};
padding-right: ${(props) => props.pr};
`;
export const NavbarBtnDiv = styled.div`
flex-direction: row;
padding-right: ${(props) => props.pr};
`;
// ๋ฐ๋ ์์ญ
export const Body = styled.div`
font-size: 24px;
font-weight: 800;
height: 1500px;
`;
export const BannerImg = styled.img`
width: 100%;
/* max-width: 470px; */
max-width: 442px;
height: auto;
`;
export const FundingDiv = styled.div`
justify-content: center;
width: 100%;
/* max-width: 470px; */
max-width: 442px;
height: auto;
`;
export const FundingSection = styled.div`
display: flex;
justify-content: space-around;
flex-wrap: wrap;
/* width: 100%; */
gap: 10px;
padding: 10px;
`;
export const FundingGrid = styled.div`
/* width: 200px; */
/* width: 195px; */
width: 100%;
max-width: 190px;
/* @media (max-width: 470px) { */
/* @media (max-width: 195px) {
width: 100%; // FundingGrid๊ฐ ๋ถ๋ชจ ์ปจํ
์ด๋์ ๊ฝ ์ฐจ๋๋ก ์ค์
} */
`;
export const FundingImg = styled.img`
/* width: 200px; */
max-width: 190px;
max-height: 140px;
width: 100%;
height: 100%;
border-radius: 8px;
margin-top: 10px;
`;
export const FundingNewline = styled.div`
width: 100%;
height: 12px;
`;
export const ProgressBar = styled.div`
width: 100%;
height: 10px;
background-color: #dedede;
border-radius: 12px;
font-weight: 600;
font-size: 0.8rem;
margin-top: 20px;
overflow: hidden;
`;
export const Progress = styled.div`
width: ${(props) => props.width}%;
height: 10px;
padding: 0;
text-align: center;
background-color: orange;
border-radius: 15px; // ์ถ๊ฐ
color: #111;
`;
export const BetweenDiv = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
`;
export const TogatherDiv = styled.div`
margin-top: 20px;
/* width: 470px; */
width: 442px;
/* height: 200px; */
height: 210px;
background-color: orange;
`;
export const Footer = styled.div`
border: 1px solid lightgray;
font-size: 24px;
font-weight: 800;
height: 80px;
`;
โ ํ๋ฉ ์์ธํ์ด์ง view
import React from 'react';
import {
MainContainer,
LeftContainer,
Logo,
P,
Button,
RightContainer,
Navbar,
NavbarBtn,
NavbarBtnDiv,
Body,
BannerImg,
FundingDiv,
FundingSection,
FundingGrid,
FundingImg,
SponsorImg,
ProgressBar,
Progress,
BetweenDiv,
TogatherDiv,
Footer,
} from './FundingDetailStyles';
const FundingDetail = () => {
const meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover';
document.getElementsByTagName('head')[0].appendChild(meta);
return (
<MainContainer>
<LeftContainer>
<Logo>๐ Giftipie</Logo>
<P pt="25px" fs="16px" fw="800" pb="5px">
๊ธฐํํฐํ์ด์์
</P>
<P fs="16px" fw="800" pb="5px">
์ ๋ง ์ํ๋ ์ ๋ฌผ์
</P>
<P fs="16px" fw="800">
์ฃผ๊ณ ๋ฐ์์
</P>
<Button mt="20px" w="200px" h="50px" fs="17px" color="white">
ํ๋ฉ ์์ํ๊ธฐ
</Button>
</LeftContainer>
<RightContainer>
<Navbar>
<NavbarBtn fs="20px" fw="800" pl="15px">
๐ Giftipie
</NavbarBtn>
<NavbarBtnDiv pr="15px">
<NavbarBtn fs="13px" fw="600">
๋ฌธ์
</NavbarBtn>
<NavbarBtn fs="13px" fw="600">
๋ก๊ทธ์ธ/ํ์๊ฐ์
</NavbarBtn>
</NavbarBtnDiv>
</Navbar>
<Body>
<BannerImg src="/imgs/airpodspro2.jpg" alt="image" />
<FundingDiv>
<P pt="20px" fs="13px" fw="800">
์งํ์ค
</P>
<P pt="10px" fs="20px" fw="900">
์ธ์ ์ฒซ ์์ดํ์ ์ ๋ฌผํด์ฃผ์ธ์ ๐
</P>
<BetweenDiv>
<P pt="10px" fs="15px" fw="800">
D-5
</P>
<P pt="10px" fs="15px" fw="800">
2์ 1์ผ 23:59 ๋ง๊ฐ
</P>
</BetweenDiv>
<P pt="10px" fs="15px" fw="800">
์ค๋ค์ธ
</P>
<ProgressBar>
<Progress width={(65 / 100) * 100} />
</ProgressBar>
<BetweenDiv>
<P pt="8px" fs="15px" fw="800">
65%
</P>
<P pt="8px" pl="90px" fs="15px" fw="800">
13์ผ ๋จ์
</P>
</BetweenDiv>
</FundingDiv>
<TogatherDiv bc="orange">
<P pt="30px" pl="30px" fs="14px" fw="800">
์๋
ํ์ธ์ ์ฌ๋ฌ๋ถ
<br />
์ผ๋จ ์ฌ๊ธฐ๊น์ง ์์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค ใ
ใ
</P>
<P pt="20px" pl="30px" fs="14px" fw="800">
์ด๋ฒ 20๋ฒ์งธ ์์ผ๋ก
<br />
์ธ์ ์ฒซ ์์ดํ์ ๊ฐ์ง๊ณ ์ถ์ต๋๋ค!!!
</P>
<P pt="20px" pl="30px" fs="14px" fw="800">
์ฌ๋ฌ๋ถ์ ์์คํ ์ ๋ฌผ ๊ณ ์ด๊ณ ์ด ๋ชจ์๋ฉด์
<br />
์๋ฐ์ด๋ฐ ์ฌ์ฉํ๊ฒ ์ต๋๋ค.
<br />
๋์์ฃผ์ธ์ ๐๐๐
<br />
</P>
</TogatherDiv>
<FundingDiv>
<P pt="20px" fs="16px" fw="900">
ํ์์
</P>
<P pt="20px" fs="13px" fw="800">
์**
</P>
<SponsorImg src="/imgs/iu.jpg" alt="image" />
<P pt="20px" fs="13px" fw="800">
์ก**
</P>
<SponsorImg src="/imgs/songjoongy.jpg" alt="logo" />
<P pt="20px" fs="13px" fw="800">
์ **
</P>
<SponsorImg src="/imgs/junjihyun.jpg" alt="logo" />
<P pt="20px" pl="160px" fs="14px" fw="800">
์ ์ฒด๋ณด๊ธฐ โถ
</P>
</FundingDiv>
<FundingDiv>
<P pt="20px" fs="16px" fw="900">
ํ๋ฉ ์ฐธ์ฌํ๊ธฐ
</P>
<ProgressBar>
<Progress width={(36 / 100) * 100} />
</ProgressBar>
<BetweenDiv>
<P pt="8px" fs="15px" fw="800">
36%
</P>
<P pt="8px" pl="90px" fs="15px" fw="800">
210,500์ ๋จ์์ด์
</P>
</BetweenDiv>
<Button mt="30px" w="375px" h="60px">
<BetweenDiv>
<P pt="2px" pl="20px" fs="15px" fw="800" color="black">
์ปคํผ ํ์ ์ ๋ฌผํ๊ธฐ
</P>
<P pt="2px" pr="20px" fs="15px" fw="700" color="black">
5,000์
</P>
</BetweenDiv>
</Button>
<Button mt="10px" w="375px" h="60px">
<BetweenDiv>
<P pt="2px" pl="20px" fs="15px" fw="800" color="black">
ํ์ธํธ ์์ด์คํฌ๋ฆผ ์ ๋ฌผํ๊ธฐ
</P>
<P pt="2px" pr="20px" fs="15px" fw="700" color="black">
10,000์
</P>
</BetweenDiv>
</Button>
<Button mt="10px" w="375px" h="60px">
<BetweenDiv>
<P pt="2px" pl="20px" fs="15px" fw="800" color="black">
์ํ๋๋งํผ ์ ๋ฌผํ๊ธฐ
</P>
<P pt="2px" pr="20px" fs="15px" fw="700" color="black">
์ง์ ์
๋ ฅ
</P>
</BetweenDiv>
</Button>
<Button mt="10px" w="375px" h="60px">
<BetweenDiv>
<P pt="2px" pl="20px" fs="15px" fw="800" color="black">
์ด ํ๋ฉ์ ๋๋ด๋ฌ ์๋ค
</P>
<P pt="2px" pr="20px" fs="15px" fw="700" color="black">
210,500์
</P>
</BetweenDiv>
</Button>
</FundingDiv>
<TogatherDiv bc="violet">
<P pt="30px" pl="30px" fs="16px" fw="800">
Giftipie์์ ํจ๊ป ํ๋ ๊ธฐ์จ
</P>
<BetweenDiv>
<P pt="40px" pl="30px" fs="13px" fw="800">
ํ๋ฉ์ ์ฐธ์ฌํ ์ฌ๋
</P>
<P pt="40px" pr="30px" fs="13px" fw="800">
11๋ช
</P>
</BetweenDiv>
<BetweenDiv>
<P pt="20px" pl="30px" fs="13px" fw="800">
์ ๋ฌผ์ ๋ฐ์ ์ฌ๋
</P>
<P pt="20px" pr="30px" fs="13px" fw="800">
11๋ช
</P>
</BetweenDiv>
<BetweenDiv>
<P pt="20px" pl="30px" fs="13px" fw="800">
๋ชจ์ธ ํ๋ฉ ๊ธ์ก
</P>
<P pt="20px" pr="30px" fs="13px" fw="800">
200,000์
</P>
</BetweenDiv>
</TogatherDiv>
<Button mt="30px" w="442px" h="70px" color="black" fs="19px">
์ ๋ฌผํ๊ธฐ
</Button>
</Body>
<Footer>Footer</Footer>
</RightContainer>
</MainContainer>
);
};
export default FundingDetail;
import styled from "styled-components";
// ์ ์ฒด ์ปจํ
์ด๋
export const MainContainer = styled.div`
display: flex;
justify-content: center; // ์์ ํจ
/* width: 1200px; */
max-width: 1200px; // ์์ ํจ
min-height: 100vh;
margin: 0 auto;
flex-wrap: wrap;
`;
// ์ผ์ชฝ ์ปจํ
์ด๋
export const LeftContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 500px;
height: 100vh;
padding: 20px;
border: 1px solid lightgray;
border-radius: 8px;
margin-right: 100px;
@media (max-width: 1024px) {
display: none;
}
`;
export const Logo = styled.h1`
font-size: 24px;
font-weight: 800;
`;
export const P = styled.p`
padding-top: ${(props) => props.pt};
padding-bottom: ${(props) => props.pb};
padding-left: ${(props) => props.pl};
padding-right: ${(props) => props.pr};
font-size: ${(props) => props.fs};
font-weight: ${(props) => props.fw};
color: ${(props) => props.color};
align-items: center;
`;
export const Button = styled.button`
justify-content: center;
align-items: center;
width: ${(props) => props.w};
height: ${(props) => props.h};
padding: 10px;
background-color: orange;
border-radius: 7px;
color: ${(props) => props.color};
font-size: ${(props) => props.fs};
font-weight: 600;
margin-top: ${(props) => props.mt};
margin-bottom: ${(props) => props.mb};
&:hover {
color: white;
background-color: violet;
cursor: pointer;
}
`;
// ์ค๋ฅธ์ชฝ ์ปจํ
์ด๋
export const RightContainer = styled.div`
position: relative;
/* width: 470px; */
width: 442px;
/* margin-left: auto; */
border: 1px solid lightgray;
/* @media (max-width: 1024px) { */
@media (max-width: 442px) {
width: 100%;
}
`;
// ๋ค๋ธ๋ฐ ์์ญ
export const Navbar = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 70px;
`;
export const NavbarBtn = styled.button`
font-size: ${(props) => props.fs};
font-weight: ${(props) => props.fw};
padding-left: ${(props) => props.pl};
padding-right: ${(props) => props.pr};
`;
export const NavbarBtnDiv = styled.div`
flex-direction: row;
padding-right: ${(props) => props.pr};
`;
// ๋ฐ๋ ์์ญ
export const Body = styled.div`
font-size: 24px;
font-weight: 800;
height: 2100px;
`;
export const BannerImg = styled.img`
width: 100%;
/* max-width: 470px; */
max-width: 442px;
height: auto;
`;
export const FundingDiv = styled.div`
justify-content: center;
width: 100%;
/* max-width: 470px; */
max-width: 442px;
height: auto;
padding: 30px;
`;
export const FundingSection = styled.div`
display: flex;
justify-content: space-around;
flex-wrap: wrap;
/* width: 100%; */
gap: 10px;
padding: 10px;
`;
export const FundingGrid = styled.div`
/* width: 200px; */
/* width: 195px; */
width: 100%;
max-width: 190px;
/* @media (max-width: 470px) { */
/* @media (max-width: 195px) {
width: 100%; // FundingGrid๊ฐ ๋ถ๋ชจ ์ปจํ
์ด๋์ ๊ฝ ์ฐจ๋๋ก ์ค์
} */
`;
export const FundingImg = styled.img`
/* width: 200px; */
max-width: 190px;
max-height: 140px;
width: 100%;
height: 100%;
border-radius: 8px;
margin-top: 10px;
`;
export const SponsorImg = styled.img`
/* width: 200px; */
width: 60px;
height: 60px;
border-radius: 100px;
margin-top: 10px;
`;
export const FundingNewline = styled.div`
width: 100%;
height: 12px;
`;
export const ProgressBar = styled.div`
width: 100%;
height: 10px;
background-color: #dedede;
border-radius: 12px;
font-weight: 600;
font-size: 0.8rem;
margin-top: 20px;
overflow: hidden;
padding-left: ${(props) => props.pl};
padding-right: ${(props) => props.pr};
`;
export const Progress = styled.div`
width: ${(props) => props.width}%;
height: 10px;
padding: 0;
text-align: center;
background-color: orange;
border-radius: 15px; // ์ถ๊ฐ
color: #111;
padding-left: ${(props) => props.pl};
padding-right: ${(props) => props.pr};
`;
export const BetweenDiv = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
`;
export const TogatherDiv = styled.div`
margin-top: 20px;
/* width: 470px; */
width: 442px;
/* height: 200px; */
height: 215px;
background-color: ${(props) => props.bc};
`;
export const Footer = styled.div`
border: 1px solid lightgray;
font-size: 24px;
font-weight: 800;
height: 80px;
`;