diff --git a/src/nginxconfig/i18n/en/templates/app.js b/src/nginxconfig/i18n/en/templates/app.js index 1decf60..f170c89 100644 --- a/src/nginxconfig/i18n/en/templates/app.js +++ b/src/nginxconfig/i18n/en/templates/app.js @@ -36,5 +36,4 @@ export default { globalConfig: 'Global config', setup: 'Setup', configFiles: 'Config files', - oss: 'This tool is {link|open-source on GitHub|https://github.com/digitalocean/nginxconfig.io} under the {link|MIT|https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE} license! We welcome feedback and contributions.', }; diff --git a/src/nginxconfig/i18n/en/templates/footer.js b/src/nginxconfig/i18n/en/templates/footer.js new file mode 100644 index 0000000..b8d360d --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/footer.js @@ -0,0 +1,39 @@ +/* +Copyright 2020 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +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. +*/ + +export default { + backToTop: 'Back To Top', + thisToolIs: 'This tool is', + openSourceOnGitHub: 'open-source on GitHub', + underThe: 'under the', + mit: 'MIT', + license: 'license!', + weWelcomeFeedbackAndContributions: 'We welcome feedback and contributions.', + originallyCreatedBy: 'Originally created by', + balintSzekeres: 'Bálint Szekeres', + maintainedBy: 'maintained by', + digitalOcean: 'DigitalOcean', +}; diff --git a/src/nginxconfig/i18n/en/templates/index.js b/src/nginxconfig/i18n/en/templates/index.js index 7cb6b4e..bac43df 100644 --- a/src/nginxconfig/i18n/en/templates/index.js +++ b/src/nginxconfig/i18n/en/templates/index.js @@ -26,8 +26,9 @@ THE SOFTWARE. import app from './app'; import setup from './setup'; +import footer from './footer'; import domainSections from './domain_sections'; import globalSections from './global_sections'; import setupSections from './setup_sections'; -export default { app, setup, domainSections, globalSections, setupSections }; +export default { app, setup, footer, domainSections, globalSections, setupSections }; diff --git a/src/nginxconfig/scss/_footer.scss b/src/nginxconfig/scss/_footer.scss new file mode 100644 index 0000000..e15d097 --- /dev/null +++ b/src/nginxconfig/scss/_footer.scss @@ -0,0 +1,43 @@ +/* +Copyright 2020 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +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. +*/ + +.footer { + .container { + p { + &:not(:first-child) { + + p { + margin-top: 0; + } + } + + i { + &[class^="fa"] { + margin: 0 0 0 .25rem; + } + } + } + } +} diff --git a/src/nginxconfig/scss/style.scss b/src/nginxconfig/scss/style.scss index 70a4e98..daa6c46 100644 --- a/src/nginxconfig/scss/style.scss +++ b/src/nginxconfig/scss/style.scss @@ -49,4 +49,5 @@ $highlight: #f2c94c; @import "setup"; @import "code"; @import "files"; + @import "footer"; } diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index d898fc8..6acdb71 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -91,7 +91,7 @@ THE SOFTWARE. - + @@ -100,7 +100,6 @@ THE SOFTWARE. import sha2_256 from 'simple-js-sha2-256'; import escape from 'escape-html'; import Header from 'do-vue/src/templates/header'; - import Footer from 'do-vue/src/templates/footer'; import diff from '../util/diff'; import isChanged from '../util/is_changed'; import importData from '../util/import_data'; @@ -111,6 +110,7 @@ THE SOFTWARE. import Global from './global'; import Setup from './setup'; import NginxPrism from './prism/nginx'; + import Footer from './footer'; export default { name: 'App', diff --git a/src/nginxconfig/templates/footer.vue b/src/nginxconfig/templates/footer.vue new file mode 100644 index 0000000..c8c208e --- /dev/null +++ b/src/nginxconfig/templates/footer.vue @@ -0,0 +1,74 @@ + + + + +