Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 🔖 운영 서버 이관 #981

Merged
merged 124 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
7b5c570
♻️ RetrospectView 페이지 로딩 스피너 추가
dle234 Oct 24, 2024
8ffe977
Merge branch 'FE/dev' of https://github.com/woowacourse-teams/2024-co…
dle234 Oct 24, 2024
07bb63e
Merge pull request #923 from woowacourse-teams/FE/dev
greetings1012 Oct 24, 2024
11f4ec6
:ambulance: 라우팅 버그 픽스
anttiey Oct 25, 2024
2ee51fe
Merge pull request #924 from woowacourse-teams/FE/dev
anttiey Oct 25, 2024
41b8e70
♻️ common 폴더명 _common으로 수정
greetings1012 Oct 29, 2024
147bf15
♻️ 폴더 구조 정리
greetings1012 Oct 29, 2024
bfee8f7
♻️ 폴더 구조 수정
greetings1012 Oct 29, 2024
7cef797
🐛 lint 오류 수정
greetings1012 Oct 29, 2024
27f1ac2
🐛 빌드 오류 수정
greetings1012 Oct 29, 2024
692b45f
Merge pull request #935 from woowacourse-teams/FE/feature/#931
greetings1012 Oct 29, 2024
f1590b3
💄 Theme 색상 상수 수정
greetings1012 Oct 29, 2024
51b9aaa
💄 변경된 색 상수에 맞춰 styles 수정
greetings1012 Oct 29, 2024
1ab5e0e
💄 Primary 색에 맞춰 button 스타일 수정
greetings1012 Oct 29, 2024
3dc2a5e
Merge pull request #937 from woowacourse-teams/FE/feature/#936
greetings1012 Oct 30, 2024
b4106e5
:recycle: Dropdown 폴더 구조 정리
anttiey Oct 29, 2024
40d218a
:recycle: Dropdown 옵션 통일
anttiey Oct 30, 2024
1916945
:recycle: Dropdown 스타일 변경
anttiey Oct 30, 2024
7e066b4
:recycle: HiddenDropdown 삭제
anttiey Oct 30, 2024
47e68de
:recycle: 유용한 props 전달 추가
anttiey Oct 30, 2024
70df929
:sparkles: Dropdown Label 합성 컴포넌트 추가
anttiey Oct 30, 2024
8dd3848
♻️ 버튼 컴포넌트 리팩터링
greetings1012 Oct 30, 2024
e47062b
♻️ 버튼 리팩터링
greetings1012 Oct 30, 2024
3c1b608
💄 Primary 색상 outlined 버튼 색상 어둡게 수정(대비 조정)
greetings1012 Oct 30, 2024
01afd42
🎨 Css를 넣어주던 버튼들 props 전달로 수정
greetings1012 Oct 30, 2024
96a3874
💄 너무 밝거나 너무 옅은 색이면 색 변화가 크도록 수정
greetings1012 Oct 30, 2024
dcf1f53
🩹 필요없는 변수 삭제
greetings1012 Oct 30, 2024
da681dd
♻️ 버튼 수정
greetings1012 Oct 30, 2024
f30a017
♻️ 기본 borderRadius 지정
greetings1012 Oct 30, 2024
c1bfe73
:recycle: PairRoleInput 드롭다운 리팩터링
anttiey Oct 31, 2024
0f14afe
:recycle: ReferenceCard 드롭다운 리팩터링
anttiey Oct 31, 2024
0d52d8c
Merge pull request #941 from woowacourse-teams/FE/feature/#933
anttiey Oct 31, 2024
c9bb674
Merge remote-tracking branch 'origin/FE/dev' into FE/feature/#934
greetings1012 Oct 31, 2024
74505c0
🔥 충돌 파일 제거
greetings1012 Oct 31, 2024
c300aa0
🔥 버튼 css 주입 제거
greetings1012 Oct 31, 2024
cd577d3
Merge pull request #940 from woowacourse-teams/FE/feature/#934
greetings1012 Oct 31, 2024
5b97c34
♻️ Input 컴포넌트 합성 컴포넌트로 리팩토링
dle234 Nov 1, 2024
6537ab0
♻️ Input 컴포넌트 content 분리
dle234 Nov 1, 2024
50200fc
♻️ Onboarding 페이지 이름,시간 입력 코드 수정
dle234 Nov 1, 2024
b88de45
✨ Input reset 버튼 추가
dle234 Nov 1, 2024
004e5fc
♻️ 페어 깃허브 입력 모달 input ,footer 수정
dle234 Nov 3, 2024
5eb347b
🚚 Input 경로 수정
dle234 Nov 3, 2024
79d2089
♻️ 카테고리 관련 input 수정
dle234 Nov 3, 2024
c6ec12b
♻️ Todo, SignUp 에 Input 변경사항 반영
dle234 Nov 3, 2024
ab4deba
♻️ Input 컴포넌트 수정사항 반영
dle234 Nov 3, 2024
d7fd208
💄 Input 컴포넌트 스토리 구현
dle234 Nov 3, 2024
9c71097
💄 Message 색깔 수정
dle234 Nov 3, 2024
c3d0cc9
:recycle: 카테고리 쿼리, 뮤테이션 리팩터링
anttiey Nov 5, 2024
fc0bb6a
:recycle: 레퍼런스 및 회고 쿼리, 뮤테이션 리팩터링
anttiey Nov 5, 2024
8b0bb8a
:recycle: 쿼리, 뮤테이션 이름 및 로직 통일
anttiey Nov 6, 2024
61dcdb4
✨ IconButton 구현
greetings1012 Nov 7, 2024
65d749f
♻️ 카테고리 form 네이밍 수정
dle234 Nov 13, 2024
0c986bb
♻️ Input props 에 focusColor 타입 수정
dle234 Nov 13, 2024
80b021f
♻️ Input Message Props 순서 조정
dle234 Nov 13, 2024
04828fe
♻️ Input props 순서 조정
dle234 Nov 13, 2024
f526eb3
♻️ Input focusColor -> color 로 네이밍 수정
dle234 Nov 13, 2024
a2c5323
Merge branch 'FE/feature/#932' of https://github.com/woowacourse-team…
dle234 Nov 13, 2024
6a9292d
🐛 Input ref 제거
dle234 Nov 13, 2024
c3ba999
🚚 InputGroup -> InputField 로 네이밍 수정
dle234 Nov 13, 2024
f295146
🐛 Lint build 오류 수정
dle234 Nov 13, 2024
2316326
💄 Storybook 안쓰는 import 문 제거
dle234 Nov 13, 2024
61305b7
:recycle: 쿼리, 뮤테이션 파일 이름 변경
anttiey Nov 13, 2024
12f097c
🔥 필요없는 width prop 제거
greetings1012 Nov 13, 2024
14bcf28
🩹 변수명 통일성을 위해 수정
greetings1012 Nov 13, 2024
a2e8a5d
Merge pull request #953 from woowacourse-teams/FE/feature/#943
anttiey Nov 13, 2024
ff32b4a
🐛 특정 색상에서 자동 색 계산이 되지 않던 문제 해결
greetings1012 Nov 13, 2024
5c7c5b3
✨ 배경색을 받아 자동으로 계산할 수 있도록 구현
greetings1012 Nov 13, 2024
09efc9a
✅ 스토리북 작성
greetings1012 Nov 13, 2024
7f8892c
🎨 Icon이 color를 가질 수 있게 수정
greetings1012 Nov 13, 2024
bc0671d
Merge pull request #946 from woowacourse-teams/FE/feature/#932
dle234 Nov 14, 2024
81e6805
🎨 색 변환 로직 수정
greetings1012 Nov 15, 2024
1f7fbbf
🎨 중복되는 isActive 제거 및 disabled 스타일 로직 개선
greetings1012 Nov 15, 2024
ae5db62
💄 아이콘버튼 크기 조절
greetings1012 Nov 15, 2024
c1f3d43
♻️ 바뀐 IconButton에 맞게 각 버튼 리팩터링
greetings1012 Nov 15, 2024
2db5201
💄 Lint:css:fix 실행
greetings1012 Nov 15, 2024
2f30a83
🚚 IconButton 폴더 위치 변경
greetings1012 Nov 15, 2024
725f5ef
🎨 필요없는 style 선언 삭제
greetings1012 Nov 18, 2024
5d64aa0
Merge branch 'FE/dev' into FE/feature/#942
greetings1012 Nov 18, 2024
f5accb5
🐛 빌드 오류 수정
greetings1012 Nov 18, 2024
6009a59
Merge pull request #957 from woowacourse-teams/FE/feature/#942
greetings1012 Nov 18, 2024
3d71eb4
:lipstick: 컬러 코드 추가
anttiey Nov 13, 2024
fae2601
:lipstick: 변경된 컬러 코드에 맞춰 스타일 조정
anttiey Nov 13, 2024
ea11a16
:lipstick: 회고 페이지 스타일 조정
anttiey Nov 13, 2024
0b40c4a
:lipstick: 에러 페이지 및 로딩 페이지 스타일 조정
anttiey Nov 13, 2024
49e6bbd
:lipstick: 버튼 크기 및 borderRadius 조정
anttiey Nov 13, 2024
82d453b
:recycle: 불필요한 파일 삭제 및 파일명 변경
anttiey Nov 15, 2024
29cdb53
:recycle: Input 컴포넌트 세부 사항 변경
anttiey Nov 15, 2024
3127b8f
:recycle: Input 컴포넌트 리셋 버튼 변경
anttiey Nov 18, 2024
e9ba613
✨ TextButton 공통 컴포넌트 구현
dle234 Nov 18, 2024
9344639
♻️ Header 컴포넌트에 TextButton 적용
dle234 Nov 18, 2024
9f1fc1c
♻️ PairNameInput 컴포넌트에 TextButton 적용
dle234 Nov 18, 2024
c3d9b13
💄 TextButton storybook 작성
dle234 Nov 18, 2024
9571ad2
💄 TextButton 기본 폰트 색상 변경
dle234 Nov 18, 2024
809f0cd
♻️ Button 컴포넌트 onClick props 제거
dle234 Nov 18, 2024
6979ef4
:lipstick: 불필요한 모달 CloseButton 스타일 제거
anttiey Nov 18, 2024
fa82e7a
♻️ TextButton 컴포넌트에 hoverType props 추가
dle234 Nov 18, 2024
ab7f2a7
💄 TextButton transition 수정
dle234 Nov 18, 2024
e270b78
Merge pull request #963 from woowacourse-teams/FE/feature/#960
dle234 Nov 18, 2024
d25b6ac
:lipstick: Toast 배경색 변경
anttiey Nov 19, 2024
c5eada2
:lipstick: Dropdown 아이템 색 변경
anttiey Nov 20, 2024
117154f
Merge branch 'FE/dev' into FE/feature/#954
anttiey Nov 22, 2024
deb236d
:bug: 머지 오류 해결
anttiey Nov 22, 2024
3f4d45a
:bug: 빌드 오류 해결
anttiey Nov 22, 2024
97481db
Merge pull request #964 from woowacourse-teams/FE/feature/#954
anttiey Nov 23, 2024
99c1639
:ambulance: 배포 서버 환경 변수 이름 변경
anttiey Nov 25, 2024
5cf3522
Merge pull request #969 from woowacourse-teams/FE/dev
anttiey Nov 25, 2024
5bb201c
:ambulance: 환경 변수 이름 변경
anttiey Nov 25, 2024
129349d
:loud_sound: 디버깅을 위한 로그 추가
anttiey Nov 25, 2024
1a8f67e
:ambulance: 환경 변수 적용 방법 변경
anttiey Nov 25, 2024
c1fda4a
:mute: 필요하지 않은 주석 제거
anttiey Nov 25, 2024
383d634
Merge pull request #970 from woowacourse-teams/FE/dev
anttiey Nov 25, 2024
ad0858e
:ambulance: Netlify Page Not Found 오류 해결
anttiey Nov 25, 2024
bfe865b
Merge pull request #971 from woowacourse-teams/FE/dev
anttiey Nov 25, 2024
3374495
💄 Disabled 상태 아이콘 버튼 배경 삭제
greetings1012 Dec 7, 2024
b22d0b9
💄 타이머 카드 아이콘 버튼 크기 조정
greetings1012 Dec 7, 2024
0ccefc1
💄 Disabled 아이콘 색상 변경
greetings1012 Dec 7, 2024
3b2b477
💄 페어룸 완료하기 버튼 스토리북 구현 및 색상 변경
dle234 Dec 9, 2024
f8a8ff1
💄 페어룸 입장 시 가이드모달 스토리북 구현
dle234 Dec 9, 2024
50b0e3f
💄 완료된 페어룸 색상 변경
dle234 Dec 9, 2024
ad5fd43
💄 Textarea 컴포넌트 스토리북 구현
dle234 Dec 9, 2024
c15deed
Merge pull request #976 from woowacourse-teams/FE/feature/#972
greetings1012 Dec 11, 2024
3c5f105
Merge pull request #975 from woowacourse-teams/FE/feature/#973
dle234 Dec 13, 2024
c2fac24
Merge pull request #980 from woowacourse-teams/FE/dev
dle234 Dec 13, 2024
66bf232
Merge branch 'production' into FE/test
anttiey Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions frontend/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
4 changes: 2 additions & 2 deletions frontend/src/apis/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export const getSHAforMain = async (repositoryName: string) => {
}
};

interface CreateBranchProps {
interface AddBranchProps {
repositoryName: string;
branchName: string;
sha: string;
}

export const createBranch = async ({ repositoryName, branchName, sha }: CreateBranchProps) => {
export const addBranch = async ({ repositoryName, branchName, sha }: AddBranchProps) => {
try {
const result = await octokit.request(`POST /repos/${CODUO_ORGANIZATION}/${repositoryName}/git/refs`, {
ref: `refs/heads/${branchName}`,
Expand Down
28 changes: 12 additions & 16 deletions frontend/src/apis/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,21 @@ export const getMyPairRooms = async (): Promise<GetMyPairRoomsResponse[]> => {
return response.json();
};

interface GetUserIsInPairRoomRequest {
export interface Retrospect {
accessCode: string;
answer: string;
}

interface GetUserIsInPairRoomResponse {
exists: boolean;
}
export const getMyRetrospects = async (): Promise<{ retrospects: Retrospect[] }> => {
const response = await fetcher.get({
url: `${API_URL}/retrospects`,
errorMessage: ERROR_MESSAGES.GET_USER_RETROSPECTS,
});

export const getUserIsInPairRoom = async ({
accessCode,
}: GetUserIsInPairRoomRequest): Promise<GetUserIsInPairRoomResponse> => {
return await response.json();
};

export const getUserIsInPairRoom = async (accessCode: string): Promise<{ exists: boolean }> => {
const response = await fetcher.get({
url: `${API_URL}/member/${accessCode}/exists`,
errorMessage: ERROR_MESSAGES.GET_USER_IS_IN_PAIR_ROOM,
Expand All @@ -73,15 +77,7 @@ export const getUserIsInPairRoom = async ({
return await response.json();
};

interface GetUserRetrospectExistsRequest {
accessCode: string;
}
interface GetUserRetrospectExistsResponse {
existRetrospect: boolean;
}
export const getUserRetrospectExists = async ({
accessCode,
}: GetUserRetrospectExistsRequest): Promise<GetUserRetrospectExistsResponse> => {
export const getUserRetrospectExists = async (accessCode: string): Promise<{ existRetrospect: boolean }> => {
const response = await fetcher.get({
url: `${API_URL}/member/retrospect/${accessCode}/exists`,
errorMessage: ERROR_MESSAGES.GET_USER_RETROSPECT_EXISTS,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/apis/pairRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const updatePairRoomStatus = async ({ accessCode }: UpdatePairRoomStatusR
});
};

export const deletePairRoom = async (accessCode: string) => {
export const deletePairRoom = async ({ accessCode }: { accessCode: string }) => {
await fetcher.delete({
url: `${API_URL}/pair-room/${accessCode}`,
errorMessage: ERROR_MESSAGES.DELETE_PAIR_ROOM,
Expand Down
22 changes: 2 additions & 20 deletions frontend/src/apis/retrospect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ export const addRetrospect = async ({ accessCode, answers }: AddRetrospectReques
});
};

interface GetRetrospectRequest {
accessCode: string;
}

interface GetRetrospectResponse {
answers: string[];
}

export const getRetrospectAnswer = async ({ accessCode }: GetRetrospectRequest): Promise<GetRetrospectResponse> => {
export const getRetrospect = async (accessCode: string): Promise<GetRetrospectResponse> => {
const response = await fetcher.get({
url: `${API_URL}/retrospects/${accessCode}`,
errorMessage: ERROR_MESSAGES.GET_RETROSPECT,
Expand All @@ -34,23 +30,9 @@ export const getRetrospectAnswer = async ({ accessCode }: GetRetrospectRequest):
return await response.json();
};

export const deleteRetrospectAnswer = async ({ accessCode }: GetRetrospectRequest) => {
export const deleteRetrospect = async ({ accessCode }: { accessCode: string }) => {
await fetcher.delete({
url: `${API_URL}/retrospects/${accessCode}`,
errorMessage: ERROR_MESSAGES.DELETE_RETROSPECT,
});
};

export interface Retrospect {
accessCode: string;
answer: string;
}

export const getUserRetrospects = async (): Promise<{ retrospects: Retrospect[] }> => {
const response = await fetcher.get({
url: `${API_URL}/retrospects`,
errorMessage: ERROR_MESSAGES.GET_USER_RETROSPECTS,
});

return await response.json();
};
2 changes: 1 addition & 1 deletion frontend/src/assets/images/check_box_unchecked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/clone.png
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/create-branch.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/create-fork.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/create-room.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/fork-repository.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/input-name.png
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/select-driver.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/select-mission.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/set-role.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/set-timer.png
Binary file not shown.
Binary file removed frontend/src/assets/images/docs/start-free.png
Binary file not shown.
Binary file not shown.
35 changes: 33 additions & 2 deletions frontend/src/assets/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
import AlarmSound from '@/assets/audio/alarm_sound.mp3';
import Driver from '@/assets/images/characters/driver.png';
import Navigator from '@/assets/images/characters/navigator.png';
import CheckBoxChecked from '@/assets/images/check_box_checked.svg';
import CheckBoxUnchecked from '@/assets/images/check_box_unchecked.svg';
import checkBranchCreated from '@/assets/images/docs/check-branch-created.webp';
import clone from '@/assets/images/docs/clone.webp';
import createBranch from '@/assets/images/docs/create-branch.webp';
import createFork from '@/assets/images/docs/create-fork.webp';
import createRoom from '@/assets/images/docs/create-room.webp';
import forkRepository from '@/assets/images/docs/fork-repository.webp';
import inputName from '@/assets/images/docs/input-name.webp';
import inputPairName from '@/assets/images/docs/input-pair-name.webp';
import selectDriver from '@/assets/images/docs/select-driver.webp';
import selectMission from '@/assets/images/docs/select-mission.webp';
import setRole from '@/assets/images/docs/set-role.webp';
import setTimer from '@/assets/images/docs/set-timer.webp';
import startFree from '@/assets/images/docs/start-free.webp';
import startWithMission from '@/assets/images/docs/start-with-mission.webp';
import Driver from '@/assets/images/driver.png';
import GithubLogoWhite from '@/assets/images/github-mark-white.png';
import GithubLogo from '@/assets/images/github-mark.png';
import LogoIcon from '@/assets/images/logo_icon.svg';
import LogoIconWithTitle from '@/assets/images/logo_icon_with_title.svg';
import LogoTitle from '@/assets/images/logo_title.svg';
import Navigator from '@/assets/images/navigator.png';
import Wave from '@/assets/images/wave.svg';

export const DOCS_IMAGES = {
checkBranchCreated,
clone,
createBranch,
createFork,
createRoom,
forkRepository,
inputName,
inputPairName,
selectDriver,
selectMission,
setRole,
setTimer,
startFree,
startWithMission,
};

export {
GithubLogo,
GithubLogoWhite,
Expand Down
65 changes: 65 additions & 0 deletions frontend/src/components/CoduoDocs/ContentBox/ContentBox.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { Link } from 'react-router-dom';

import styled from 'styled-components';

export const Title = styled.p`
color: ${({ theme }) => theme.color.primary[800]};
font-size: ${({ theme }) => theme.fontSize.base};
font-weight: ${({ theme }) => theme.fontWeight.semibold};

@media (width <= 1400px) {
font-size: ${({ theme }) => theme.fontSize.base};
}
`;

export const ContentList = styled.ul`
display: flex;
flex-direction: column;
gap: 1rem;

position: relative;

padding-left: 15px;

@media (width <= 1400px) {
gap: 0.8rem;
}
`;

export const ContentItem = styled(Link)<{ $isActive: boolean }>`
position: relative;

color: ${({ $isActive, theme }) => ($isActive ? theme.color.black[900] : theme.color.black[300])};
font-size: ${({ theme }) => theme.fontSize.base};
text-decoration: none;

transition: all 0.1s;

&::before {
position: absolute;
top: -0.4rem;
left: -2rem;

width: 3px;
height: 140%;

background-color: ${({ $isActive, theme }) => ($isActive ? theme.color.secondary[500] : theme.color.black[200])};

transition: all 0.2s;
content: '';
}

@media (width <= 1400px) {
font-size: ${({ theme }) => theme.fontSize.md};
}
`;

export const Container = styled.div`
display: flex;
flex-direction: column;
gap: 1.1rem;

@media (width <= 1400px) {
gap: 0.9rem;
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useNavigate } from 'react-router-dom';

import { Content } from '@/pages/CoduoDocs/CoduoDocs.type';

import * as S from './FloatingSidebar.styles';
import * as S from './ContentBox.styles';

interface ContentBoxProps {
title: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Container = styled.div`
gap: 2rem;
`;
export const Contents = styled.p`
color: ${({ theme }) => theme.color.black[90]};
color: ${({ theme }) => theme.color.black[900]};
font-size: ${({ theme }) => theme.fontSize.lg};
`;

Expand Down
8 changes: 2 additions & 6 deletions frontend/src/components/CoduoDocs/DocsImage/DocsImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@ import * as S from './DocsImage.styles';
interface DocsImageProps {
information?: string;
src: string;
webpSrc: string;
alt: string;
id?: string;
}

const DocsImage = ({ information, src, alt, webpSrc, id, children }: React.PropsWithChildren<DocsImageProps>) => {
const DocsImage = ({ information, src, alt, id, children }: React.PropsWithChildren<DocsImageProps>) => {
return (
<S.Container>
{information && <S.Contents id={id}>{information}</S.Contents>}
{children}
<picture>
<source srcSet={webpSrc} type="image/webp" />
<img src={src} alt={alt} loading="lazy" />
</picture>
<img src={src} alt={alt} loading="lazy" />
</S.Container>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';

import ContentBox from '@/components/CoduoDocs/FloatingSidebar/ContentBox';
import ContentBox from '@/components/CoduoDocs/ContentBox/ContentBox';
import FloatingSidebar from '@/components/CoduoDocs/FloatingSidebar/FloatingSidebar';

import { START_CONTENT } from '@/constants/coduoDocs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Link } from 'react-router-dom';

import styled from 'styled-components';

export const Layout = styled.div`
Expand All @@ -11,7 +9,7 @@ export const Layout = styled.div`
top: 15rem;
left: 4%;

background-color: ${({ theme }) => theme.color.black[10]};
background-color: ${({ theme }) => theme.color.black[0]};

@media (width <= 1400px) {
gap: 1.8rem;
Expand All @@ -26,65 +24,3 @@ export const Layout = styled.div`
display: none;
}
`;

export const Title = styled.p`
color: ${({ theme }) => theme.color.primary[700]};
font-size: ${({ theme }) => theme.fontSize.base};
font-weight: ${({ theme }) => theme.fontWeight.semibold};

@media (width <= 1400px) {
font-size: ${({ theme }) => theme.fontSize.base};
}
`;

export const ContentList = styled.ul`
display: flex;
flex-direction: column;
gap: 1rem;

position: relative;

padding-left: 15px;

@media (width <= 1400px) {
gap: 0.8rem;
}
`;

export const ContentItem = styled(Link)<{ $isActive: boolean }>`
position: relative;

color: ${({ $isActive, theme }) => ($isActive ? theme.color.black[90] : theme.color.black[60])};
font-size: ${({ theme }) => theme.fontSize.lg};
text-decoration: none;

transition: all 0.1s;

&::before {
position: absolute;
top: 0;
left: -2rem;

width: 3px;
height: 145%;

background-color: ${({ $isActive, theme }) => ($isActive ? theme.color.secondary[500] : theme.color.black[30])};

transition: all 0.2s;
content: '';
}

@media (width <= 1400px) {
font-size: ${({ theme }) => theme.fontSize.md};
}
`;

export const Container = styled.div`
display: flex;
flex-direction: column;
gap: 1.1rem;

@media (width <= 1400px) {
gap: 0.9rem;
}
`;
8 changes: 4 additions & 4 deletions frontend/src/components/CoduoDocs/Quote/Quote.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ export const Container = styled.div`
`;

export const QuoteBar = styled.span`
color: ${({ theme }) => theme.color.black[50]};
color: ${({ theme }) => theme.color.black[200]};
font-size: ${({ theme }) => theme.fontSize.h5};
font-weight: ${({ theme }) => theme.fontWeight.extraBold};
`;

export const Content = styled.p`
color: ${({ theme }) => theme.color.black[90]};
color: ${({ theme }) => theme.color.black[900]};
font-size: ${({ theme }) => theme.fontSize.base};
font-weight: ${({ theme }) => theme.fontWeight.extraLight};
`;

export const TextLink = styled.a`
color: ${({ theme }) => theme.color.primary[700]};
color: ${({ theme }) => theme.color.primary[800]};
font-size: ${({ theme }) => theme.fontSize.base};
font-weight: ${({ theme }) => theme.fontWeight.semibold};
text-decoration: underline;

transition: color 0.2s ease;

&:hover {
color: ${({ theme }) => theme.color.primary[800]};
color: ${({ theme }) => theme.color.primary[900]};
}
`;
Loading
Loading