Skip to content

Commit

Permalink
chore: 스타일 코드 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
kanghaeun committed Aug 14, 2024
1 parent bc0cbb4 commit 95a8220
Show file tree
Hide file tree
Showing 6 changed files with 396 additions and 0 deletions.
119 changes: 119 additions & 0 deletions FE/src/styles/EconoCalendar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
import styled from "styled-components";

export const FulCalendarWrapper = styled.div`
width: 100%;
margin-top: 1rem;
.fc-toolbar-chunk {
display: flex;
.fc-toolbar-chunk > :last-child {
margin-right: 1rem;
}
}
.fc-prev-button {
background-color: unset;
color: #6c757d;
border: none;
&:hover {
background-color: unset;
color: #6c757d;
border: none;
}
}
.fc-next-button {
background-color: unset;
color: #6c757d;
border: none;
&:hover {
background-color: unset;
color: #6c757d;
border: none;
}
}
.fc-prev-button:focus,
.fc-next-button:focus {
outline: none;
box-shadow: none;
}
.fc-today-button {
background-color: unset;
color: #595959;
border: 1px solid #cbcbcb;
&:hover {
background-color: unset;
color: #595959;
border: 1px solid #cbcbcb;
}
}
.fc-today-button[disabled] {
background-color: unset;
color: #595959;
border: 1px solid #cbcbcb;
}
.fc-day-sun a {
color: red;
text-decoration: none;
}
.fc-daygrid-day-top {
width: 2rem;
margin-left: 0.3rem;
}
.fc-day-today {
background-color: #ffffff !important;
}
.fc-day-today .fc-daygrid-day-top {
background: #ff9999 !important;
border-radius: 50% !important;
color: #fff;
margin-left: 0.5rem;
width: 1.53rem;
display: flex;
justify-content: center;
}
.fc-day-today .fc-daygrid-day-frame {
margin-top: 0.2rem;
}
.fc-day-today .fc-daygrid-day-number {
margin-top: 0.1rem;
width: 2rem;
}
.fc-daygrid-day-number {
margin-top: 0.3rem;
margin-left: -0.06rem;
}
.fc-toolbar-title {
margin-top: 0.2em;
}
.fc-scrollgrid-sync-inner {
border: none;
}
.fc-col-header-cell {
border-right: none;
border-left: none;
}
.fc-createDateButton-button {
background-color: #fff;
border-color: #cbcbcb;
color: #595959;
margin-right: 1rem;
}
.fc-loginLogoutButton-button {
background-color: #fff;
border-color: #cbcbcb;
color: #595959;
margin-right: 1rem;
}
.fc-event-title-container {
height: 1.3rem;
display: flex;
align-items: center;
font-size: 0.95rem;
margin-left: 0.3rem;
}
.fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
margin-left: 0.5rem;
}
`;
64 changes: 64 additions & 0 deletions FE/src/styles/pages/CalendarModify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import styled from "styled-components";

export const Layout = styled.div`
width: 50rem;
`;
export const DetailInfoContainer = styled.div`
margin-left: 4rem;
`;
export const TitleInput = styled.input`
width: 100%;
height: 2rem;
margin-bottom: 2rem;
margin-top: 2rem;
margin-left: 0.7rem;
font-size: 1.5rem;
border: none;
border-bottom: 1px solid #495057;
outline: none;
`;
export const HeaderContainer = styled.div`
display: flex;
margin-left: 1rem;
`;
export const SaveBtn = styled.button`
width: 4rem;
height: 2rem;
border-radius: 0.25rem;
margin-top: 3rem;
border: 0.5px solid #858585;
outline: none;
cursor: pointer;
right: 0;
background-color: ${(props) => (props.disabled ? "#e0e0e0" : "white")};
color: ${(props) => (props.disabled ? "#9e9e9e" : "#3e3e3e")};
border: ${(props) => (props.disabled ? "none" : "0.5px solid #858585")};
&:disabled {
cursor: default;
}
`;

export const MemoWrapper = styled.div`
.ql-editor {
height: 110px;
overflow-y: auto;
}
.ql-editor::before {
font-style: normal !important;
color: #999 !important;
}
`;

export const PlaceInput = styled.input`
border: none;
width: 100%;
outline: none;
margin: 1.1rem 0;
`;

export const DateRowBox = styled.div`
display: flex;
align-items: center;
gap: 0.7rem;
`;
69 changes: 69 additions & 0 deletions FE/src/styles/pages/LoginPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import styled from "styled-components";

export const WelcomeLoginContainer = styled.div`
position: absolute;
top: 20%;
left: 15%;
h2 {
font-family: "Pretendard-bold";
font-size: 3rem;
font-weight: 900;
line-height: 3.7rem;
}
h3 {
line-height: 1.5rem;
}
`;

export const SlackBtn = styled.button`
position: relative;
padding: 1rem 8.5rem 1rem 10.5rem;
border-radius: 1rem;
border: none;
background-color: #e1e1e1;
font-size: 1rem;
color: #6f6f6f;
font-weight: 700;
cursor: pointer;
`;

export const SlackImage = styled.img`
left: 8rem;
bottom: 0.9rem;
position: absolute;
`;

export const InfoText = styled.h3`
margin-top: 1.7rem;
margin-bottom: 10rem;
`;

export const BackgroundImg = styled.img`
margin-left: 48%;
margin-top: 8%;
height: 35rem;
`;

export const CharacterImg = styled.img`
position: absolute;
top: 25%;
left: 60%;
`;

export const LoadingContainer = styled.div`
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, 0.8);
`;

export const LoadingImage = styled.img`
width: 100px;
height: auto;
`;
66 changes: 66 additions & 0 deletions FE/src/styles/pages/MainPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import styled from "styled-components";

export const SideBarContainer = styled.div`
width: 15.625rem;
height: 98.1vh;
margin-top: 1rem;
display: flex;
flex-direction: column;
`;

export const Layout = styled.div`
display: flex;
width: 100%;
`;

export const LineBox = styled.div`
width: 100%;
height: 1.25rem;
border: 1px solid #ddd;
border-right: none;
margin-top: 0.65rem;
`;

export const LogoBox = styled.div`
font-size: 2rem;
font-weight: bold;
margin-left: 1.5rem;
margin-top: 0.3rem;
color: #ff9999;
margin-bottom: 1rem;
`;

export const ScrollableWrapper = styled.div`
flex-grow: 1;
overflow-y: auto;
overflow-x: hidden;
/* 기본적으로 스크롤바를 숨김 */
scrollbar-width: thin;
scrollbar-color: transparent transparent;
/* 호버 시 스크롤바 표시 */
&:hover {
scrollbar-color: #c6c6c6 transparent;
}
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: transparent;
border-radius: 20px;
border: 3px solid transparent;
}
`;

export const FilterFrameBox = styled.div`
display: flex;
flex-direction: column;
justify-content: space-between;
`;
File renamed without changes.
Loading

0 comments on commit 95a8220

Please sign in to comment.