From ca2f305a0a29ef9de511117549748163b81787cc Mon Sep 17 00:00:00 2001 From: Ludoviko Date: Sun, 22 May 2022 16:57:52 +0100 Subject: [PATCH] Code cleanup. Added utilities index Utilities has been added since it is my aim to have all of the staff forms and timezones added to the site --- assets/styles/globals.scss | 14 +++++++ assets/styles/index.scss | 63 ----------------------------- components/LinkCard.vue | 8 +++- pages/index.vue | 18 +++++---- pages/{ => utilities}/birthdays.vue | 2 +- pages/utilities/index.vue | 9 +++++ 6 files changed, 41 insertions(+), 73 deletions(-) rename pages/{ => utilities}/birthdays.vue (89%) create mode 100644 pages/utilities/index.vue diff --git a/assets/styles/globals.scss b/assets/styles/globals.scss index d03b49d..9cd3ea0 100644 --- a/assets/styles/globals.scss +++ b/assets/styles/globals.scss @@ -5,3 +5,17 @@ body { font-family: 'Ubuntu', sans-serif !important; background-color: colours.$bg-colour-light; } + +.container { + min-height: 100vh; + padding: 0 0.5rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100vh; +} + +.title { + font-size: 3rem; +} diff --git a/assets/styles/index.scss b/assets/styles/index.scss index f57e567..a992bfb 100644 --- a/assets/styles/index.scss +++ b/assets/styles/index.scss @@ -1,15 +1,5 @@ @use 'colours'; -.container { - min-height: 100vh; - padding: 0 0.5rem; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - height: 100vh; -} - .footer { width: 100%; height: 100px; @@ -31,43 +21,6 @@ color: #eaeaea; } -.title a { - color: #0070f3; - text-decoration: none; -} - -.title a:hover, -.title a:focus, -.title a:active { - text-decoration: underline; -} - -.title { - margin: 0; - line-height: 1.15; - font-size: 4rem; -} - -.title, -.description { - text-align: center; - color: #eaeaea; -} - -.description { - line-height: 1.5; - font-size: 1.5rem; -} - -.code { - background: #fafafa; - border-radius: 5px; - padding: 0.75rem; - font-size: 1.1rem; - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, - DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; -} - .grid { display: grid; align-items: center; @@ -75,22 +28,6 @@ grid-template-columns: 1fr 1fr 1fr; } -.card h2 { - margin: 0 0 1rem 0; - font-size: 1.5rem; -} - -.card p { - margin: 0; - font-size: 1.25rem; - line-height: 1.5; -} - -.logo { - height: 1em; - margin-left: 0.5rem; -} - @media (max-width: 600px) { .grid { width: 90%; diff --git a/components/LinkCard.vue b/components/LinkCard.vue index ab2c7ad..96d857f 100644 --- a/components/LinkCard.vue +++ b/components/LinkCard.vue @@ -1,6 +1,6 @@ @@ -21,6 +21,11 @@ export default { border-radius: 20px; transition: color 0.15s ease, border-color 0.15s ease; } +.card p { + margin: 0; + font-size: 1.25rem; + line-height: 1.5; +} .card:link, .card:visited { @@ -40,5 +45,6 @@ export default { padding: 1.25rem; width: 9rem; } + } diff --git a/pages/index.vue b/pages/index.vue index 4d7380b..1cfa55f 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -4,32 +4,34 @@ import '@/assets/styles/index.scss'; diff --git a/pages/birthdays.vue b/pages/utilities/birthdays.vue similarity index 89% rename from pages/birthdays.vue rename to pages/utilities/birthdays.vue index e209a7e..5ad3e53 100644 --- a/pages/birthdays.vue +++ b/pages/utilities/birthdays.vue @@ -1,6 +1,6 @@