-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Verificado #3
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
23f7e81
Create create-deploy.yml
cgonzalezdev f5043eb
Merge pull request #2 from cgonzalezdev/test-1
cgonzalezdev c50282c
Create azure-deploy.yml
cgonzalezdev 724268d
Update main.bicep
cgonzalezdev 234c099
Update style.css
cgonzalezdev 104e3a8
Update Hours.js
cgonzalezdev c7ed1ec
Update index.js
cgonzalezdev ce7d944
Update _app.js
cgonzalezdev 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 hidden or 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,25 @@ | ||
name: Deploy to Azure | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- 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@v1 | ||
with: | ||
appSourcePath: ${{ github.workspace }} | ||
acrName: ${{ vars.AZURE_PREFIX }}acr | ||
resourceGroup: ${{ vars.AZURE_RG }} | ||
containerAppName: ${{ vars.AZURE_PREFIX }}containerapp |
This file contains hidden or 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,24 @@ | ||
name: Create Azure resources | ||
on: [workflow_dispatch] | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Checkout codes | ||
- uses: actions/checkout@main | ||
|
||
# Log into Azure | ||
- uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
# Deploy Bicep file | ||
- name: create resources | ||
uses: azure/arm-deploy@v1 | ||
with: | ||
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }} | ||
resourceGroupName: ${{ vars.AZURE_RG }} | ||
template: ${{ github.workspace }}/config/main.bicep | ||
parameters: 'namePrefix=${{ vars.AZURE_PREFIX }}' | ||
failOnStdErr: false |
This file contains hidden or 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 hidden or 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 +1,32 @@ | ||
// Placeholder to host a component | ||
import React from "react"; | ||
|
||
const Hours = () => { | ||
// add logic | ||
|
||
const shelterHours = [ | ||
{ day: "Monday", open: "10:00", close: "16:00" }, | ||
{ day: "Tuesday", open: "10:00", close: "16:00" }, | ||
{ day: "Wednesday", open: "10:00", close: "16:00" }, | ||
{ day: "Thursday", open: "10:00", close: "16:00" }, | ||
{ day: "Friday", open: "10:00", close: "16:00" }, | ||
{ day: "Saturday", open: "9:00", close: "20:00" }, | ||
{ day: "Sunday", open: "9:00", close: "20:00" }, | ||
|
||
] | ||
|
||
// get the long day name and store it in a variable called today | ||
const today = new Date().toLocaleDateString('en-US', { weekday: 'long' }); | ||
|
||
// get today's hours | ||
const todayHours = shelterHours.find((day) => day.day === today); | ||
|
||
// display today and the hours in an div with an id of hours | ||
return ( | ||
<div id="hours"> | ||
<h2>Horario:</h2> | ||
<p>{todayHours.day} {todayHours.open} - {todayHours.close}</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default Hours; |
This file contains hidden or 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 hidden or 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 hidden or 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
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.
Verificado #3
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
base: main
Are you sure you want to change the base?