From 53fe2087c69fe84907f92120660d73a7168f01ce Mon Sep 17 00:00:00 2001 From: juls0730 Date: Wed, 14 Dec 2022 23:36:34 -0600 Subject: [PATCH] slight refactors --- assets/css/main.css | 26 +++++++- components/{IconButton.vue => IconTag.vue} | 9 +-- components/Nav.vue | 2 +- components/ProjectCard.vue | 17 ++--- components/content/ProseCode.vue | 2 +- content/blog/how-i-made-my-site-fast.md | 2 +- content/blog/portfolio-site-rebuild.md | 7 +-- pages/blog/[...slug].vue | 8 +-- pages/blog/index.vue | 40 ++++++------ pages/index.vue | 72 ++++++++++------------ tailwind.config.js | 7 ++- 11 files changed, 103 insertions(+), 89 deletions(-) rename components/{IconButton.vue => IconTag.vue} (86%) diff --git a/assets/css/main.css b/assets/css/main.css index 2583bb7..dde5d69 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,4 +1,3 @@ -@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display&display=swap'); @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap'); @import url('https://fonts.googleapis.com/css?family=Inter&display=swap'); @@ -10,15 +9,33 @@ html, body { background-color: #191819; color: white; + z-index: 0; } -header { +header, +.blur-background::before { background-image: url(~/assets/pictues/header.min.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; } +.blur-background { + position: relative; + overflow: hidden; +} + +.blur-background::before { + content: ''; + margin: -35px; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + filter: blur(12px) saturate(115%); +} + a { @apply text-rose-500 hover:underline visited:bg-rose-700; } @@ -27,7 +44,10 @@ a { font-family: 'JetBrains Mono', monospace; } -code, kbd, pre, samp { +code, +kbd, +pre, +samp { font-family: 'JetBrains Mono', monospace; } diff --git a/components/IconButton.vue b/components/IconTag.vue similarity index 86% rename from components/IconButton.vue rename to components/IconTag.vue index f4500d6..467bc1c 100644 --- a/components/IconButton.vue +++ b/components/IconTag.vue @@ -23,12 +23,13 @@ export default { } \ No newline at end of file diff --git a/components/Nav.vue b/components/Nav.vue index 7e24357..c3d7217 100644 --- a/components/Nav.vue +++ b/components/Nav.vue @@ -1,6 +1,6 @@ - \ No newline at end of file + + \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 7909570..4b12ab6 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -10,7 +10,12 @@ module.exports = { "./app.vue", ], theme: { - extend: {}, + extend: { + screens: { + 'xs': '512px', + '3xl': '1792px' + } + }, }, plugins: [], }