-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 스타카토 웹 메인 페이지 생성 #576 #577
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d29702d
build: thymeleaf 의존성 추가
BurningFalls d8d7ab4
feat: index 페이지 생성
BurningFalls 9326670
refactor: GetMapping 경로에서 index 삭제
BurningFalls e646691
refactor: 마지막 사진 홍보용 사진으로 변경
BurningFalls 5c2656d
refactor: 첫번째 사진 삭제
BurningFalls bbca1f6
refactor: 이미지 정리
BurningFalls b5b862d
refactor: 사진 S3로 이동
BurningFalls 967414c
refactor: 사진 간격 수정
BurningFalls File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
13 changes: 13 additions & 0 deletions
13
backend/src/main/java/com/staccato/web/HomeController.java
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,13 @@ | ||
package com.staccato.web; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
public class HomeController { | ||
|
||
@GetMapping("/") | ||
public String index() { | ||
return "index"; | ||
} | ||
} |
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,90 @@ | ||
/* Reset and Basic Styling */ | ||
body { | ||
margin: 0; | ||
font-family: 'Arial', sans-serif; | ||
color: #ffffff; | ||
line-height: 1.6; | ||
} | ||
|
||
h1, h2, p { | ||
margin: 0; | ||
} | ||
|
||
/* Features Section */ | ||
.features { | ||
display: flex; | ||
flex-direction: column; /* 세로 정렬 */ | ||
align-items: center; | ||
gap: 15rem; /* 각 아이템 간의 간격 */ | ||
padding: 0; | ||
background-color: #ffffff; | ||
} | ||
|
||
.feature { | ||
width: 80%; /* 부모 컨테이너 전체 너비 */ | ||
height: auto; /* 화면 높이만큼 채우기 */ | ||
position: relative; /* 내부 이미지 정렬을 위한 상대 위치 설정 */ | ||
overflow: hidden; /* 넘치는 이미지 잘라내기 */ | ||
display: flex; /* 내부 이미지 중앙 정렬 */ | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.feature-start { | ||
width: 100%; | ||
} | ||
|
||
.feature-end { | ||
width: 90%; | ||
} | ||
|
||
.feature img { | ||
width: 100%; /* 부모 컨테이너의 가로 크기에 맞추기 */ | ||
object-fit: contain; /* 비율을 유지하며 잘리지 않도록 설정 */ | ||
} | ||
|
||
.feature .background-image { | ||
width: 100%; | ||
object-fit: contain; | ||
} | ||
|
||
.feature .overlay-image { | ||
position: absolute; /* 부모를 기준으로 절대 위치 */ | ||
top: 13%; /* 세로 중앙 정렬 */ | ||
left: 65%; /* 가로 중앙 정렬 */ | ||
width: 28%; /* 덮어씌울 이미지의 크기 */ | ||
object-fit: contain; | ||
} | ||
|
||
/* Footer 기본 스타일 */ | ||
footer { | ||
text-align: center; | ||
padding: 2rem; /* 기본 패딩 */ | ||
background: #E3C7FF; | ||
color: #222222; | ||
font-size: 1.5rem; /* 기본 글씨 크기 */ | ||
} | ||
|
||
/* 1024px 이하 화면 */ | ||
@media (max-width: 1024px) { | ||
footer { | ||
padding: 2rem; /* 패딩 줄이기 */ | ||
font-size: 1.25rem; /* 글씨 크기 줄이기 */ | ||
} | ||
} | ||
|
||
/* 768px 이하 화면 */ | ||
@media (max-width: 768px) { | ||
footer { | ||
padding: 1.5rem; /* 더 작은 패딩 */ | ||
font-size: 1rem; /* 더 작은 글씨 크기 */ | ||
} | ||
} | ||
|
||
/* 480px 이하 화면 */ | ||
@media (max-width: 480px) { | ||
footer { | ||
padding: 1rem; /* 최소 패딩 */ | ||
font-size: 0.875rem; /* 가장 작은 글씨 크기 */ | ||
} | ||
} |
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,53 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Staccato</title> | ||
<!-- AOS CSS --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/aos.css" rel="stylesheet"> | ||
<!-- Custom CSS --> | ||
<link rel="stylesheet" href="/index.css"> | ||
</head> | ||
<body> | ||
|
||
<!-- Features Section --> | ||
<section class="features"> | ||
<div class="feature feature-start" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-01.png'}" alt="Feature 1"> | ||
</div> | ||
<div class="feature" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-02.png'}" alt="Feature 2"> | ||
</div> | ||
<div class="feature" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-03.png'}" alt="Feature 3"> | ||
</div> | ||
<div class="feature" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-04.png'}" alt="Feature 4"> | ||
</div> | ||
<div class="feature" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-05.png'}" alt="Feature 5"> | ||
</div> | ||
<div class="feature" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-06.png'}" alt="Feature 6"> | ||
</div> | ||
<div class="feature feature-end" data-aos="fade-up"> | ||
<img th:src="${'https://image.staccato.kr/web/index/feature-07.png'}" alt="Feature 7" class="background-image"> | ||
<a href="https://play.google.com/store/apps/details?id=com.on.staccato&pcampaignid=web_share" target="_blank"> | ||
<img th:src="${'https://image.staccato.kr/web/index/google-play-badge.png'}" alt="Google Play Badge" class="overlay-image"> | ||
</a> | ||
</div> | ||
</section> | ||
|
||
<!-- Footer --> | ||
<footer> | ||
<p>© 2025 Staccato. All rights reserved.</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 부분 뭔가 멋있네요. ㅋㅋㅋㅋ🤣 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. footer 국룰 멘트더라구요 따라해봤습니다 ㅋㅋㅋㅋ |
||
</footer> | ||
|
||
<!-- AOS JavaScript --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/aos.js"></script> | ||
<script> | ||
AOS.init(); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
옛날 기억이 새록새록하네요....🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
록새록새..