난 이번에 프론트앤드와 전체 타임테이블 관리를 하였기 때문에 팀원들이 뭘 해야할지 알기 좋은 메인페이지를 가장 먼저 만들었다.
현재 필자의 상황과 문제점
(1) 필자는 비전공자에 CSS와 프론트앤드 자체를 해본적이없다.
-> 이 상태에서 욕심은 많아서 반응형으로 만들고 싶었다.
(2) 시간이 촉박했다
전체 프로젝트기간이 10일 정도인데 메인페이지가 최대한 빨리 나와야 좀더 효율적으로 진행 가능하다
해결책
-> 클론코딩,템플릿 등을 많이 봐서 적용할것을 찿고 내가 조립해내자.
==> 그래서 찿은것이 넷플릭스 HTML 템플릿이였다.
HTML,CSS,JS(조금) 만으로 Netflix 똑같이 만들어보기
HTML,CSS, JS 만으로 넷플릭스 페이지 똑같이 만들어보기 DEMO https://livemehere.github.io/netflix-design/ Kong flix Doctor Strange 2 매주 새로운 트레일러 공개 5월, 차원의 경계가 무너지고 닥터 스트레인지가 온
nyagm.tistory.com
해당 사이트에 정말 적용하기 좋게 틀을 잘 잡아주신 템플릿을 공유하신다.
(코드 길이도 적고, 충분히 DIV별로 분류가 잘되어있으니 적용하시면서 공부하는걸 추천한다)
.menu-list{
font-family: "Do Hyeon", sans-serif;
}
body {
font-family: 'Lato', sans-serif;
}
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.9);
overflow-x: hidden;
transition: 0.5s;
}
.overlay-content {
position: relative;
top: 25%;
width: 100%;
text-align: center;
margin-top: 30px;
}
.overlay a {
padding: 8px;
text-decoration: none;
font-size: 36px;
color: #818181;
display: block;
transition: 0.3s;
}
.overlay a:hover, .overlay a:focus {
color: #f1f1f1;
}
.overlay .closebtn {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
}
@media screen and (max-height: 450px) {
.overlay a {
font-size: 20px
}
.overlay .closebtn {
font-size: 40px;
top: 15px;
right: 35px;
}
}
footer {
width: 100%;
margin-bottom: 2rem;
display: flex;
justify-content: center;
align-items: center;
.wrap {
width: 80%;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
row-gap: 2em;
.social-icons {
i {
font-size: 1.5rem;
margin: 0 0.3em;
}
}
.options {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 1em;
.option {
color: #6f6f6f;
}
}
}
}
h2 {
font-weight: border;
}
.hr1 {
border: 0;
height: 2px;
background: #d3d3d3;
}
.grey {
color: #727272;
}
#strong {
font-weight: 900;
}
table {
width: 100%;
border-top: 1px solid #d3d3d3;
border-collapse: collapse;
}
th {
background-color: #d3d3d3;
border-top: 3px solid #727272;
}
th, td {
border-bottom: 1px solid #d3d3d3;
padding: 10px;
}
.greylist {
width: 50px;
height: 30px;
font-weight: 900;
color: white;
text-align: center;
background: grey;
border: solid 2px white;
border-radius: 5px;
}
.gradient {
width: 80px;
height: 30px;
font-weight: 900;
color: white;
text-align: center;
background: linear-gradient(to bottom, grey, black);
border: solid 2px white;
border-radius: 5px;
}
.left {
text-align: left;
}
.right {
float: right;
}
.center {
text-align: center;
}
a {
color: black;
text-decoration-line: none;
}
div.scrollmenu {
background-color: #333;
overflow: auto;
white-space: nowrap;
}
div.scrollmenu a {
display: inline-block;
color: white;
text-align: center;
padding: 14px;
text-decoration: none;
}
div.scrollmenu a:hover {
background-color: #777;
}
내가 만든 css 코드다. gpt + 시간 + 템플릿 이면 누구나 할 수 있으니 보시는 모든 분들이 css가 조금 욕심난다면 해보시는걸 추천한다.
'Spring MVC 게시판 만들기 팀프로젝트' 카테고리의 다른 글
Spring 게시판 프로젝트 (4) 인기게시판 만들기. (0) | 2024.06.12 |
---|---|
Spring MVC (3) 게시판 프로젝트 -> 메인 페이지 만들기(JS편) (0) | 2024.06.12 |
Spring MVC 팀 프로젝트 (1) 게시판만들기 설계 (0) | 2024.06.12 |