From 68c22afe782299a5efd54afd4e6367efd025aec9 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Wed, 23 Nov 2016 18:07:51 +0100 Subject: Fügt contact form hinzu. --- content/contact.md | 8 ++++++ content/thankyou.md | 8 ++++++ gulpfile.js | 8 +++++- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/contact/single.html | 33 +++++++++++++++++++++++ layouts/index.html | 4 +-- layouts/thankyou/single.html | 17 ++++++++++++ layouts/uhttpd/single.html | 6 ++--- static/custom.css | 63 +++++++++++++++++++++++++++++++++++++++++--- 10 files changed, 139 insertions(+), 12 deletions(-) create mode 100644 content/contact.md create mode 100644 content/thankyou.md create mode 100644 layouts/contact/single.html create mode 100644 layouts/thankyou/single.html diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..263c018 --- /dev/null +++ b/content/contact.md @@ -0,0 +1,8 @@ ++++ +date = "2016-11-18T11:10:19+02:00" +draft = false +title = "contact me" +type = "contact" +layout = "single" + ++++ diff --git a/content/thankyou.md b/content/thankyou.md new file mode 100644 index 0000000..9d080a4 --- /dev/null +++ b/content/thankyou.md @@ -0,0 +1,8 @@ ++++ +date = "2016-11-18T11:10:19+02:00" +draft = false +title = "thank you" +type = "thankyou" +layout = "single" + ++++ diff --git a/gulpfile.js b/gulpfile.js index e413a14..43c1167 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,7 +13,7 @@ gulp.task('concat', function() { gulp.task('uncss', function() { return gulp.src('static/concat.css') .pipe(uncss({ - html: ['public/*.html', 'public/projects/*.html', 'public/journal/*.html', 'public/journal/**/*.html'], + html: ['public/*.html', 'public/projects/*.html', 'public/journal/*.html', 'public/journal/**/*.html', 'public/thankyou/*.html', 'public/contact/*.html'], ignore: ['.text-right', '.text-left'] })) .pipe(cssnano()) @@ -27,6 +27,12 @@ gulp.task('minifyhtml', function() { gulp.src('public/projects/*.html') .pipe(htmlmin({collapseWhitespace: true})) .pipe(gulp.dest('public/projects/')); + gulp.src('public/thankyou/*.html') + .pipe(htmlmin({collapseWhitespace: true})) + .pipe(gulp.dest('public/thankyou/')); + gulp.src('public/contact/*.html') + .pipe(htmlmin({collapseWhitespace: true})) + .pipe(gulp.dest('public/contact/')); gulp.src('public/journal/*/*.html') .pipe(htmlmin({collapseWhitespace: true})) .pipe(gulp.dest('public/journal/')); diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0c2fc41..8f648dd 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,7 +3,7 @@

journal

{{ range .Data.Pages }} -
+
    diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0f61d2a..6f53645 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@

    {{.Title}}

    -
    +
    {{ .Date.Format "Mon, Jan 2, 2006" }}
    diff --git a/layouts/contact/single.html b/layouts/contact/single.html new file mode 100644 index 0000000..c497c55 --- /dev/null +++ b/layouts/contact/single.html @@ -0,0 +1,33 @@ +{{partial "header.tmpl" .}} +
    +

    {{.Title}}

    +
    +
    +
    +
    +
    +
    + + +
    +
    + + +
    +
    + + + + + cancel +
    +
    +
    +
    +

    +

    +
    +{{partial "footer.tmpl" .}} diff --git a/layouts/index.html b/layouts/index.html index 94aa532..79e4bdc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@
    projects @@ -14,7 +14,7 @@ journal
    diff --git a/layouts/thankyou/single.html b/layouts/thankyou/single.html new file mode 100644 index 0000000..aa93c50 --- /dev/null +++ b/layouts/thankyou/single.html @@ -0,0 +1,17 @@ +{{partial "header.tmpl" .}} +
    +

    {{.Title}}

    +
    +
    +
    +
    + Thank you! +
    +
    +
    +
    +

    + go back +

    +
    +{{partial "footer.tmpl" .}} diff --git a/layouts/uhttpd/single.html b/layouts/uhttpd/single.html index cfcab76..13314bd 100644 --- a/layouts/uhttpd/single.html +++ b/layouts/uhttpd/single.html @@ -70,10 +70,10 @@ nav.primary ul li a:hover { diff --git a/static/custom.css b/static/custom.css index 588ab52..661e2a8 100644 --- a/static/custom.css +++ b/static/custom.css @@ -51,14 +51,16 @@ a:hover { .center { text-align: center; } +.content { + margin-top: 50px; + width: 100%; + padding: 15px 0 0 ; +} .journal { - background-color: #efefef; color: #1f1f1f; - margin-top: 50px; + background-color: #efefef; border: 1px solid #e0e0e0; box-shadow: 0 0 2px #ddd; - width: 100%; - padding: 15px 0 0 ; } .article { text-align: left; @@ -108,3 +110,56 @@ a:hover { text-align: left; } } +::-webkit-input-placeholder { /* WebKit, Blink, Edge */ + color: #3f3f3f; + opacity: .75; +} +:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ + color: #3f3f3f; + opacity: .75; +} +::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: #3f3f3f; + opacity: .75; +} +:-ms-input-placeholder { /* Internet Explorer 10-11 */ + color: #3f3f3f; + opacity: .75; +} +.contactform input{ + color: #000; +} +.contactform textarea { + color: #000; +} +.contactform:hover { +} +.contactform-button { + /* + background-color: #1f1f1f !important; + border-color: #efefef !important; + color: #1f1f1f !important; + text-shadow: 0 0 1px #1f1f1f; + transition: text-shadow 1s; + */ + color: #3f3f3f !important; +} +.contactform-button:hover { + text-decoration: underline; + color: inherit !important; + text-shadow: 0 0 1px #efefef; + transition: color 1s; +} +input[type="email"]:focus, +input[type="number"]:focus, +input[type="search"]:focus, +input[type="text"]:focus, +input[type="tel"]:focus, +input[type="url"]:focus, +input[type="password"]:focus, +textarea:focus, +select:focus { + background-color: #efefef; + border: 1px solid #e0e0e0 !important; + box-shadow: 0 0 2px #ddd !important; + } -- cgit v1.2.3