From 14eb69573789bc4da54565db75efd40ee041419f Mon Sep 17 00:00:00 2001 From: Samlon Date: Thu, 24 Jul 2025 12:43:35 +0200 Subject: add pictures --- index.html | 23 ++++++++++------- resources/about.png | Bin 0 -> 79309 bytes resources/salmon.png | Bin 0 -> 187294 bytes styles.css | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 82 insertions(+), 10 deletions(-) create mode 100644 resources/about.png create mode 100644 resources/salmon.png diff --git a/index.html b/index.html index e242266..c7f07d5 100644 --- a/index.html +++ b/index.html @@ -27,13 +27,18 @@
-
Hi, my name is
-

Salmon.

-

I build things.

-

I mainly do C++ and whatnot.

-
- Contacts - What did I do +
+
Hi, my name is
+

Salmon.

+

I build things.

+

I mainly do C++ and whatnot.

+ +
+
+ Salmon
@@ -55,8 +60,8 @@ More Linux
-
-
+
+ About Me
diff --git a/resources/about.png b/resources/about.png new file mode 100644 index 0000000..9209f11 Binary files /dev/null and b/resources/about.png differ diff --git a/resources/salmon.png b/resources/salmon.png new file mode 100644 index 0000000..9f9849a Binary files /dev/null and b/resources/salmon.png differ diff --git a/styles.css b/styles.css index 3568aeb..501b1c5 100644 --- a/styles.css +++ b/styles.css @@ -79,7 +79,30 @@ nav { } .hero-content { - max-width: 800px; + display: grid; + grid-template-columns: 1fr 1fr; + gap: 4rem; + align-items: center; + width: 100%; +} + +.hero-text { + max-width: 600px; +} + +.hero-image { + display: flex; + justify-content: center; + align-items: center; +} + +.hero-image .hero-img { + width: 100%; + max-width: 300px; + height: auto; + border-radius: 1rem; + border: none; + box-shadow: none; } .greeting { @@ -154,6 +177,11 @@ section { } /* About Section */ +.about { + padding: 6rem 0; + background-color: var(--bg); +} + .about-content { display: grid; grid-template-columns: 1fr 1fr; @@ -161,6 +189,19 @@ section { align-items: center; } +.about-image { + display: flex; + justify-content: center; + align-items: center; +} + +.about-img { + max-width: 100%; + height: auto; + border-radius: 0.5rem; + box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); +} + .skills { display: flex; flex-wrap: wrap; @@ -262,6 +303,22 @@ footer { } /* Responsive */ +@media (max-width: 1024px) { + .hero-content { + grid-template-columns: 1fr; + gap: 3rem; + text-align: center; + } + + .hero-text { + margin: 0 auto; + } + + .cta-buttons { + justify-content: center; + } +} + @media (max-width: 768px) { .nav-links { display: none; @@ -274,6 +331,16 @@ footer { .about-content { grid-template-columns: 1fr; gap: 2rem; + text-align: center; + } + + .skills { + justify-content: center; + } + + .about-img { + max-width: 80%; + margin: 0 auto; } } -- cgit v1.2.3