From bbd3d0a885ecd82db69f751b3049c50670399cb4 Mon Sep 17 00:00:00 2001 From: gangjun06 Date: Wed, 12 Aug 2020 22:15:08 +0000 Subject: init commit --- LICENSE | 20 ++++++++++++ archetypes/default.md | 2 ++ layouts/404.html | 0 layouts/_default/baseof.html | 11 +++++++ layouts/_default/list.html | 0 layouts/_default/single.html | 0 layouts/index.html | 11 +++++++ layouts/partials/footer.html | 0 layouts/partials/head.html | 0 layouts/partials/header.html | 5 +++ layouts/partials/home.html | 12 +++++++ layouts/partials/navbar.html | 44 ++++++++++++++++++++++++++ static/css/index.css | 73 +++++++++++++++++++++++++++++++++++++++++++ static/img/wave.png | Bin 0 -> 4789 bytes theme.toml | 21 +++++++++++++ 15 files changed, 199 insertions(+) create mode 100644 LICENSE create mode 100644 archetypes/default.md create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/home.html create mode 100644 layouts/partials/navbar.html create mode 100644 static/css/index.css create mode 100644 static/img/wave.png create mode 100644 theme.toml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..faff36e --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..b482c42 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,11 @@ + + + + {{ partial "header.html" . }} + {{ $.Site.Title }} + + + {{ partial "navbar.html" . }} + {{ partial "home.html" . }} + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..a970e0d --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,5 @@ + + + + + diff --git a/layouts/partials/home.html b/layouts/partials/home.html new file mode 100644 index 0000000..161c837 --- /dev/null +++ b/layouts/partials/home.html @@ -0,0 +1,12 @@ +
+
+
+
+
+
+
+
asdf
+
asdf
+
+
+
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html new file mode 100644 index 0000000..bddca45 --- /dev/null +++ b/layouts/partials/navbar.html @@ -0,0 +1,44 @@ + diff --git a/static/css/index.css b/static/css/index.css new file mode 100644 index 0000000..2fbcc51 --- /dev/null +++ b/static/css/index.css @@ -0,0 +1,73 @@ +.centerAll { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +#mainBG { + position: relative; + width: 100%; + height: 80vh; + overflow: hidden; + background-size: cover; + background-repeat: no-repeat; + color: #ffffff; +} + +#mainBG .wave { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 100px; + background: url("/img/wave.png"); + background-size: 1000px 100px; +} + +#mainBG .wave.wave1 { + animation: wave-animate 30s linear infinite; + z-index: 303; + opacity: 1; + animation-delay: 0s; + bottom: 0; +} +#mainBG .wave.wave2 { + animation: wave-animate2 15s linear infinite; + z-index: 302; + opacity: 0.5; + animation-delay: -5s; + bottom: 10px; +} +#mainBG .wave.wave3 { + animation: wave-animate 30s linear infinite; + z-index: 301; + opacity: 0.2; + animation-delay: -2s; + bottom: 15; +} +#mainBG .wave.wave4 { + animation: wave-animate2 5s linear infinite; + z-index: 300; + opacity: 0.7; + animation-delay: -5s; + bottom: 20px; +} + +@keyframes wave-animate { + 0% { + background-position-x: 0; + } + 100% { + background-position-x: 1000px; + } +} + +@keyframes wave-animate2 { + 0% { + background-position-x: 0; + } + 100% { + background-position-x: -1000px; + } +} diff --git a/static/img/wave.png b/static/img/wave.png new file mode 100644 index 0000000..438acd6 Binary files /dev/null and b/static/img/wave.png differ diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..600620f --- /dev/null +++ b/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "SimpleIntro" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "Gangjun" + homepage = "https://gangjun.dev" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = "" -- cgit v1.2.3