diff --git a/JoshHeaps.Net/Properties/ServiceDependencies/JoshHeapsNet20241122150003 - Web Deploy/profile.arm.json b/JoshHeaps.Net/Properties/ServiceDependencies/JoshHeapsNet20241122150003 - Web Deploy/profile.arm.json new file mode 100644 index 0000000..2f3b092 --- /dev/null +++ b/JoshHeaps.Net/Properties/ServiceDependencies/JoshHeapsNet20241122150003 - Web Deploy/profile.arm.json @@ -0,0 +1,113 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_dependencyType": "compute.appService.windows" + }, + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "DefaultResourceGroup-WUS", + "metadata": { + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "westus", + "metadata": { + "description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support." + } + }, + "resourceName": { + "type": "string", + "defaultValue": "JoshHeapsNet20241122150003", + "metadata": { + "description": "Name of the main resource to be created by this template." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "variables": { + "appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]" + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "location": "[parameters('resourceLocation')]", + "name": "[parameters('resourceName')]", + "type": "Microsoft.Web/sites", + "apiVersion": "2015-08-01", + "tags": { + "[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty" + }, + "dependsOn": [ + "[variables('appServicePlan_ResourceId')]" + ], + "kind": "app", + "properties": { + "name": "[parameters('resourceName')]", + "kind": "app", + "httpsOnly": true, + "reserved": false, + "serverFarmId": "[variables('appServicePlan_ResourceId')]", + "siteConfig": { + "metadata": [ + { + "name": "CURRENT_STACK", + "value": "dotnetcore" + } + ] + } + }, + "identity": { + "type": "SystemAssigned" + } + }, + { + "location": "[parameters('resourceLocation')]", + "name": "[variables('appServicePlan_name')]", + "type": "Microsoft.Web/serverFarms", + "apiVersion": "2015-08-01", + "sku": { + "name": "S1", + "tier": "Standard", + "family": "S", + "size": "S1" + }, + "properties": { + "name": "[variables('appServicePlan_name')]" + } + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/JoshHeaps.Net/wwwroot/css/site.css b/JoshHeaps.Net/wwwroot/css/site.css index 8fc4476..97d5cb7 100644 --- a/JoshHeaps.Net/wwwroot/css/site.css +++ b/JoshHeaps.Net/wwwroot/css/site.css @@ -8,10 +8,9 @@ #WelcomeMessage { font: 3vw arial; width: auto; - height: 80vh; - max-height: 80vh; + height: 40vw; + padding-top: 20vw; text-align: center; - padding-top: 33vh; padding-left: 10vw; padding-right: 10vw; } \ No newline at end of file diff --git a/JoshHeaps.Net/wwwroot/js/site.js b/JoshHeaps.Net/wwwroot/js/site.js index ba5ac3b..b150d7c 100644 --- a/JoshHeaps.Net/wwwroot/js/site.js +++ b/JoshHeaps.Net/wwwroot/js/site.js @@ -1,3 +1,7 @@ window.onload = function () { + const element = document.getElementById("WelcomeMessage"); + element.style.display = "none"; // Trigger reflow + element.offsetHeight; // Force reflow + element.style.display = ""; // Restore the original display typeText("#WelcomeMessage", "Hey! You found me! Since I have your attention, why don't I tell you about myself?"); } \ No newline at end of file