Skip to content

Commit f40e0e8

Browse files
authored
Merge pull request #71 from pirogramming/feat-sua
feat: 로그인 및 게스트 페이지 로고 적용
2 parents 9b240a4 + d1a671e commit f40e0e8

5 files changed

Lines changed: 93 additions & 117 deletions

File tree

backend-core/static/users/css/homepage_guest.css

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,30 @@ body {
1515
font-family: 'Noto Sans KR', sans-serif;
1616
}
1717

18-
/* 2. 헤더 섹션 (WelcomeScreen 상단 블루 영역) */
18+
/* 2. 헤더 섹션 (상단 연한 블루 영역 수정) */
1919
.header {
20-
background: linear-gradient(180deg, var(--primary-blue) 0%, #6BB6FF 100%);
21-
padding: 60px 20px 60px;
20+
background: #E6F1FF; /* 배경색 수정 */
21+
padding: 60px 20px 80px;
2222
text-align: center;
23-
color: var(--white);
2423
}
2524

26-
.logo-circle {
27-
width: 60px; height: 60px;
28-
background: var(--white); color: var(--primary-blue);
29-
border-radius: 18px; display: flex; align-items: center; justify-content: center;
30-
font-size: 32px; font-weight: 800; margin: 0 auto 16px;
31-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
25+
/* 실제 로고 이미지 스타일 */
26+
.login-logo {
27+
width: 350px; /* 로고 크기 */
28+
height: auto;
29+
display: block;
30+
margin: 0 auto 12px; /* 가로 중앙 정렬 및 하단 여백 */
3231
}
3332

34-
.brand-name { font-size: 30px; font-weight: 700; margin-bottom: 5px; }
35-
.brand-subtitle { font-size: 14px; opacity: 0.9; }
33+
.brand-subtitle {
34+
width: 350px; /* 로고 너비와 똑같이 맞춰서 기준점을 잡습니다 */
35+
margin: 0 auto; /* 로고와 동일하게 가로 중앙에 배치 */
36+
text-align: center; /* 350px라는 영역 안에서 글자를 중앙으로 정렬 */
37+
font-size: 15px;
38+
font-weight: 500;
39+
color: #4DA6FF;
40+
line-height: 2; /* 글자가 너무 붙어 보이지 않게 약간의 높이 추가 */
41+
}
3642

3743
/* 3. 미션 리스트 섹션 (문구 위치 및 굵기 설정) */
3844
.mission-list-section {
@@ -52,7 +58,7 @@ body {
5258
color: var(--text-black); margin-bottom: 8px;
5359
}
5460

55-
/* 설명 문구: 도움까지, 뒤에 줄바꿈(\A) 및 글자 크기 16px 적용 */
61+
/* 설명 문구 */
5662
.mission-list-section::after {
5763
content: "작은 부탁부터 과제 도움까지,\A학생들이 서로 돕는 미션 플랫폼";
5864
order: -1;
@@ -61,7 +67,7 @@ body {
6167
color: var(--text-gray);
6268
line-height: 1.6;
6369
margin-bottom: 30px;
64-
white-space: pre-wrap; /* \A 줄바꿈 인식을 위해 필수 */
70+
white-space: pre-wrap;
6571
}
6672

6773
.section-title {
@@ -121,35 +127,45 @@ body {
121127
.price { font-size: 18px; font-weight: 700; color: var(--primary-blue); }
122128

123129
/* 5. 하단 버튼 영역 (로그인/회원가입) */
124-
.guest-footer-area { padding: 30px 20px 100px; background: var(--white); }
130+
.guest-footer-area {
131+
padding: 30px 25px 100px; /* 양옆 여백을 20px에서 25px로 변경 */
132+
background: var(--white);
133+
}
125134

126-
/* 안내 문구와 미션 카드 사이 간격 확보 */
127135
.guest-footer-text {
128136
text-align: center;
129137
font-size: 14px;
130138
color: #98A2B3;
131139
margin: 60px 0 20px;
132140
}
133141

134-
/* [수정] 로그인/회원가입 버튼 규격: 로그인 페이지의 .btn-main과 일치시킴 */
135142
.guest-cta {
136-
display: flex; align-items: center; justify-content: center; gap: 10px;
137-
width: calc(100% - 40px);
138-
height: 56px; /* 높이 56px 적용 */
139-
margin: 0 20px 12px;
140-
border-radius: 12px; /* 테두리 반경 12px 적용 */
141-
font-size: 18px; /* 글자 크기 18px 적용 */
142-
font-weight: 700; /* 글자 굵기 700 적용 */
143+
display: flex;
144+
align-items: center;
145+
justify-content: center;
146+
gap: 10px;
147+
148+
/* 핵심 수정 부분: 가로 크기를 100%로 하고 양옆 마진을 0으로 합니다 */
149+
width: 100%;
150+
margin: 0 0 12px 0; /* 위 0, 오른쪽 0, 아래 12px, 왼쪽 0 */
151+
152+
height: 56px;
153+
border-radius: 12px;
154+
font-size: 18px;
155+
font-weight: 700;
143156
text-decoration: none;
144157
box-sizing: border-box;
145158
}
146159

147-
/* 로그인 버튼 색상 */
148-
.guest-cta:nth-of-type(1) { background: var(--primary-blue); color: var(--white); }
160+
/* 첫 번째 버튼 (로그인): 배경색 적용 */
161+
.guest-cta:nth-of-type(1) {
162+
background: #4DA6FF;
163+
color: #ffffff;
164+
}
149165

150-
/* 회원가입 버튼 색상 */
166+
/* 두 번째 버튼 (회원가입): 테두리와 글자색 적용 */
151167
.guest-cta:nth-of-type(2) {
152-
background: var(--white);
153-
color: var(--primary-blue);
154-
border: 1px solid var(--primary-blue);
168+
background: #ffffff;
169+
color: #4DA6FF;
170+
border: 1px solid #4DA6FF;
155171
}

backend-core/static/users/css/login.css

Lines changed: 40 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -41,60 +41,52 @@ body {
4141
padding-top: 15px;
4242
}
4343

44-
.header h2 {
45-
grid-row: 1; /* 첫 번째 줄 */
44+
/* 텍스트 정렬 및 로고 배치를 위한 영역 */
45+
.header-text {
4646
grid-column: 2;
47-
font-size: 24px; /* 시안처럼 조금 더 크게 조절 가능 */
47+
text-align: left; /* 상단 텍스트는 화살표 옆 왼쪽 정렬 */
48+
}
49+
50+
.header h2 {
51+
font-size: 24px;
4852
font-weight: 700;
4953
margin: 0;
5054
color: #101828;
5155
line-height: 1.2;
5256
}
5357

5458
.header p {
55-
grid-row: 2; /* 두 번째 줄 */
56-
grid-column: 2;
5759
font-size: 14px;
5860
color: #667085;
5961
margin: 4px 0 0 0;
6062
}
6163

62-
/* 4. 요소 순서 강제 조정 (로고 -> 명칭 -> 입력창) */
63-
.input-section {
64-
display: flex;
65-
flex-direction: column;
64+
/* 4. 로고 이미지 스타일 */
65+
.login-logo {
66+
width: 370px;
67+
height: auto;
68+
display: block;
69+
margin: 50px 0 5px -25px; /* 왼쪽으로 25px 당김 */
70+
}
71+
72+
/* 로고 밑에 '대학생 미션 중개 플랫폼' 문구 */
73+
.header-text::after {
74+
content: "대학생 미션 중개 플랫폼";
75+
display: block;
76+
width: 370px;
77+
margin-left: -25px;
6678
text-align: center;
79+
font-size: 15px;
80+
font-weight: 500;
81+
color: #667085;
82+
margin-top: 20px;
83+
margin-bottom: 20px;
6784
}
6885

69-
/* [순서 1] 로고 박스 */
70-
.input-section::before {
71-
content: 'U';
72-
order: -2;
86+
.input-section {
7387
display: flex;
74-
justify-content: center;
75-
align-items: center;
76-
width: 60px;
77-
height: 60px;
78-
background: #FFFFFF;
79-
border-radius: 15px;
80-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
81-
margin: 10px auto 15px;
82-
font-size: 30px;
83-
font-weight: 800;
84-
color: #57A6FF;
85-
}
86-
87-
/* [순서 2] Uniquest 서비스 명칭 및 설명 */
88-
.input-section::after {
89-
content: "Uniquest\A 대학생 미션 중개 플랫폼";
90-
order: -1;
91-
display: block;
92-
white-space: pre;
93-
font-size: 22px;
94-
font-weight: 700;
95-
color: #344054;
96-
margin-bottom: 35px;
97-
line-height: 1.3;
88+
flex-direction: column;
89+
text-align: center;
9890
}
9991

10092
/* [순서 3] 입력창 영역 */
@@ -137,7 +129,7 @@ input {
137129
.btn-main {
138130
width: 100%;
139131
height: 56px;
140-
background-color: #57A6FF;
132+
background-color: #4DA6FF;
141133
color: #ffffff;
142134
border: none;
143135
border-radius: 12px;
@@ -176,35 +168,35 @@ input {
176168
/* 6. 하단 푸터 및 이용약관 */
177169
.footer {
178170
margin-top: 25px;
179-
display: flex; /* 나란히 배치하기 위해 flex 적용 */
180-
justify-content: center; /* 가로 중앙 정렬 */
181-
align-items: center; /* 세로 중앙 정렬 */
182-
gap: 15px; /* 두 링크 사이의 간격 */
171+
display: flex;
172+
justify-content: center;
173+
align-items: center;
174+
gap: 15px;
183175
font-size: 14px;
184176
}
185177

186178
/* 비밀번호 찾기 (회색 링크) */
187179
#search_key {
188-
display: inline-block; /* display: none 제거 */
189-
color: #98A2B3; /* 약간 회색 */
180+
display: inline-block;
181+
color: #98A2B3;
190182
text-decoration: none;
191183
transition: color 0.2s;
192184
}
193185

194186
#search_key:hover {
195-
color: #667085; /* 호버 시 조금 더 진한 회색 */
187+
color: #667085;
196188
}
197189

198190
/* 회원가입 하기 (파란색 링크) */
199191
#signup {
200-
color: #57A6FF; /* 파란색 */
192+
color: #4DA6FF;
201193
text-decoration: none;
202194
font-weight: 600;
203195
}
204196

205-
/* 두 메뉴 사이에 구분선(c)을 넣고 싶을 때 추가하는 스타일 (선택 사항) */
197+
/* 두 메뉴 사이의 구분선 */
206198
#search_key::after {
207-
content: "|"; /* 구분선 텍스트 제거 */
199+
content: "|";
208200
margin-left: 15px;
209201
}
210202

59.6 KB
Loading

backend-core/templates/users/homepage_guest.html

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,13 @@
66
{% block extra_css %}
77
<link rel="stylesheet" href="{% static 'users/css/homepage_guest.css' %}">
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
9-
{% comment %} <style>
10-
.welcome-header {
11-
text-align: center;
12-
padding: 20px 0 30px;
13-
}
14-
.logo-circle {
15-
width: 64px;
16-
height: 64px;
17-
background: rgba(255,255,255,0.3);
18-
border-radius: 50%;
19-
display: flex;
20-
align-items: center;
21-
justify-content: center;
22-
font-size: 28px;
23-
font-weight: bold;
24-
margin: 0 auto 16px;
25-
}
26-
.brand-name { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
27-
.brand-subtitle { font-size: 14px; opacity: 0.9; }
28-
.guest-cta {
29-
display: block;
30-
text-align: center;
31-
margin: 24px 20px;
32-
padding: 14px 24px;
33-
background: var(--white);
34-
color: var(--primary-blue);
35-
border-radius: 14px;
36-
font-weight: 600;
37-
text-decoration: none;
38-
}
39-
.guest-cta:hover { opacity: 0.95; }
40-
</style> {% endcomment %}
419
{% endblock %}
4210

4311
{% block content %}
4412
<header class="header">
4513
<div class="header-top">
4614
<section class="welcome-header">
47-
<div class="logo-circle">U</div>
48-
<h1 class="brand-name">Uniquest</h1>
15+
<img src="{% static 'users/images/logo.png' %}" alt="Uniquest Logo" class="login-logo">
4916
<p class="brand-subtitle">대학생 미션 중개 플랫폼</p>
5017
</section>
5118
</div>
@@ -61,7 +28,8 @@ <h2>진행 중인 미션</h2>
6128
</div>
6229
</section>
6330

64-
<div style="padding: 0 20px 100px;"> <p class="guest-footer-text">로그인 후 이용 가능합니다</p>
31+
<div style="padding: 0 20px 100px;">
32+
<p class="guest-footer-text">로그인 후 이용 가능합니다</p>
6533
<a href="{% url 'users:login' %}" class="guest-cta">로그인</a>
6634
<a href="{% url 'users:signup_view' %}" class="guest-cta">회원가입</a>
6735
</div>
@@ -72,5 +40,5 @@ <h2>진행 중인 미션</h2>
7240
{% endblock %}
7341

7442
{% block extra_scripts %}
75-
<script src="{% static 'users/js/homepage_guest.js' %}"></script>
76-
{% endblock %}
43+
<script src="{% static 'users/js/homepage_guest.js' %} %"></script>
44+
{% endblock %}

backend-core/templates/users/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010

1111
{% block content %}
1212
<div class="signup-wrapper">
13-
14-
1513
<div class="signup-container">
1614
<div class="header">
1715
<button type="button" class="back-arrow" onclick="history.back()"></button>
1816
<div class="header-text">
1917
<h2>로그인</h2>
2018
<p>Uniquest에 오신 것을 환영합니다</p>
19+
<img src="{% static 'users/images/logo.png' %}" alt="Uniquest Logo" class="login-logo">
2120
</div>
2221
</div>
2322

@@ -50,6 +49,7 @@ <h2>로그인</h2>
5049
</p>
5150
</div>
5251
</div>
52+
</div>
5353
{% endblock %}
5454

5555
{%block extra_scripts %}

0 commit comments

Comments
 (0)