Created
January 7, 2019 08:19
-
-
Save ChendrayanV/55e3a6b44abcee966c64018c1842d67f to your computer and use it in GitHub Desktop.
PSHTML | MetroUI | PowerShell | Polaris
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
# Import-Module .\assemblies\PSHTML\PSHTML.psd1 | |
html -Content { | |
head -Content { | |
Title -Content "iCMS | Home" | |
Link -href "./../assets/css/metro.min.css" -rel "stylesheet" | |
Link -href "./../assets/css/metro-colors.min.css" -rel "stylesheet" | |
Link -href "./../assets/css/metro-rtl.min.css" -rel "stylesheet" | |
Link -href "./../assets/css/metro-icons.min.css" -rel "stylesheet" | |
script -src "./../assets/js/jquery-3.3.1.min.js" | |
script -src "./../assets/js/metro.min.js" | |
} | |
body -Content { | |
# Menu Bar | |
Div -Class "container-fluid bg-darkBlue fg-white pos-fixed fixed-top z-top" -Content { | |
header -Class "app-bar container bg-darkBlue fg-white pos-relative" ` | |
-Attributes @{'data-role' = 'appbar'; 'data-expand-point' = 'md'} -Content { | |
a -href "#" -Class "brand fg-white no-hover" -Content "iCMS | Home" -Target "_blank" | |
ul -Class "app-bar-menu ml-auto text-upper" -Content { | |
li -Content {a -href "http://localhost:1337/about" -Content "About"} | |
li -Content {a -href "http://localhost:1337/azure" -Content "Azure"} | |
li -Content {a -href "http://localhost:1337/office365" -Content "Office 365"} | |
li -Content {a -href "http://localhost:1337/presentation" -Content "Presentation"} | |
} | |
} | |
} | |
(1..3).ForEach( {br}) | |
<#p -Class "indent-letter" -Content { | |
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book." | |
} | |
p -Content { | |
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book." | |
}#> | |
div -Attributes @{"data-role" = "splitter"} -Class "h-100" -Content { | |
div -Class "d-flex flex-justify-center flex-align-center" -Content { | |
div -Class "tiles-grid" -Content { | |
div -Attributes @{"data-role" = "tile"; "data-size" = "small"} -Class "bg-red" | |
div -Attributes @{"data-role" = "tile"; "data-size" = "small"} -Class "bg-green" | |
div -Attributes @{"data-role" = "tile"; "data-size" = "small"} -Class "col-1 row-2" | |
div -Attributes @{"data-role" = "tile"; "data-size" = "small"} -Class "col-2 row-2 bg-yellow" | |
div -Attributes @{"data-role" = "tile"; "data-size" = "medium"; "data-cover" = "./../assets/images/PowerShell-1.jpg"} -Class "bg-white" | |
div -Attributes @{ | |
"data-role" = "tile"; | |
"data-size" = "wide"; | |
"data-effect" = "image-set" | |
} -Content { | |
$avatars = @(Get-Content 'C:\Projects\iExpertsLive\data\contributors.json' | ConvertFrom-Json) | |
foreach ($avatar in $avatars.PSHTML) { | |
img -src "$avatar" | |
} | |
} -Class "bg-white" | |
} | |
} | |
div -Attributes @{"data-role" = "splitter"; "data-split-mode" = "vertical"} -Content { | |
div -Class "d-flex flex-justify-center flex-align-center" -Content { | |
h1 -Content { | |
div -Attributes @{ | |
"data-role" = "countdown" | |
"data-days" = (New-TimeSpan -Start (Get-Date) -End "01/19/2019").Days | |
} | |
} | |
} | |
div -Class "d-flex flex-justify-center flex-align-center" -Content "2" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment