Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed May 21, 2020
1 parent 5e3b700 commit f6cb7c5
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions src/v3/example/dashboard.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function New-Example {
}

function New-AppBar {
param($title)
param($title, [Switch]$NoPadding)

$Drawer = New-UDDrawer -Children {
New-UDList -Children {
Expand Down Expand Up @@ -173,22 +173,43 @@ function New-AppBar {
New-UDElement -Tag 'div' -Content {$title}
} -Drawer $Drawer

New-UDElement -Tag 'div' -Attributes @{ style = @{ paddingTop = '20px'}} -Content {}
if (-not $NoPadding) {
New-UDElement -Tag 'div' -Attributes @{ style = @{ paddingTop = '20px'}} -Content {}
}
}

$Pages = @()
$Pages += New-UDPage @AdditionalParameters -Name "PowerShell Universal Dashboard" -Content {

New-AppBar -Title "PowerShell Universal Dashboard"
New-AppBar -Title "PowerShell Universal Dashboard" -NoPadding

New-UDContainer {
New-UDGrid -Container -Content {
New-UDGrid -Item -SmallSize 3 -Content {
New-UDImage -Url 'https://github.com/ironmansoftware/universal-dashboard/raw/master/images/logo.png'
New-UDElement -Tag 'div' -Content {
New-UDContainer {
New-UDGrid -Container -Content {
New-UDGrid -Item -SmallSize 3 -Content {
New-UDImage -Url 'https://github.com/ironmansoftware/universal-dashboard/raw/master/images/logo.png'
}
New-UDGrid -Item -SmallSize 9 -Content {
New-UDTypography -Text 'PowerShell Universal Dashboard' -Variant h2
New-UDTypography -Text "The most popular web framework for PowerShell" -Variant h4
}
}
New-UDGrid -Item -SmallSize 9 -Content {
New-UDTypography -Text 'PowerShell Universal Dashboard' -Variant h2
New-UDTypography -Text "The most popular web framework for PowerShell" -Variant h4
}
} -Attributes @{
style = @{
width = '100%'
backgroundColor = 'white'
paddingBottom = '20px'
paddingTop = '20px'
}
}

New-UDContainer {
New-UDElement -Tag 'div' -Content {

} -Attributes @{
style = @{
height = '25px'
}
}

Expand Down

0 comments on commit f6cb7c5

Please sign in to comment.