From 6becb8cf09c02c93e0f5030957015ed4ea07789d Mon Sep 17 00:00:00 2001 From: Alam Guardin Date: Mon, 5 Aug 2024 22:17:34 -0500 Subject: style: basic styles and create profile component --- src/assets/user-profile-image.png | Bin 0 -> 7768 bytes src/components/Card.astro | 61 ------------------- src/components/Profile.astro | 60 ++++++++++++++++++ src/layouts/Layout.astro | 38 +++++------- src/pages/index.astro | 124 +++----------------------------------- 5 files changed, 86 insertions(+), 197 deletions(-) create mode 100644 src/assets/user-profile-image.png delete mode 100644 src/components/Card.astro create mode 100644 src/components/Profile.astro (limited to 'src') diff --git a/src/assets/user-profile-image.png b/src/assets/user-profile-image.png new file mode 100644 index 0000000..d2c8fd2 Binary files /dev/null and b/src/assets/user-profile-image.png differ diff --git a/src/components/Card.astro b/src/components/Card.astro deleted file mode 100644 index bd6d597..0000000 --- a/src/components/Card.astro +++ /dev/null @@ -1,61 +0,0 @@ ---- -interface Props { - title: string; - body: string; - href: string; -} - -const { href, title, body } = Astro.props; ---- - - - diff --git a/src/components/Profile.astro b/src/components/Profile.astro new file mode 100644 index 0000000..d174a9c --- /dev/null +++ b/src/components/Profile.astro @@ -0,0 +1,60 @@ +--- +import UserProfileImage from '../assets/user-profile-image.png' +--- + +
+
+
+ This is me! +
+
+
+

Kelly Bowlin

+

Web Designer

+
+
+ + \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 1810971..b80dd61 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -13,6 +13,7 @@ const { title } = Astro.props; + {title} @@ -22,29 +23,22 @@ const { title } = Astro.props; diff --git a/src/pages/index.astro b/src/pages/index.astro index fb62628..6d91e65 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,123 +1,19 @@ --- import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.astro'; +import Profile from '../components/Profile.astro'; --- -
- -

Welcome to Astro

-

- To get started, open the directory src/pages in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above. -

- -
+
+ +
-- cgit v1.2.3