diff --git a/app/page.tsx b/app/page.tsx index f306f40..c034f6f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,11 +1,17 @@ -import searchPic from '../public/search.svg'; +import mastodonPic from '../public/mastodon.svg'; +import githubPic from '../public/github.svg'; +import instagramPic from '../public/instagram.svg'; +import steamPic from '../public/steam.svg'; +import gamePic from '../public/gamepad.svg'; +import projectPic from '../public/project.svg'; import Image from "next/image"; import Link from "next/link"; import AnimatedLink from '../components/animatedLink'; import BlogArea from "../components/blogpost"; -import HeaderToolbar from "../components/header/toolbar"; + +import MainHeader from "@/components/header/main"; // Mock data for blog posts const blogposts = [ @@ -14,46 +20,35 @@ const blogposts = [ body: 'Explore the fascinating world of retro futurism and its impact on modern science and culture.', publish: '2023-10-01', get_absolute_url: '/blog/retro-futurism', + tags: ["science", "retro", "science-friction"] }, { label: 'The Science Behind Video Games', body: 'Discover how video games are pushing the boundaries of technology and human interaction.', publish: '2023-09-25', get_absolute_url: '/blog/science-video-games', + tags: ["science", "math", "games"] + }, + { + label: 'How to install Docker & Docker Compose', + body: 'Guide to install Docker & Docker Compose on your machine.', + publish: '2023-09-25', + get_absolute_url: '/blog/docker-installation', + tags: ["docker", "docker-compose", "linux"] + }, + { + label: 'Rocket Science', + body: 'Discover how rocket are work.', + publish: '2023-09-25', + get_absolute_url: '/blog/rocket-science', + tags: ["rocket", "space", "engineering"] }, ]; export default function Home() { return (
-
-
-
    -
  • - - aderk.tech - -
  • - -
  • - - search - -
  • -
-
-
-

- Hello. I am is a programmer, hacker, and gamer. Love comics, coding, read books. There I am posting articles about science and another staff, that’s im like. -

-
- -
+
@@ -61,20 +56,66 @@ export default function Home() {
diff --git a/components/blogpost.tsx b/components/blogpost.tsx index 1bc9722..281f5dd 100644 --- a/components/blogpost.tsx +++ b/components/blogpost.tsx @@ -1,5 +1,8 @@ 'use client'; +import tagsPic from '../public/tags.svg'; +import calendarPic from '../public/calendar.svg' + import AnimatedLink from '../components/animatedLink'; import Image from 'next/image'; @@ -8,6 +11,7 @@ interface BlogPost { body: string; publish: string; get_absolute_url: string; + tags: string[]; } interface BlogAreaProps { @@ -16,10 +20,10 @@ interface BlogAreaProps { export default function BlogArea({ blogposts }: BlogAreaProps) { return ( -
+
{blogposts.map((blogpost, index) => ( -
+
-
    -
  • Games
  • -
  • Science
  • +
      +
    • lang
    • + {blogpost.tags.map((tag, index) => ( +
    • {tag}
    • + ))}
    {blogpost.body.slice(0, 512)}...
    -
    -

    Posted: {blogpost.publish}

    -
    -
    +
      +
    • lang
    • +
    • {blogpost.publish}

    • +
    + +
    Read the article diff --git a/components/header/main.tsx b/components/header/main.tsx new file mode 100644 index 0000000..978238d --- /dev/null +++ b/components/header/main.tsx @@ -0,0 +1,41 @@ +import searchPic from '@/public/search.svg'; + + +import Image from "next/image"; +import Link from "next/link"; + +import AnimatedLink from '../animatedLink'; +import HeaderToolbar from "../header/toolbar"; + +export default function MainHeader() { + return ( +
    +
    +
      +
    • + + aderk.tech + +
    • + +
    • + + search + +
    • +
    +
    +
    +

    + Hello. I am is a programmer, hacker, and gamer. Love comics, coding, read books. There I am posting articles about science and another staff, that’s im like. +

    +
    + +
    + ); +} \ No newline at end of file diff --git a/public/calendar.svg b/public/calendar.svg new file mode 100644 index 0000000..c002b85 --- /dev/null +++ b/public/calendar.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/public/gamepad.svg b/public/gamepad.svg new file mode 100644 index 0000000..d5f0644 --- /dev/null +++ b/public/gamepad.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/github.svg b/public/github.svg new file mode 100644 index 0000000..afb1814 --- /dev/null +++ b/public/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/instagram.svg b/public/instagram.svg new file mode 100644 index 0000000..8fc9c72 --- /dev/null +++ b/public/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/mastodon.svg b/public/mastodon.svg new file mode 100644 index 0000000..69ab9c0 --- /dev/null +++ b/public/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/project.svg b/public/project.svg new file mode 100644 index 0000000..465269a --- /dev/null +++ b/public/project.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/steam.svg b/public/steam.svg new file mode 100644 index 0000000..ba29e7d --- /dev/null +++ b/public/steam.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/tags.svg b/public/tags.svg new file mode 100644 index 0000000..49c8817 --- /dev/null +++ b/public/tags.svg @@ -0,0 +1,5 @@ + + + + +