diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a7c8b21 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2022 Michal Vanko + +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/src/components/Footer.css.ts b/src/components/Footer.css.ts index ff3a964..51ba7e6 100644 --- a/src/components/Footer.css.ts +++ b/src/components/Footer.css.ts @@ -71,10 +71,6 @@ export const sectionListSectionClass = sprinkles({ marginY: '3x', }) -export const noWrapClass = sprinkles({ - whiteSpace: 'nowrap', -}) - export const listUlClass = sprinkles({ listStyle: 'none', padding: 'none', @@ -148,6 +144,12 @@ export const hrClass = style([ }, ]) +export const licenceText = sprinkles({ + textAlign: 'center', + width: 'parent', + fontSize: 'xs', +}) + export const latestPostsClass = style({}) globalStyle(`${siteFooterClass} a`, { @@ -165,4 +167,3 @@ globalStyle(`${siteFooterClass} a:hover`, { globalStyle(`${latestPostsClass} li a:visited:not(:hover)`, { color: vars.color.linkVisited, }) - diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 5692627..f299709 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -12,7 +12,6 @@ listLiClass, listUlClass, nestedListLiClass, - noWrapClass, sectionListsClass, sectionListSectionClass, siteFooterClass, @@ -20,6 +19,7 @@ socialLinkLabelClass, strokeSvgClass, svgClass, + licenceText, } from './Footer.css' export let latestPosts: PostContent[] @@ -154,7 +154,46 @@ diff --git a/svelte.config.js b/svelte.config.js index 66702f4..5589afb 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -9,7 +9,10 @@ const dev = mode === 'development' const config = { kit: { adapter: adapterStatic(), - vite: { plugins: [vanillaExtractPlugin()] }, + vite: { + plugins: [vanillaExtractPlugin()], + server: { fs: { allow: ['static/build'] } }, + }, prerender: { default: true }, }, preprocess: preprocess({