This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
11 changed files
with
445 additions
and
129 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,33 @@ | ||
name: If push to the main, deploy it | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
# paths: | ||
# - "canbus-server/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Azure | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Build and deploy Container App | ||
uses: azure/container-apps-deploy-action@v0 | ||
with: | ||
appSourcePath: ${{ github.workspace }}/canbus-server | ||
acrName: woowasiblings | ||
containerAppName: canbus-server | ||
containerAppEnvironment: canbus-server-env | ||
resourceGroup: rg-2024-Woowa-Siblings | ||
imageToBuild: woowasiblings.azurecr.io/canbus-server:${{ github.sha }} | ||
dockerfilePath: Dockerfile |
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM amazoncorretto:17-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN chmod +x ./gradlew | ||
RUN ./gradlew clean build | ||
|
||
ENV JAR_PATH=/app/build/libs | ||
RUN mv ${JAR_PATH}/canbus-server-0.0.1-SNAPSHOT.jar /app/app.jar | ||
|
||
ENTRYPOINT ["java", "-jar", "app.jar"] |
Empty file.
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,99 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Form Example</title> | ||
<style> | ||
.input-container { | ||
display: flex; | ||
flex-direction: column; | ||
width: 361px; | ||
padding: 20px; | ||
border-radius: 10px; | ||
background-color: #ffffff; | ||
} | ||
|
||
.input-wrapper { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.input-wrapper input { | ||
width: 325px; | ||
flex: 1; | ||
padding: 10px; | ||
font-size: 16px; | ||
border: 1px solid #ccc; | ||
border-bottom: none; | ||
border-radius: 0; | ||
outline: none; | ||
} | ||
|
||
.input-wrapper:first-child input { | ||
border-top-left-radius: 5px; | ||
border-top-right-radius: 5px; | ||
} | ||
|
||
.input-wrapper:last-child input { | ||
border-bottom: 1px solid #ccc; | ||
border-bottom-left-radius: 5px; | ||
border-bottom-right-radius: 5px; | ||
z-index: 4; | ||
} | ||
|
||
.input-wrapper img { | ||
margin-left: 10px; | ||
cursor: pointer; | ||
} | ||
|
||
.input-container input::placeholder { | ||
color: #ccc; | ||
} | ||
|
||
.icon { | ||
margin-left: 12px; | ||
width: 18; | ||
height: 18; | ||
} | ||
|
||
.submit-btn { | ||
margin-top: 16px; | ||
width: 361px; | ||
height: 48; | ||
padding: 15px; | ||
background-color: #4285F4; | ||
color: white; | ||
border: none; | ||
border-radius: 12px; | ||
font-size: 18px; | ||
font-weight: bold; | ||
cursor: pointer; | ||
} | ||
|
||
.submit-btn:hover { | ||
background-color: #357ae8; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="input-container"> | ||
<div> | ||
<div class="input-wrapper"> | ||
<input type="text" placeholder="출발 시간을 입력하세요"> | ||
<img class="icon" src="../images/ArrowsDownUp.svg"> | ||
</div> | ||
<div class="input-wrapper"> | ||
<input type="text" placeholder="출발지를 입력하세요"> | ||
<img class="icon" src="../images/iconamoon_clock.svg"> | ||
</div> | ||
<div class="input-wrapper"> | ||
<input type="text" placeholder="도착지를 입력하세요"> | ||
<img class="icon" src="../images/X.svg"> | ||
</div> | ||
</div> | ||
<button class="submit-btn">노선 신청하기</button> | ||
</div> | ||
</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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
useEffect(() => { | ||
document.body.style.overflow = "hidden"; | ||
|
||
return () => { | ||
document.body.style.overflow = "unset"; | ||
}; | ||
}, []); |
Oops, something went wrong.