diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0ac0ed3b9be1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Hugo-generated assets +public/ +resources/ + +# npm assets +node_modules/ diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..7a2bcfc06a26 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +serve: + hugo server \ + --buildDrafts \ + --buildFuture + +preview-build: + hugo \ + --baseURL $(DEPLOY_PRIME_URL) \ + --minify + +production-build: + hugo \ + --minify \ No newline at end of file diff --git a/assets/sass/helpers.sass b/assets/sass/helpers.sass new file mode 100644 index 000000000000..aab3dec0ae41 --- /dev/null +++ b/assets/sass/helpers.sass @@ -0,0 +1,10 @@ +=flex + display: flex + +=column + +flex + flex-direction: column + +=full-height-column + +column + min-height: 100vh \ No newline at end of file diff --git a/assets/sass/page.sass b/assets/sass/page.sass new file mode 100644 index 000000000000..92a59956a3e8 --- /dev/null +++ b/assets/sass/page.sass @@ -0,0 +1,5 @@ +.page + +full-height-column + + .main + flex: 1 \ No newline at end of file diff --git a/assets/sass/style.sass b/assets/sass/style.sass new file mode 100644 index 000000000000..01bb5af779c0 --- /dev/null +++ b/assets/sass/style.sass @@ -0,0 +1,29 @@ +{{ $fonts := site.Params.fonts }} +{{ $fontSlice := (slice) }} +{{ range $fonts }} +{{ $fontSlice = $fontSlice | append (printf "%s:%s" (replace .name " " "+") (delimit .sizes ",")) }} +{{ end }} +{{ $fontsUrl := printf "https://fonts.googleapis.com/css?family=%s" (delimit $fontSlice "|") }} +{{ $sansSerifFont := (index (where $fonts "type" "sans_serif") 0).name }} +{{ $monospaceFont := (index (where $fonts "type" "monospace") 0).name }} +{{ $fontAwesomeVersion := site.Params.font_awesome_version }} +{{ $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }} + +@charset "utf-8" +@import url({{ $fontsUrl }}) +@import url({{ $fontAwesomeUrl }}) + +@import "variables" +@import "bulma/sass/utilities/initial-variables" +@import "bulma/sass/utilities/functions" + +// Bulma variable overwrites +$primary: $opentelemetry-blue +$family-sans-serif: "{{ $sansSerifFont }}", BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif +$family-code: "{{ $monospaceFont }}", monospace + +@import "bulma/sass/utilities/derived-variables" +@import "bulma/bulma" + +@import "helpers" +@import "page" \ No newline at end of file diff --git a/assets/sass/variables.sass b/assets/sass/variables.sass new file mode 100644 index 000000000000..61e369fa89de --- /dev/null +++ b/assets/sass/variables.sass @@ -0,0 +1 @@ +$opentelemetry-blue: #0979b9 diff --git a/config.toml b/config.toml new file mode 100644 index 000000000000..c98405d90a35 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +title = "OpenTelemetry" +baseURL = "https://opentelemetry.io" +disableKinds = ["taxonomy", "taxonomyTerm"] + +[params] +font_awesome_version = "5.8.1" + +[[params.fonts]] +name = "Roboto" +sizes = [300,400,600,700] +type = "sans_serif" + +[[params.fonts]] +name = "Roboto Mono" +sizes = [400] +type = "monospace" \ No newline at end of file diff --git a/content/.gitkeep b/content/.gitkeep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 000000000000..74fc3b76a487 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,14 @@ + + + + {{ partial "css.html" . }} + + +
+ {{ partial "navbar.html" . }} + + {{ block "main" . }} + {{ end }} +
+ + \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 000000000000..517759192ce2 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ partial "home/hero.html" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/css.html b/layouts/partials/css.html new file mode 100644 index 000000000000..7ceef6455f3e --- /dev/null +++ b/layouts/partials/css.html @@ -0,0 +1,16 @@ +{{ $favicon := "favicon.png" | relURL }} +{{ $inServerMode := site.IsServer }} +{{ $includePaths := (slice "node_modules") }} +{{ $sass := "sass/style.sass" }} +{{ $cssOutput := "css/style.css" }} +{{ $devOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) }} +{{ $prodOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") }} +{{ $cssOpts := cond $inServerMode $devOpts $prodOpts }} +{{ $css := resources.Get $sass | resources.ExecuteAsTemplate $sass . | toCSS $cssOpts }} +{{ if $inServerMode }} + +{{ else }} +{{ $prodCss := $css | fingerprint }} + +{{ end }} + \ No newline at end of file diff --git a/layouts/partials/home/hero.html b/layouts/partials/home/hero.html new file mode 100644 index 000000000000..b38d0d7624e4 --- /dev/null +++ b/layouts/partials/home/hero.html @@ -0,0 +1,10 @@ +{{ $title := .Title }} +
+
+
+

+ {{ $title }} +

+
+
+
\ No newline at end of file diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html new file mode 100644 index 000000000000..a0c521c0f3de --- /dev/null +++ b/layouts/partials/navbar.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000000..e783bfa971f9 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,12 @@ +[build] +publish = "public" +command = "make production-build" + +[build.environment] +HUGO_VERSION = "0.55.3" + +[context.deploy-preview] +command = "make preview-build" + +[context.branch-deploy] +command = "make preview-build" diff --git a/package.json b/package.json new file mode 100644 index 000000000000..1882622ce8af --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "devDependencies": { + "bulma": "^0.7.4" + } +} diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 000000000000..67736c59946c Binary files /dev/null and b/static/favicon.png differ diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000000..5a06592629d8 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +bulma@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.4.tgz#7e74512e9118d9799021339e67e365ee0ac4f3f9" + integrity sha512-krG2rP6eAX1WE0sf6O0SC/FUVSOBX4m1PBC2+GKLpb2pX0qanaDqcv9U2nu75egFrsHkI0zdWYuk/oGwoszVWg==