-
Notifications
You must be signed in to change notification settings - Fork 1
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 #55 from JNU-econovation/FE
feat: 1-2차 스프린트
- Loading branch information
Showing
18 changed files
with
243 additions
and
70 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import axios from "axios"; | ||
|
||
// Axios 기본 설정 | ||
axios.defaults.baseURL = import.meta.env.VITE_ERROR_API; | ||
axios.defaults.headers.common["Content-Type"] = "application/json"; | ||
axios.defaults.withCredentials = true; |
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
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { FaPlus } from "react-icons/fa6"; | ||
import { SlArrowDown } from "react-icons/sl"; | ||
import styled from "styled-components"; | ||
|
||
const GroupFilter = () => { | ||
const createGroupFilter = () => {}; | ||
return ( | ||
<GroupFilterFrame> | ||
<TextContainer> | ||
<span style={{ color: "rgb(60, 64, 67)", marginBottom: "0.5rem" }}> | ||
그룹 캘린더 | ||
</span> | ||
</TextContainer> | ||
<IconContainer> | ||
<GroupFilterPlusBtn onClick={createGroupFilter}> | ||
<FaPlus /> | ||
<SlArrowDown style={{ fontWeight: "bold", marginLeft: "0.5rem" }} /> | ||
</GroupFilterPlusBtn> | ||
</IconContainer> | ||
</GroupFilterFrame> | ||
); | ||
}; | ||
|
||
export default GroupFilter; | ||
|
||
const GroupFilterFrame = styled.div` | ||
margin: 1.3rem; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
const TextContainer = styled.div` | ||
/* 필요한 스타일이 있다면 여기에 추가 */ | ||
`; | ||
|
||
const IconContainer = styled.div` | ||
/* 필요한 스타일이 있다면 여기에 추가 */ | ||
`; | ||
const GroupFilterPlusBtn = styled.button` | ||
background: none; | ||
border: none; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { FaPlus } from "react-icons/fa6"; | ||
import { SlArrowDown } from "react-icons/sl"; | ||
import styled from "styled-components"; | ||
|
||
const IndividualFilter = () => { | ||
const createIndividualFilter = () => {}; | ||
return ( | ||
<IndividualFilterFrame> | ||
<TextContainer> | ||
<span style={{ color: "rgb(60, 64, 67)", marginBottom: "0.5rem" }}> | ||
개인 캘린더 | ||
</span> | ||
</TextContainer> | ||
<IconContainer> | ||
<IndividualFilterPlusBtn onClick={createIndividualFilter}> | ||
<FaPlus /> | ||
<SlArrowDown style={{ fontWeight: "bold", marginLeft: "0.5rem" }} /> | ||
</IndividualFilterPlusBtn> | ||
</IconContainer> | ||
</IndividualFilterFrame> | ||
); | ||
}; | ||
|
||
export default IndividualFilter; | ||
|
||
const IndividualFilterFrame = styled.div` | ||
margin: 1.3rem; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
const TextContainer = styled.div` | ||
/* 필요한 스타일이 있다면 여기에 추가 */ | ||
`; | ||
|
||
const IconContainer = styled.div` | ||
/* 필요한 스타일이 있다면 여기에 추가 */ | ||
`; | ||
const IndividualFilterPlusBtn = styled.button` | ||
background: none; | ||
border: none; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import styled from "styled-components"; | ||
|
||
const ProfileBar = () => { | ||
return <ProfileFrame></ProfileFrame>; | ||
}; | ||
|
||
export default ProfileBar; | ||
|
||
const ProfileFrame = styled.div` | ||
width: 20rem; | ||
height: 18.4375rem; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import styled from "styled-components"; | ||
import ScheduleToggle from "./ScheduleToggle"; | ||
|
||
const PublicFilter = () => { | ||
return ( | ||
<PublicFilterFrame> | ||
<div | ||
style={{ | ||
color: "rgb(60, 64, 67)", | ||
marginBottom: "0.5rem", | ||
}} | ||
> | ||
에코노 캘린더 | ||
</div> | ||
<SceduleType> | ||
<ScheduleToggle color={"#ff5b5b"} /> | ||
공식행사 | ||
</SceduleType> | ||
<SceduleType> | ||
<ScheduleToggle color={"#63ABFF"} /> | ||
주간발표 | ||
</SceduleType> | ||
</PublicFilterFrame> | ||
); | ||
}; | ||
|
||
export default PublicFilter; | ||
|
||
const PublicFilterFrame = styled.div` | ||
margin: 1.3rem; | ||
`; | ||
|
||
const SceduleType = styled.div` | ||
display: flex; | ||
align-items: center; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import styled from "styled-components"; | ||
import { useState } from "react"; | ||
|
||
const ScheduleToggle = ({ color }) => { | ||
const [clicked, setClicked] = useState(true); | ||
|
||
const handleOnClick = () => { | ||
setClicked(!clicked); | ||
}; | ||
|
||
return ( | ||
<> | ||
<ClickedBox | ||
type="checkbox" | ||
onClick={handleOnClick} | ||
color={color} | ||
defaultChecked={clicked} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
export default ScheduleToggle; | ||
|
||
const ClickedBox = styled.input` | ||
appearance: none; | ||
width: 1.4rem; | ||
height: 1.4rem; | ||
border: 1.5px solid gainsboro; | ||
opacity: 0.7; | ||
border-radius: 0.35rem; | ||
&:checked { | ||
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e"); | ||
background-color: ${(props) => props.color}; | ||
opacity: 0.7; | ||
} | ||
`; |
Oops, something went wrong.