From af6588113e83f8fafa101fd57eb351744660907d Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Sat, 9 Dec 2023 17:32:22 +0100 Subject: [PATCH] :sparkles: about-page is looking good --- src/layouts/Layout.astro | 21 +++++++++++++++++++++ src/pages/about.astro | 14 -------------- src/pages/about.md | 36 ++++++++++++++++++++++++++++++++++++ src/styles/global.css | 9 ++++++++- 4 files changed, 65 insertions(+), 15 deletions(-) create mode 100644 src/layouts/Layout.astro delete mode 100644 src/pages/about.astro create mode 100644 src/pages/about.md diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..0a4621b --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,21 @@ +--- +import BaseHead from '../components/BaseHead.astro'; +import SectionContainer from '../components/SectionContainer.astro'; + +const {frontmatter} = Astro.props; +--- + + + + + +
+
+

{frontmatter.title}

+

{frontmatter.description}

+
+ +
+
+
+
\ No newline at end of file diff --git a/src/pages/about.astro b/src/pages/about.astro deleted file mode 100644 index 58f9cc5..0000000 --- a/src/pages/about.astro +++ /dev/null @@ -1,14 +0,0 @@ ---- -import SectionContainer from '../components/SectionContainer.astro'; ---- - - -
-

About me

-

Some information about me & stuff I like

- link to tools -

- sidojdjosajoidsajaiodoaisoiasdosiadjoiaskflsdmklmdfsmlkfdskmdjdoasijsadkldsanlndsalnasdnlksadnklsdnlkdoasjdoasidjaoisjdoiasjdoasijdoiasjdoaijdio flex justify-center mx-auto md:gap-64 gap-4 py-5 -

-
-
\ No newline at end of file diff --git a/src/pages/about.md b/src/pages/about.md new file mode 100644 index 0000000..5e7e0a4 --- /dev/null +++ b/src/pages/about.md @@ -0,0 +1,36 @@ +--- +title: 'About Me' +description: 'Some information about me & stuff I like' +layout: "../layouts/Layout.astro" +--- + +```js +public class Me { + + private String self; + + public Information info(self) { + self.name = "Sindre Kjelsrud"; + self.nickname = "Sid"; + self.year_born = 1999; + self.hometown = "Skedsmokorset, Viken"; + self.curr_location = "Bergen, Vestlandet"; + self.university = "Western University of Applied Sciences"; + } + + public Favourites favs(self) { + self.fav_sport = "bouldering && climbing"; + self.fav_color = "purple"; + self.fav_series = "Silicon Valley"; + self.fav_anime = "One Piece"; + self.fav_movie = "The Social Network || Ready Player One"; + self.fav_animemov = "Le Sommet des Dieux"; + } + + public ContactInformation contact_info(self) { + self.github = "SindreKjelsrud"; + self.linkedin = "Sindre Kjelsrud"; + self.instagram = "sindrekjelsrud"; + } +} +``` \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index 4b4d621..48536b5 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -97,4 +97,11 @@ body { .blogtime { color: var(--light-2); } -.dark .blogtime { color: var(--dark-2); } \ No newline at end of file +.dark .blogtime { color: var(--dark-2); } + +/* RANDOM */ +code { + display: block; + border-radius: 10px; + padding: 20px; +} \ No newline at end of file