Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added dpbr_front/app/git_branches.txt
Binary file not shown.
35 changes: 35 additions & 0 deletions dpbr_front/app/git_branches_utf8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
 dev
feat/comment-anon-and-delete-modal-dev
feature-login-signup
feature/admin-team-profile
feature/frontend-ui-redesign
* feature/frontend-ui-updates
feature/ui-improvement
feature/ui-save-card-improve
feature/濡쒓렇???뚯썝媛€???섏씠吏€
fix/sidebar-layout-text-fix
main
remotes/origin/CI/CD
remotes/origin/HEAD -> origin/main
remotes/origin/backend
remotes/origin/dev
remotes/origin/feat/application-form-migration
remotes/origin/feat/comment-anon-and-delete-modal-dev
remotes/origin/feat/dev-deployment
remotes/origin/feat/pagination-infinite-sync
remotes/origin/feature/admin-team-profile
remotes/origin/feature/frontend-ui-redesign
remotes/origin/feature/frontend-ui-updates
remotes/origin/feature/full-page-capture
remotes/origin/feature/ui-improvement
remotes/origin/feature/ui-save-card-improve
remotes/origin/feature/?볤?
remotes/origin/feature/濡쒓렇???뚯썝媛€???섏씠吏€
remotes/origin/fix/deployment-config
remotes/origin/fix/sidebar-layout-text-fix
remotes/origin/fix/濡쒓렇??id-pw-?섏젙-#17
remotes/origin/kakao-login-with-backend
remotes/origin/login-only-comment
remotes/origin/main
remotes/origin/sync/dev-into-feature-ui-improvement
remotes/origin/work/frontend-feature-gap
Comment on lines +1 to +35
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

이 파일과 git_status_utf8.txt 파일은 Git 상태를 나타내는 임시 파일로 보입니다. 버전 관리에 포함될 필요가 없으므로, 커밋에서 제거하는 것이 좋습니다. .gitignore 파일에 git_*.txt 와 같은 패턴을 추가하여 앞으로 이런 파일들이 커밋되지 않도록 방지할 수 있습니다.

12 changes: 12 additions & 0 deletions dpbr_front/app/git_status_utf8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
On branch feature/frontend-ui-updates
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: MSGS_13_F (modified content)

Untracked files:
(use "git add <file>..." to include in what will be committed)
git_status.txt

no changes added to commit (use "git add" and/or "git commit -a")
17 changes: 14 additions & 3 deletions dpbr_front/app/src/app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "tailwindcss";

:root {
color-scheme: light;
}

@font-face {
font-family: 'NexonLv1Gothic';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF Light.woff') format('woff');
Expand Down Expand Up @@ -37,14 +41,21 @@
--color-bg-overlay: #101010;
}

html, body {
html,
body {
font-family: 'NexonLv1Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: white;
color: var(--color-text-primary);
}

/* 상호작용 가능한 요소들에 손가락 커서 강제 적용 */
button, a, input[type="button"], input[type="submit"], input[type="reset"] {
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"] {
cursor: pointer;
}

Expand All @@ -53,4 +64,4 @@ input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
cursor: not-allowed;
}
}
2 changes: 1 addition & 1 deletion dpbr_front/app/src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="ko">
<html lang="ko" style="color-scheme: light;">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

<html> 태그에 인라인 스타일로 color-scheme: light;를 설정하셨습니다. 이 속성은 이미 app.css 파일의 :root 선택자에 정의되어 있으므로 중복됩니다. 코드 유지보수성을 높이기 위해 인라인 스타일 사용을 지양하고 CSS 파일에서 스타일을 관리하는 것이 좋습니다. 이 인라인 스타일을 제거해도 기능에 영향이 없을 것입니다.

Suggested change
<html lang="ko" style="color-scheme: light;">
<html lang="ko">


<head>
<meta charset="utf-8" />
Expand Down
8 changes: 6 additions & 2 deletions dpbr_front/app/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ interface TeamMemberResponse {
name: string;
role: string;
profile_img_url: string | null;
message: {
title: string;
content: string;
} | null;
}

interface TeamMemberDetailResponse extends TeamMemberResponse {
Expand Down Expand Up @@ -380,8 +384,8 @@ export async function getTeamMembers(): Promise<TeamMessageItem[]> {
id: member.id.toString(),
name: member.name,
role: member.role,
title: '',
content: '',
title: member.message?.title || '',
content: member.message?.content || '',
imageUrl: normalizeAssetUrl(member.profile_img_url)
}));
}
Expand Down
43 changes: 25 additions & 18 deletions dpbr_front/app/src/lib/components/BottomSheetLogin.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
let isLoading = $state(false);
let studentIdInputRef: HTMLDivElement | undefined = $state();
let dialogEl: HTMLDivElement | undefined = $state();

// 에러 메시지 상태
let errorMessage = $state("");
let infoMessage = $state("");

// 애니메이션을 위한 상태
let isVisible = $state(false);
Expand Down Expand Up @@ -65,7 +63,7 @@

async function handleLogin() {
if (!name.trim() || !studentId.trim()) {
showToastMessage();
showInfoMessage("이름 또는 학번을 확인해 주세요.");
return;
}

Expand All @@ -74,12 +72,13 @@
try {
await authStore.login(name.trim(), studentId.trim(), saveName);
// 로그인 성공 시 콜백 호출
showInfoMessage("로그인 되었습니다.");
handleClose();
setTimeout(() => {
onSuccess();
}, 300);
} catch (error) {
showToastMessage();
showInfoMessage("이름 또는 학번을 확인해 주세요.");
studentId = "";
studentIdFocused = true;
setTimeout(() => {
Expand Down Expand Up @@ -108,10 +107,10 @@
}
*/

function showToastMessage(message?: string) {
errorMessage = message || "이름 또는 학번을 확인해 주세요.";
function showInfoMessage(message: string) {
infoMessage = message;
setTimeout(() => {
errorMessage = "";
infoMessage = "";
}, 3000);
}

Expand Down Expand Up @@ -164,9 +163,11 @@
tabindex="-1"
>
<div
class="w-full shrink-0 h-[72vh] bg-gradient-to-b from-[#FCDDA5] to-[#F1A470] rounded-t-3xl pt-4 pb-8 px-6 flex flex-col items-center shadow-lg transition-transform duration-300 {isVisible
? 'translate-y-0'
: 'translate-y-full'}"
class="w-full shrink-0 bg-gradient-to-b from-[#FCDDA5] to-[#F1A470] rounded-t-3xl pt-4 pb-8 px-6 flex flex-col items-center shadow-lg transition-all duration-300 {isVisible
? nameFocused || studentIdFocused
? 'h-[88vh] translate-y-0'
: 'h-[72vh] translate-y-0'
: 'h-[72vh] translate-y-full'}"
onclick={(e) => e.stopPropagation()}
>
<!-- 닫기 버튼 -->
Expand All @@ -192,7 +193,13 @@
/>

<!-- 입력 폼 -->
<div class="w-full flex flex-col">
<form
class="w-full flex flex-col"
onsubmit={(e) => {
e.preventDefault();
handleLogin();
}}
>
<!-- 입력 필드 그룹 -->
<div class="flex flex-col gap-1 mb-2">
<!-- 이름 입력 -->
Expand Down Expand Up @@ -233,23 +240,23 @@

<!-- 로그인 버튼 -->
<div class="relative w-full">
{#if errorMessage}
{#if infoMessage}
<div
class="absolute bottom-[calc(100%+8px)] left-0 w-full flex justify-center z-[60] pointer-events-none"
class="absolute bottom-full left-1/2 -translate-x-1/2 mb-4 z-[60] pointer-events-none"
>
<span
class="bg-black/60 text-white text-[15px] px-5 py-2.5 rounded-3xl shadow-md font-medium whitespace-nowrap pointer-events-auto"
>
{errorMessage}
{infoMessage}
</span>
</div>
{/if}
<Button
label="메생결산 톡 입장"
variant="primary"
buttonState={isLoading ? "disabled" : "default"}
onClick={handleLogin}
type="button"
onClick={() => {}}
type="submit"
class="bg-white !text-[#F87C56] hover:bg-white/90 font-medium py-[14px] rounded-lg w-full"
/>
</div>
Expand Down Expand Up @@ -298,7 +305,7 @@
<span>카카오 로그인</span>
</button>
-->
</div>
</form>

<!-- 푸터 안내문구 -->
<div class="mt-12 mb-4 flex justify-center">
Expand Down
8 changes: 5 additions & 3 deletions dpbr_front/app/src/lib/components/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
aria-label={label}
>
<span class="relative z-10">{label}</span>
{#if isPressed || buttonState === "focused"}
<div class="absolute inset-0 bg-black/4 rounded-lg"></div>
{/if}
<div
class="absolute inset-0 bg-black/4 rounded-lg transition-opacity duration-100"
class:opacity-100={isPressed || buttonState === "focused"}
class:opacity-0={!isPressed && buttonState !== "focused"}
></div>
</button>
6 changes: 4 additions & 2 deletions dpbr_front/app/src/lib/components/SettlementListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<a
href="/msg/{item.id}"
class="flex items-center gap-4 px-6 py-4 bg-white border-b border-bg-light hover:bg-gray-50 focus:bg-gray-50 transition-none last:border-b-0 touch-none select-none"
class="flex items-center gap-4 px-6 py-4 bg-white border-b border-bg-light hover:bg-gray-50 focus:bg-gray-50 transition-none last:border-b-0 select-none"
style="-webkit-touch-callout: none;"
draggable="false"
>
Expand All @@ -38,6 +38,8 @@
class="text-[17px] leading-tight text-text-primary font-semibold truncate"
>{item.title}</span
>
<span class="text-[13px] font-normal text-[#9CA3AF]">{formatDate(item.acquiredAt)}</span>
<span class="text-[13px] font-normal text-[#9CA3AF]"
>{formatDate(item.acquiredAt)}</span
>
</div>
</a>
50 changes: 27 additions & 23 deletions dpbr_front/app/src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { authStore } from "$lib/stores/auth";
import { getAdminCharacter } from "$lib/api";
import type { AuthState } from "$lib/types";
import { toast } from "$lib/stores/toast";

interface Props {
open: boolean;
Expand Down Expand Up @@ -46,8 +47,8 @@

async function handleLogout() {
await authStore.logout();
toast.show("로그아웃 되었습니다.");
onClose();
await goto("/");
}
</script>

Expand All @@ -59,31 +60,34 @@
aria-hidden={!open}
>
<div class="flex flex-col gap-3 pt-16">
<!-- Title Section -->
<div class="flex flex-col gap-1 px-6 py-4">
<span class="text-xs text-text-muted">단풍바람 메생결산 정보</span>
<span class="text-xl font-medium text-primary-dark"
>단풍바람 13기 메생결산</span
>
</div>

<!-- User Info Section -->
{#if authState.user}
<div
class="flex items-center justify-between px-6 py-3 border-b border-border-dark"
>
<span class="text-lg font-medium text-text-primary"
>{authState.user.name}</span
<!-- Top Info Group -->
<div class="flex flex-col gap-0">
<!-- Title Section -->
<div class="flex flex-col gap-1 px-6 py-4">
<span class="text-xs text-text-muted"
>단풍바람 메생결산 정보</span
>
<button
onclick={handleLogout}
class="px-3 py-1.5 text-sm text-text-secondary hover:text-text-primary hover:bg-bg-light rounded transition-colors"
aria-label="로그아웃"
<span class="text-xl font-medium text-primary-dark"
>단풍바람 13기 메생결산</span
>
로그아웃
</button>
</div>
{/if}

<!-- User Info Section -->
{#if authState.user}
<div class="flex items-center justify-between px-6 py-3">
<span class="text-lg font-medium text-text-primary"
>{authState.user.name}</span
>
<button
onclick={handleLogout}
class="px-3 py-1.5 text-sm text-text-secondary hover:text-text-primary hover:bg-bg-light rounded transition-colors"
aria-label="로그아웃"
>
로그아웃
</button>
</div>
{/if}
</div>

<!-- Menu -->
<div class="flex flex-col gap-2">
Expand Down
8 changes: 5 additions & 3 deletions dpbr_front/app/src/lib/components/TeamMessageListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
/>
</div>

<div class="flex flex-col grow min-w-0 gap-1.5 ml-2">
<div class="flex flex-col grow min-w-0 gap-1 ml-2">
<span
class="text-[17px] leading-tight text-text-primary font-semibold truncate"
>{item.name}</span
>{item.title}</span
>
<span class="text-[13px] font-normal text-[#9CA3AF]"
>{item.name} {item.role}</span
>
<span class="text-[13px] font-normal text-[#9CA3AF]">{item.role}</span>
</div>
</a>
4 changes: 2 additions & 2 deletions dpbr_front/app/src/lib/components/Toast.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
</script>

<div
class="fixed top-12 left-0 right-0 z-50 flex flex-col items-center pointer-events-none gap-2 px-4"
class="fixed bottom-40 left-0 right-0 z-[100] flex flex-col items-center pointer-events-none gap-2 px-4"
>
{#each $toast as { id, message } (id)}
<div
in:slide={{ duration: 250 }}
out:fade={{ duration: 200 }}
class="bg-[rgba(124,107,89,0.95)] text-white px-6 py-3 rounded-full shadow-md text-sm text-center max-w-[90%] pointer-events-auto"
class="bg-black/60 text-white px-6 py-2.5 rounded-3xl shadow-md text-[15px] font-medium text-center max-w-[90%] pointer-events-auto whitespace-nowrap"
>
{message}
</div>
Expand Down
Loading
Loading