diff --git a/Gruntfile.js b/Gruntfile.js index 3ee83a5..6c679d8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,7 +22,8 @@ module.exports = function(grunt) { 'files': { 'assets/scripts/interfug.min.js': [ 'scripts/interfug.app.js', - 'scripts/home.controller.js' + 'scripts/home.controller.js', + 'scripts/kontakt.controller.js' ] } } diff --git a/routes/index.js b/routes/index.js index 4d37402..079e667 100644 --- a/routes/index.js +++ b/routes/index.js @@ -19,4 +19,8 @@ router.get('/home', function(req, res) { }); }); +router.get('/kontakt', function(req, res) { + res.render('kontakt', {}); +}); + module.exports = router; diff --git a/scripts/interfug.app.js b/scripts/interfug.app.js index 86d5d3c..bdf764d 100644 --- a/scripts/interfug.app.js +++ b/scripts/interfug.app.js @@ -9,5 +9,9 @@ templateUrl: 'home', controller: 'home' }) + .when('/kontakt', { + templateUrl: 'kontakt', + controller: 'kontakt' + }); }]); })(window.app || (window.app = {})); diff --git a/scripts/kontakt.controller.js b/scripts/kontakt.controller.js new file mode 100644 index 0000000..1752631 --- /dev/null +++ b/scripts/kontakt.controller.js @@ -0,0 +1,6 @@ +'use strict'; + +(function (app) { + app.interfug.controller('kontakt', ['$scope', function($scope) { + }]); +})(window.app); diff --git a/views/kontakt.pug b/views/kontakt.pug new file mode 100644 index 0000000..73e08e3 --- /dev/null +++ b/views/kontakt.pug @@ -0,0 +1,3 @@ +h2 Kontakt +p Solltest du noch Fragen haben, melde dich einfach unter #[a(href='mailto:kontakt@interfug.de') kontakt@interfug.de]. +p Für weitere Kontaktmöglichkeiten schaue bitte in unser #[a(href='https://chaoschemnitz.de/ChaosChemnitz:Impressum') Impressum].