Skip to content

Commit 42ba921

Browse files
committed
feat: 질문 및 답변 마감
1 parent 1da73db commit 42ba921

File tree

3 files changed

+100
-5
lines changed

3 files changed

+100
-5
lines changed

src/app/answer/page.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const Answer = () => {
5252
</div>
5353
<hr />
5454
<div className={styles.container}>
55-
{/* <h3>답변할 수 있는 시한이 지났습니다.</h3> */}
56-
<h3>강간죄 구성 요건을 &apos;동의&apos; 여부로 바꾸는데 동의하십니까?</h3>
55+
<h3>답변할 수 있는 시한이 지났습니다.</h3>
56+
{/* <h3>강간죄 구성 요건을 &apos;동의&apos; 여부로 바꾸는데 동의하십니까?</h3>
5757
<div style={{margin: '6px 0', fontSize: '1.2rem'}}>
5858
<label>
5959
<input
@@ -79,7 +79,7 @@ const Answer = () => {
7979
8080
<div style={{marginTop: '20px'}}>
8181
<button className={styles.submit} onClick={() => response()}>저장</button>
82-
</div>
82+
</div> */}
8383
{loading && <LoadingSpinner />}
8484
</div>
8585
</div>

src/app/main.css

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,81 @@
22
@import url(https://fonts.googleapis.com/css2?family=Abel);
33

44
.mainWrapper {
5+
--top-padding: 48px;
6+
padding-top: var(--top-padding);
7+
position: relative;
58
margin: 0 auto;
69
background: linear-gradient(#1C63E9, 20%, #E690DD, 80%, #1C63E9);
10+
overflow: hidden;
11+
}
12+
13+
14+
.notice {
15+
position: fixed;
16+
top: 0;
17+
width: 100%;
18+
height: var(--top-padding);
19+
background-color: red;
20+
color: white;
21+
font-family: 'Noto Sans KR';
22+
z-index: 10;
23+
overflow: hidden;
24+
white-space: nowrap;
25+
}
26+
27+
28+
.marquee-wrapper {
29+
--content-width: 475px;
30+
position: relative;
31+
display: flex;
32+
align-items: center;
33+
width: var(--content-width);
34+
height: 100%;
35+
}
36+
37+
.marquee {
38+
position: absolute;
39+
width: 200%;
40+
animation: marquee 10s linear infinite 2s;
41+
}
42+
43+
@keyframes marquee {
44+
0% {
45+
left: 0;
46+
}
47+
100% {
48+
left: -100%;
49+
}
50+
}
51+
52+
.notice-content-wrapper {
53+
display: flex;
54+
float: left;
55+
width: 50%;
56+
padding-left: 20px;
57+
}
58+
59+
@media (min-width: 500px) {
60+
.notice {
61+
display: flex;
62+
justify-content: center;
63+
align-items: center;
64+
}
65+
66+
.marquee-wrapper {
67+
--content-width: 445px;
68+
}
69+
70+
.marquee {
71+
position: fixed;
72+
animation: none;
73+
overflow: hidden;
74+
}
75+
76+
.notice-content-wrapper {
77+
width: 50%;
78+
padding-left: 0;
79+
}
780
}
881

982
.main {

src/app/page.tsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,32 @@ import Stats from "@/components/Stats";
99
import Logo from "@/components/Logo";
1010
import Result from "@/components/Result";
1111

12+
function TopNotice() {
13+
return (
14+
<div className="notice">
15+
<div className="marquee-wrapper">
16+
<div className="marquee">
17+
<NoMoreContent />
18+
<NoMoreContent />
19+
</div>
20+
</div>
21+
</div>
22+
)
23+
}
24+
25+
function NoMoreContent() {
26+
return (
27+
<div className="notice-content-wrapper">
28+
답변 가능 기간이 지나 더 이상 질문 메일 전송을 지원하지 않습니다.
29+
</div>
30+
)
31+
}
32+
1233

1334
export default function Home() {
1435
return (
1536
<div className="mainWrapper">
37+
<TopNotice />
1638
<main className="main">
1739
<div className="header">
1840
<div className="logoArea">
@@ -99,9 +121,9 @@ export default function Home() {
99121
<Result />
100122
</div>
101123

102-
<div className="worker" id="askSection">
124+
{/* <div className="worker" id="askSection">
103125
<Ask />
104-
</div>
126+
</div> */}
105127

106128
<div className="footer">
107129
<p className="contactText">Contact Us</p>

0 commit comments

Comments
 (0)