From 4f9f65650787516fc4e7a96a6ee38bc40e387c46 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 23 Jan 2024 20:26:14 -0500 Subject: Margins more consistent; Projects grids; Mobile optimized --- src/components/contacts.json | 40 +++++++++++++++++----------------- src/layouts/Page.astro | 2 +- src/layouts/PageMarkdown.astro | 2 +- src/pages/contacts.astro | 22 ++++++++++--------- src/pages/projects.astro | 49 ++++++++++++++++++++++++++---------------- src/styles/index.css | 13 +++++++---- 6 files changed, 74 insertions(+), 54 deletions(-) diff --git a/src/components/contacts.json b/src/components/contacts.json index 6763340..fbad4c0 100644 --- a/src/components/contacts.json +++ b/src/components/contacts.json @@ -1,28 +1,22 @@ [ - { - "platform": "GitHub", - "icon": "github", - "username": "Alee14", - "url": "https://github.alee14.me" - }, { "platform": "LinkedIn", "icon": "linkedin", "username": "AndrewLeeCAN", "url": "https://linkedin.alee14.me" }, + { + "platform": "GitHub", + "icon": "github", + "username": "Alee14", + "url": "https://github.alee14.me" + }, { "platform": "PayPal", "icon": "paypal", "username": "alee14498", "url": "https://paypal.me/alee14498" }, - { - "platform": "Discord", - "icon": "discord", - "username": "Andrew Lee Projects", - "url": "https://discord.alee14.me" - }, { "platform": "YouTube", "icon": "youtube", @@ -35,13 +29,6 @@ "username": "alee@mstdn.ca", "url": "https://mstdn.ca/@alee" }, - { - "platform": "X", - "icon": "x-twitter", - "username": "Alee14498", - "url": "https://twitter.alee14.me", - "mouseover": "yuck." - }, { "platform": "Instagram", "icon": "instagram", @@ -53,5 +40,18 @@ "icon": "reddit", "username": "alee1449", "url": "https://reddit.alee14.me" + }, + { + "platform": "Discord", + "icon": "discord", + "username": "Andrew Lee Projects", + "url": "https://discord.alee14.me" + }, + { + "platform": "X", + "icon": "x-twitter", + "username": "Alee14498", + "url": "https://twitter.alee14.me", + "mouseover": "yuck." } -] \ No newline at end of file +] diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index 667f7c3..51ebd6b 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -36,7 +36,7 @@ const { title, description } = Astro.props; margin: 10px 10em 10px 10em; } - @media (max-width: 768px) { + @media (max-width: 992px) { .container { margin: 10px 20px 10px 20px; } diff --git a/src/layouts/PageMarkdown.astro b/src/layouts/PageMarkdown.astro index 1da7491..4675a78 100644 --- a/src/layouts/PageMarkdown.astro +++ b/src/layouts/PageMarkdown.astro @@ -37,7 +37,7 @@ const { frontmatter } = Astro.props; margin: 10px 10em 10px 10em; } - @media (max-width: 768px) { + @media (max-width: 992px) { .container { margin: 10px 20px 10px 20px; } diff --git a/src/pages/contacts.astro b/src/pages/contacts.astro index 908fba8..5123bed 100644 --- a/src/pages/contacts.astro +++ b/src/pages/contacts.astro @@ -4,15 +4,17 @@ import { Icon } from 'astro-icon/components'; import contacts from "../components/contacts.json"; --- - {contacts.map((contact)=> { - let icon = "fa6-brands:" + contact.icon; - return ( -
- - {contact.platform} ({contact.username}) -
- ) - })} +
+ {contacts.map((contact)=> { + let icon = "fa6-brands:" + contact.icon; + return ( +
+ + {contact.platform} ({contact.username}) +
+ ) + })} +
\ No newline at end of file + diff --git a/src/pages/projects.astro b/src/pages/projects.astro index b6da87a..70eeb08 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -3,31 +3,38 @@ import Page from "../layouts/Page.astro"; import projects from "../components/projects.json"; --- - { - projects.map((project) => { - return ( -
-

{project.name}

-

{project.description}

- {project.links.map((link) => { - return ( - {link.name} - ) - })} -
- ) - }) - } +
+ { + projects.map((project) => { + return ( +
+

{project.name}

+

{project.description}

+ {project.links.map((link) => { + return ( + {link.name} + ) + })} +
+ ) + }) + } +
\ No newline at end of file + diff --git a/src/styles/index.css b/src/styles/index.css index 8df217d..33f84ac 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -16,8 +16,8 @@ p { font-size: 1.1em; } -.description { - line-height: 0.4; +.description h2 { + margin: 0.1em 0; } .social { @@ -33,12 +33,16 @@ p { font-size: 1.2em; } +.headline h3 { + margin: 0.5em; +} + .information { display: grid; grid-template-columns: 1fr 0.7fr; grid-template-rows: auto auto; gap: 1em; - padding: 30px; + margin: 2em 10em 2em 10em; } .box { @@ -58,13 +62,14 @@ p { } /* Mobile view */ -@media (max-width: 768px) { +@media (max-width: 992px) { .social { font-size: 2.6em; gap: 1em; } .information { + margin: 2em; grid: auto auto auto / 1fr; } -- cgit v1.2.3