Skip to content

Commit c762af6

Browse files
committed
config image
1 parent 3d3a9b7 commit c762af6

File tree

8 files changed

+132
-34
lines changed

8 files changed

+132
-34
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build and deploy ASP.Net Core app to Azure Web App - ApiColombia
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: api
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Set up .NET Core
23+
uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: '6.0.x'
26+
include-prerelease: true
27+
28+
- name: Build with dotnet
29+
run: dotnet build --configuration Release
30+
31+
- name: dotnet publish
32+
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
33+
34+
- name: Upload artifact for deployment job
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: .net-app
38+
path: ${{env.DOTNET_ROOT}}/myapp
39+
40+
deploy:
41+
runs-on: ubuntu-latest
42+
needs: build
43+
environment:
44+
name: 'Production'
45+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
46+
47+
steps:
48+
- name: Download artifact from build job
49+
uses: actions/download-artifact@v2
50+
with:
51+
name: .net-app
52+
53+
- name: Deploy to Azure Web App
54+
id: deploy-to-webapp
55+
uses: azure/webapps-deploy@v2
56+
with:
57+
app-name: 'ApiColombia'
58+
slot-name: 'Production'
59+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7961A09BD866466E9B44C312F39A1586 }}
60+
package: .

api/wwwroot/assets/css/style.css

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ h2 {
2626
color: var(--theme-bg);
2727
}
2828

29+
h3 {
30+
font-size: 1.5rem;
31+
}
32+
33+
h1,
34+
h2,
35+
h3,
36+
h4,
37+
h5,
38+
h6 {
39+
margin-bottom: 1rem;
40+
font-weight: 700;
41+
line-height: 1;
42+
}
43+
44+
h1 h2{
45+
max-width: 40ch;
46+
}
47+
48+
2949
.hero p {
3050
color: var(--theme-bg);
3151
font-size: 1.2rem;
@@ -45,10 +65,14 @@ h2 {
4565
flex-wrap: wrap;
4666
justify-content: center;
4767
align-items: center;
48-
padding: 0rem 4rem;
68+
padding: 5rem 4rem;
4969
gap: 3rem;
5070
}
5171

72+
span h2 {
73+
font-weight: 800;
74+
}
75+
5276
.hero img {
5377
height: 400px;
5478
}
@@ -60,32 +84,24 @@ h2 {
6084
}
6185
}
6286

63-
.deco-colombia {
64-
position: relative;
87+
.flag {
88+
margin: 2em;
89+
height: 102px;
90+
width: 165px;
6591
}
6692

67-
.deco-yellow {
68-
width: 10%;
69-
background-color: #ffeb3b;
70-
border-radius: 0px 7px 7px 0px;
71-
padding: 10px;
93+
.colombia {
94+
background: linear-gradient(
95+
to bottom,
96+
#fbe045 44%,
97+
#214290 40%,
98+
#214290 40%,
99+
#214290 72%,
100+
#e40001 50%
101+
);
72102
}
73103

74-
.deco-blue {
75-
width: 10%;
76-
background-color: #214290;
77-
border-radius: 0px 7px 7px 0px;
78-
padding: 8px;
79-
}
80-
81-
.deco-red {
82-
width: 10%;
83-
background-color: #e40002;
84-
border-radius: 0px 7px 7px 0px;
85-
padding: 8px;
86-
}
87-
88-
.btn-githud{
104+
.btn-githud {
89105
background-color: #214290;
90106
border: 1px solid #e9ffff;
91107
color: #e8edf7;
@@ -98,3 +114,10 @@ h2 {
98114
font-weight: 700;
99115
width: 100%;
100116
}
117+
118+
.president {
119+
display: flex;
120+
text-align: center;
121+
flex-direction: column;
122+
padding: 3.5rem 2rem;
123+
}

api/wwwroot/assets/img/1.jpg

1.19 MB
Loading
8 MB
Loading

api/wwwroot/assets/img/flag.png

5.77 KB
Loading

api/wwwroot/assets/img/map.png

44.8 KB
Loading

api/wwwroot/assets/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

api/wwwroot/index.html

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,39 @@
88
</head>
99
<body>
1010
<main class="layout, border">
11-
<section class="deco-colombia">
12-
<div class="deco-yellow"></div>
13-
<div class="deco-blue"></div>
14-
<div class="deco-red"></div>
15-
</section>
1611
<section class="hero">
1712
<div class="title-container">
18-
<div class="title">
19-
<h2>Api Colombia</h2>
20-
</div>
13+
<span>
14+
<h2>API Colombia</h2>
15+
</span>
2116
<p>
2217
public api that contains info about Colombia, <br />
2318
departments, cities, tourists places and presidents
2419
</p>
25-
<a class="btn-githud" href="https://github.com/Mteheran/api-colombia" target="_blank">view repository</a>
20+
<a
21+
class="btn-githud"
22+
href="https://github.com/Mteheran/api-colombia"
23+
target="_blank"
24+
>view repo</a
25+
>
26+
</div>
27+
<div class="flag colombia" title="Colombia"></div>
28+
</section>
29+
<section class="president president-Api">
30+
<div class="title">
31+
<h3 class="title-president">Get president</h3>
32+
<pre>
33+
<span>
34+
<span>Link of the API</span>
35+
</span>
36+
</pre>
37+
</div>
38+
<div class="container-gallery">
39+
<div class="gallery">
40+
41+
</div>
2642
</div>
27-
<img src="./assets/img/map-min.png" loading="lazy" alt="mapa-Colombia" />
2843
</section>
29-
<section></section>
3044
</main>
3145
</body>
3246
</html>

0 commit comments

Comments
 (0)