-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from LikeLionHGU/hwan_#10/메인-페이지
Hwan #10/메인 페이지
- Loading branch information
Showing
10 changed files
with
105 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,63 @@ | ||
// 프로젝트 전체 페이지 | ||
import { useState } from "react"; | ||
import Header from "../../components/Header"; | ||
import "../../styles/list.css"; | ||
|
||
import Test1 from "../../imgs/test1.png"; | ||
import Test2 from "../../imgs/test2.png"; | ||
import Test3 from "../../imgs/test3.png"; | ||
import Test4 from "../../imgs/test4.png"; | ||
|
||
const imageData = [ | ||
{ | ||
id: 1, | ||
title: "Image 1", | ||
src: Test1, // 여기에 실제 이미지 경로를 입력하세요 | ||
}, | ||
{ | ||
id: 2, | ||
title: "Image 2", | ||
src: Test2, // 여기에 실제 이미지 경로를 입력하세요 | ||
}, | ||
{ | ||
id: 3, | ||
title: "Image 3", | ||
src: Test3, // 여기에 실제 이미지 경로를 입력하세요 | ||
}, | ||
{ | ||
id: 4, | ||
title: "Image 4", | ||
src: Test4, // 여기에 실제 이미지 경로를 입력하세요 | ||
}, | ||
// 필요한 만큼 추가 | ||
]; | ||
|
||
export default function List() { | ||
return <>Hi</>; | ||
} | ||
|
||
const [dropdown, setDropdown] = useState(""); | ||
|
||
const handleSelectChange = (event) => { | ||
setDropdown(event.target.value); | ||
}; | ||
return ( | ||
<> | ||
<Header mode={1} /> | ||
<select value={dropdown} onChange={handleSelectChange}> | ||
<option value="option1">모집 중</option> | ||
<option value="option2">완결</option> | ||
<option value="option3">연재중</option> | ||
</select> | ||
<div className="list-container"> | ||
{imageData.map((image) => ( | ||
<div key={image.id} className="list-card"> | ||
<div | ||
className="list-img" | ||
style={{ backgroundImage: `url(${image.src})` }} | ||
/> | ||
{/* <img src={image.src} alt={image.title} className="list-img" /> */} | ||
<h2>{image.title}</h2> | ||
</div> | ||
))} | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.list-container { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
/* gap: 10px; */ | ||
/* padding: 10px; */ | ||
} | ||
|
||
.list-card { | ||
/* border: 1px solid #ccc; */ | ||
border-radius: 8px; | ||
overflow: hidden; | ||
text-align: center; | ||
height: 300px; | ||
} | ||
|
||
.list-img { | ||
width: 100%; | ||
height: 100%; | ||
background-size: cover; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
.swiper { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0 20px; | ||
} | ||
|
||
/* 슬라이드 안 */ | ||
|