-
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.
feat: ipa 제공을 위한 index.html 서빙 코드 작성
- Loading branch information
Showing
4 changed files
with
97 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>We-Tri Triathlon App Download</title> | ||
<style> | ||
body, html { | ||
height: 100%; | ||
margin: 0; | ||
} | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
font-family: 'Arial', sans-serif; | ||
background-color: #F6F6FE; | ||
color: #555; | ||
} | ||
|
||
header { | ||
background-color: #5F5FF9; /* Main-03 color */ | ||
color: white; | ||
padding: 20px 0; | ||
text-align: center; | ||
} | ||
|
||
main { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
|
||
.app-info { | ||
margin-bottom: 30px; | ||
} | ||
|
||
.downloads .download-button { | ||
background-color: #E1E1FA; /* Main-02 color */ | ||
color: #333; | ||
padding: 10px 15px; | ||
margin: 10px; | ||
text-decoration: none; | ||
display: inline-block; | ||
border-radius: 5px; | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.2); | ||
} | ||
|
||
footer { | ||
display: flex; | ||
background-color: #333; | ||
color: white; | ||
padding: 10px 0; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
} | ||
|
||
.download-button:hover { | ||
background-color: #5F5FF9; /* Main-01 color */ | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>We-Tri: 트라이 애슬론을 우리와 함께해요</h1> | ||
</header> | ||
<main> | ||
<section class="app-info"> | ||
<p> | ||
이 곳은 데모 앱 설치 화면이에요. 등록되지 않은 분들은 설치할 수 | ||
없어요. | ||
</p> | ||
</section> | ||
<section class="downloads"> | ||
<a | ||
href="itms-services://?action=download-manifest&url=https://kr.object.ncloudstorage.com/wetri-ios-ipa/iOS/manifest.plist" | ||
class="download-button week-2" | ||
>Download Week 2 App</a | ||
> | ||
<a href="#" class="download-button week-3">Download Week 3 App</a> | ||
</section> | ||
</main> | ||
<footer> | ||
<p>© 2023 We-Tri. All rights reserved.</p> | ||
</footer> | ||
</body> | ||
</html> |
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,12 +1,11 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { AppService } from './app.service'; | ||
import { Controller, Get, Res } from '@nestjs/common'; | ||
import { Response } from 'express'; | ||
import { join } from 'path'; | ||
|
||
@Controller() | ||
export class AppController { | ||
constructor(private readonly appService: AppService) {} | ||
|
||
@Get() | ||
getHello(): string { | ||
return this.appService.getHello(); | ||
indexHTML(@Res() response: Response): void { | ||
response.sendFile(join(__dirname, '..', 'public', 'index.html')); | ||
} | ||
} |
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