diff --git a/public/assets/css/app.css b/public/assets/css/app.css index a8514b2..4e43fc4 100644 --- a/public/assets/css/app.css +++ b/public/assets/css/app.css @@ -111,6 +111,10 @@ main .options .card .form-subgroup .form-subgroup { padding-left: 0.4rem; } +main .options .card .form-subgroup .form-check + .form-subgroup { + margin-left: 5.5px; +} + main .options .card .form-control[type="text"]:placeholder-shown, main .options .card .form-control[type="email"]:placeholder-shown { background-color: #f8f8f8; @@ -238,6 +242,19 @@ main .buttons .btn-reset img { height: 0.9rem; } +main .presets { + text-align: center; + margin-bottom: 0.5rem; +} + +main .presets .btn img { + height: 1.1rem; + vertical-align: text-bottom; +} + +main .presets .btn.btn-outline-dark:hover { + background-color: #666; +} /* diff --git a/public/assets/img/angular.svg b/public/assets/img/angular.svg new file mode 100644 index 0000000..7badfb5 --- /dev/null +++ b/public/assets/img/angular.svg @@ -0,0 +1 @@ +Angular icon diff --git a/public/assets/img/codeigniter.svg b/public/assets/img/codeigniter.svg new file mode 100644 index 0000000..9447b56 --- /dev/null +++ b/public/assets/img/codeigniter.svg @@ -0,0 +1 @@ +CodeIgniter icon diff --git a/public/assets/img/laravel.svg b/public/assets/img/laravel.svg new file mode 100644 index 0000000..7438f84 --- /dev/null +++ b/public/assets/img/laravel.svg @@ -0,0 +1 @@ +Laravel icon diff --git a/public/assets/img/php.svg b/public/assets/img/php.svg new file mode 100644 index 0000000..a408d6b --- /dev/null +++ b/public/assets/img/php.svg @@ -0,0 +1 @@ +PHP icon diff --git a/public/assets/img/react.svg b/public/assets/img/react.svg new file mode 100644 index 0000000..82c9d2e --- /dev/null +++ b/public/assets/img/react.svg @@ -0,0 +1 @@ +React icon diff --git a/public/assets/img/symfony.svg b/public/assets/img/symfony.svg new file mode 100644 index 0000000..e60ac28 --- /dev/null +++ b/public/assets/img/symfony.svg @@ -0,0 +1 @@ +Symfony icon diff --git a/public/assets/img/vuejs.svg b/public/assets/img/vuejs.svg new file mode 100644 index 0000000..c96a37a --- /dev/null +++ b/public/assets/img/vuejs.svg @@ -0,0 +1 @@ +Vue.js icon diff --git a/public/assets/img/wordpress.svg b/public/assets/img/wordpress.svg new file mode 100644 index 0000000..a7dccb0 --- /dev/null +++ b/public/assets/img/wordpress.svg @@ -0,0 +1 @@ +WordPress icon diff --git a/public/assets/js/app.js b/public/assets/js/app.js index dc11c29..00a00bb 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -274,6 +274,32 @@ }); }; + $scope.setPreset = function(preset) { + $scope.data.php = data.php; + $scope.data.wordpress = data.wordpress; + $scope.data.index = data.index; + $scope.data.fallback_html = data.fallback_html; + + switch(preset) { + case 'frontend': + $scope.data.php = 'off'; + $scope.data.index = 'index.html'; + $scope.data.fallback_html = true; + break; + case 'spa': + $scope.data.index = 'index.html'; + $scope.data.fallback_html = true; + break; + case 'wordpress': + $scope.data.wordpress = true; + break; + } + + gtag('event', preset, { + event_category: 'preset', + }); + }; + /////////////////////////// diff --git a/public/index.html b/public/index.html index 746190c..f8d1add 100644 --- a/public/index.html +++ b/public/index.html @@ -26,6 +26,12 @@
+
+ + + + +