Skip to content
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

style: main 페이지 디자인 #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 74 additions & 13 deletions frontend/my-svelte-app/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,38 @@
</div>

<div class="main-content">
<Router {routes} />
<div class="hero-section">
<div class="hero-logo">
<img src="src/assets/images.png" alt="Smart PDF Logo" />
</div>
<div class="hero-text">
<h1>Find answers<br>through precision</h1>
<p>We provide a precise and secure<br>document search solution.</p>
</div>
<div class="hero-icons">
<div class="icon">
<p>Better Security</p>
</div>
<div class="icon">
<p>Better Flexibility</p>
</div>
<div class="icon">
<p>Better Precision</p>
</div>
</div>
</div>
</div>

<style>
/* Google Fonts - Allerta */
@import url('https://fonts.googleapis.com/css2?family=Allerta&display=swap');

body {
font-family: Arial, sans-serif;
font-family: 'Allerta', sans-serif; /* 글씨체 변경 */
margin: 0;
background-color: #f0f2f5;
color: #333;
font-size: 30px;
font-size: 18px;
}

.sidebar {
Expand All @@ -43,10 +65,9 @@
}

.sidebar h2 {
color: #fff;
font-size:25px;
font-size: 25px;
margin-bottom: 20px;
font-weight: 600;
font-weight: 400;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
Expand All @@ -55,7 +76,7 @@
color: rgba(255, 255, 255, 0.9);
padding: 12px 15px;
text-decoration: none;
font-size:25px;
font-size: 20px;
display: block;
border-radius: 10px;
margin-bottom: 5px;
Expand All @@ -69,10 +90,50 @@
}

.main-content {
margin-left: 270px;
padding: 20px;
overflow-y: auto;
flex: 1;
min-height: calc(100vh - 40px);
margin-left: 250px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* 세로 가운데 정렬 */
background-color: #fff;
}

.hero-section {
text-align: center;
}

.hero-logo img {
width: 300px; /* 로고 크기 */
height: auto;
margin-bottom: 40px; /* 로고와 텍스트 간격 */
}

.hero-text h1 {
font-size: 5rem; /* 글씨 크기 */
font-weight: 400;
margin: 0;
}

.hero-text p {
font-size: 2rem; /* 글씨 크기 */
margin: 30px 0;
color: #555;
}

.hero-icons {
display: flex;
justify-content: center;
gap: 50px;
margin-top: 50px;
}

.icon {
text-align: center;
max-width: 150px;
}

.icon p {
font-size: 1.5rem; /* 글씨 크기 */
color: #333;
}
</style>
</style>
Binary file added frontend/my-svelte-app/src/assets/images.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.