Skip to content

Commit

Permalink
feat: go live tweaks (#20)
Browse files Browse the repository at this point in the history
* feat: responsive list elements

* feat: minor upgrades for go live
  • Loading branch information
victorfrye authored Jan 22, 2024
1 parent c6cb754 commit 7a8a761
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 104 deletions.
Original file line number Diff line number Diff line change
@@ -1,46 +1,42 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RED_GRASS_0C741F10F }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "src/Client" # App source code path
api_location: "Api" # Api source code path - optional
output_location: "wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_RED_GRASS_0C741F10F }}
action: "close"
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_SWA_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "src/Client"
output_location: "wwwroot"

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_SWA_TOKEN }}
action: "close"
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"ms-dotnettools.csharp",
"ms-vscode.azure-account",
"ms-azuretools.vscode-azurestaticwebapps",
"ms-azuretools.vscode-azureresourcegroups"
]
}
2 changes: 1 addition & 1 deletion src/Client/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@inject IHttpClientFactory ClientFactory
@inject NavigationManager NavigationManager

<PageTitle>Microsoft Graveyard</PageTitle>
<PageTitle>Microsoft Graveyard | The virtual graveyard for all products killed by Microsoft</PageTitle>

<Graveyard Corpses=@_corpses/>

Expand Down
2 changes: 1 addition & 1 deletion src/Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Microsoft Graveyard</title>
<title>Microsoft Graveyard | The virtual graveyard for all products killed by Microsoft</title>
<base href="/" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
Expand Down
58 changes: 2 additions & 56 deletions src/Client/wwwroot/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
sans-serif;

--bg-threads: radial-gradient(circle at 30% 107%, #ffd600 0%, #ffd600 10%, #ff7a00 20%, #ff0069 50%, #d300c5 75%, #7638fa 90%);
--bg-linkedin: #0077B5;
--bg-github: #333333;
}

Expand All @@ -40,10 +39,6 @@ footer {
height: 64px;
}

.navmenu-icon {
display: none;
}

a,
.btn-link {
color: white;
Expand All @@ -61,7 +56,6 @@ a:hover {
padding: 5px;
}


#blazor-error-ui {
background: lightyellow;
bottom: 0;
Expand Down Expand Up @@ -102,14 +96,14 @@ a:hover {

.loading-progress circle {
fill: none;
stroke: #e0e0e0;
stroke: #fafafa;
stroke-width: 0.6rem;
transform-origin: 50% 50%;
transform: rotate(-90deg);
}

.loading-progress circle:last-child {
stroke: #1b6ec2;
stroke: black;
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
transition: stroke-dasharray 0.05s ease-in-out;
}
Expand All @@ -128,51 +122,3 @@ a:hover {
code {
color: #c02d76;
}

@media (max-width: 600px) {
.main {
flex-direction: column !important;
row-gap: 0 !important;
}

nav.sitenav {
width: 100%;
height: 100%;
}

#main-menu {
width: 100% !important;
}

#main-menu>div:first-child:is(.expander) {
display: none;
}

.navmenu {
width: 100%;
}

#navmenu-toggle {
appearance: none;
}

#navmenu-toggle~nav {
display: none;
}

#navmenu-toggle:checked~nav {
display: block;
}

.navmenu-icon {
cursor: pointer;
z-index: 10;
display: block;
position: absolute;
top: 15px;
right: 20px;
width: 20px;
height: 20px;
border: none;
}
}

0 comments on commit 7a8a761

Please sign in to comment.