Skip to content

Commit

Permalink
Merge branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dduicoder committed Jul 11, 2024
2 parents a850307 + f985b18 commit db9c901
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
29 changes: 29 additions & 0 deletions src/components/name.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
section {
position: relative;

.nameTable {

}

.line {

}

.basket {
position: absolute;

button {
position: absolute;

.button1 {
left: 0;
top: 10px;
z-index: 10;
}

.button2 {
right: 0;
}
}
}
}
45 changes: 45 additions & 0 deletions src/components/name.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import classes from "./name.module.scss";


const nameChars = [
"가감갑강건겸경고공곽관교구국권",
"규균금기김나난남노다도동라랑로",
"록류륜리린림마명무묵문미민박방배",
"백범변병보빈빛삭상서석선성세소",
"손솔송수순승시신아안양엘연열영",
"예오옥완요용우욱웅원유윤율은의",
"이인일임장재전정제조종주준지진",
"차찬창채천철청최태택하한함해허",
"헌혁현형혜호홍환황효후훈휘흔희",
].join("").split(""); // 135 = 15 * 9 characters + 1



export default function Name() {
return (
<section>
<h2>여러분의 이름에 포함된 글자를 바구니에 담아보아요</h2>
<div className={classes.description}>
같은 글자는 두 번 다시 나타나지 않아요. 글자를 놓쳤다면 처음부터!!!
</div>
<div className={classes.nameTable}>
{nameChars.map(char => (
<span className={classes.line}>
<button type="button" onMouseEnter={() => {}} key={char}>
{char}
</button>
</span>
))}
</div>
<div className={classes.basket}>
<img src={"./basket.png"} alt="basket" width={120} height={90}/>
<button type="button" className="button1" onClick={() => {}}>
입력
</button>
<button type="button" className="button2" onClick={() => {}}>
버리기
</button>
</div>
</section>
)
}
2 changes: 1 addition & 1 deletion src/pages/first_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const FirstPage = () => {
setAgree(false);
setTimeout(() => {
setAgree(true);
}, 1000);
}, 500);
};

const nextPageHandler = (_: any) => {
Expand Down

0 comments on commit db9c901

Please sign in to comment.