Skip to content

Commit

Permalink
değişiklikler yapıldı
Browse files Browse the repository at this point in the history
  • Loading branch information
eminboydak committed Jan 24, 2024
1 parent e5fe14d commit 1d3f8d1
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 114 deletions.
23 changes: 14 additions & 9 deletions src/components/SocialList.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import { Icon } from "astro-icon/components";
import { Icon } from "astro-icon";
/**
Uses https://www.astroicon.dev/getting-started/
Find icons via guide: https://www.astroicon.dev/guides/customization/#open-source-icon-sets
Uses https://github.com/natemoo-re/astro-icon#readme
Find icons @ https://icones.js.org/
*/
const socialLinks: Array<{
name: string;
Expand All @@ -14,22 +14,27 @@ const socialLinks: Array<{
{
name: "mdi:github",
friendlyName: "Github",
link: "https://github.com/chrismwilliams/astro-cactus",
link: "https://github.com/eminboydak",
},
{
name: "mdi:mastodon",
friendlyName: "Mastodon",
link: "#",
name: "mdi:youtube",
friendlyName: "YouTube",
link: "https://youtube.com/eminboydak",
},
{
name: "mdi:twitch",
friendlyName: "Twitch",
link: "https://twitch.tv/emnbydk",
},
{
name: "mdi:linkedin",
friendlyName: "LinkedIn",
link: "#",
link: "https://linkedin.com/in/eminboydak/",
},
{
name: "mdi:email",
friendlyName: "email",
link: "mailto:[email protected]",
link: "mailto:[email protected]",
isWebmention: true,
},
];
Expand Down
7 changes: 2 additions & 5 deletions src/components/blog/webmentions/Comments.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { Image } from "astro:assets";
import { Icon } from "astro-icon/components";
import { Icon } from "astro-icon";
import type { WebmentionsChildren } from "@/types";
interface Props {
Expand Down Expand Up @@ -62,14 +62,11 @@ const comments = mentions.filter(
<p class="my-0 line-clamp-1 font-semibold text-accent-2">{mention.author?.name}</p>
<a
href={mention.url}
aria-labelledby="cmt-source"
class="not-prose hover:text-link"
target="_blank"
rel="noopener noreferrer"
title="Vist the source of this mention"
>
<span id="cmt-source" class="hidden">
Vist the source of this webmention
</span>
<Icon
class="h-5 w-5"
name="mdi:open-in-new"
Expand Down
37 changes: 24 additions & 13 deletions src/components/layout/Header.astro

Large diffs are not rendered by default.

48 changes: 22 additions & 26 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,39 @@ import aboutImg from "@/assets/about-astro.png";
const meta = {
title: "About",
description: "I'm a starter theme for Astro.build",
description: "Something about eminboydak",
};
---

<PageLayout meta={meta}>
<div class="space-y-6">
<h1 class="title">About</h1>
<h1 class="title">About Me</h1>
<p>Hello World! I usually write this sentence when I can't find anything to write.</p>
<p>
Hi, I’m a starter Astro. I’m particularly great for getting you started with your own blogging
website.
Anyway, let's keep it quick and simple, my name is Muhammed Emin Boydak, you can probably
understand by the name of my website.
</p>
<div class="flex justify-center">
<Image
src={aboutImg}
alt="A cartoon cactus looking at the 'Astro.build' logo"
loading="eager"
fetchpriority="high"
/>
</div>
<p>Here are my some of my awesome built in features:</p>
<ul class="list-inside list-disc">
<li>I'm ultra fast as I'm a static site</li>
<li>I'm fully responsive</li>
<li>I come with a light and dark mode</li>
<li>I'm easy to customise and add additional content</li>
<li>I have Tailwind CSS styling</li>
<li>Shiki code syntax highlighting</li>
<li>Satori for auto generating OG images for blog posts</li>
</ul>
<p>I am an embedded systems engineer, interested in software, firmware and electron things.</p>
<p>I graduated from Selçuk University, Department of Electrical and Electronics Engineering.</p>
<p>
Clone or fork my <a
I currently work in <a
class="cactus-link inline-block"
href="https://github.com/chrismwilliams/astro-cactus"
href="https://mepsan.com.tr"
target="_blank"
rel="noopener noreferrer"
aria-label="github repository">repo</a
> if you like me!
aria-label="company website">Mepsan</a
>.
</p>
<p>This website is about me, what I'm working on and what I like to talk about.</p>

<h1 class="title">Contact</h1>
<p>
I have recently stopped using social media, so it is quite impossible for you to reach me
through social media, so you can reach me in the following ways:
</p>
<ul class="list-inside list-disc">
<li>Discord: eminboydak</li>
<li>E-mail: <a href="mailto:[email protected]">[email protected]</a></li>
</ul>
</div>
</PageLayout>
28 changes: 2 additions & 26 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ const cactusTech: Array<{ title: string; desc: string; href: string }> = [

<PageLayout meta={{ title: "Home" }}>
<section>
<h1 class="title mb-6">Hello World!</h1>
<p class="mb-4">
Hi, I’m a theme for Astro, an example of how you can use this starter to create a personal
blog. If you want to know more about how you can customise me, add more posts, and make it
your own, click on the github icon link below and it will take you to my repo.
</p>
<h1 class="title mb-6">Hi 👋, I'm Muhammed Emin</h1>
<p class="mb-4">I like copper and electron things..</p>
<SocialList />
</section>
<section aria-label="Blog post list" class="mt-16">
Expand All @@ -74,24 +70,4 @@ const cactusTech: Array<{ title: string; desc: string; href: string }> = [
}
</ul>
</section>
<section class="mt-16">
<h2 class="title mb-4 text-xl">Technologies</h2>
<ul class="space-y-4 sm:space-y-2">
{
cactusTech.map(({ href, title, desc }) => (
<li>
<a
href={href}
target="_blank"
rel="noopener noreferrer"
class="cactus-link inline-block"
>
{title}
</a>:
<p class="inline-block sm:mt-2">{desc}</p>
</li>
))
}
</ul>
</section>
</PageLayout>
68 changes: 34 additions & 34 deletions src/site.config.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
import type { SiteConfig } from "@/types";

export const siteConfig: SiteConfig = {
// Used as both a meta property (src/components/BaseHead.astro L:31 + L:49) & the generated satori png (src/pages/og-image/[slug].png.ts)
author: "Chris Williams",
// Meta property used to construct the meta title property, found in src/components/BaseHead.astro L:11
title: "Astro Theme Cactus",
// Meta property used as the default description meta property
description: "An opinionated starter theme for Astro",
// HTML lang property, found in src/layouts/Base.astro L:18
lang: "en-GB",
// Meta property, found in src/components/BaseHead.astro L:42
ogLocale: "en_GB",
// Date.prototype.toLocaleDateString() parameters, found in src/utils/date.ts.
date: {
locale: "en-GB",
options: {
day: "numeric",
month: "short",
year: "numeric",
},
},
webmentions: {
link: "https://webmention.io/astro-cactus.chriswilliams.dev/webmention",
},
// Used as both a meta property (src/components/BaseHead.astro L:31 + L:49) & the generated satori png (src/pages/og-image/[slug].png.ts)
author: "Muhammed Emin Boydak",
// Meta property used to construct the meta title property, found in src/components/BaseHead.astro L:11
title: "emin's logbook",
// Meta property used as the default description meta property
description: " ",
// HTML lang property, found in src/layouts/Base.astro L:18
lang: "en-US",
// Meta property, found in src/components/BaseHead.astro L:42
ogLocale: "en_US",
// Date.prototype.toLocaleDateString() parameters, found in src/utils/date.ts.
date: {
locale: "en-US",
options: {
day: "numeric",
month: "short",
year: "numeric",
},
},
webmentions: {
link: "https://webmention.io/astro-cactus.chriswilliams.dev/webmention",
},
};

// Used to generate links in both the Header & Footer.
export const menuLinks: Array<{ title: string; path: string }> = [
{
title: "Home",
path: "/",
},
{
title: "About",
path: "/about/",
},
{
title: "Blog",
path: "/posts/",
},
{
title: "home",
path: "/",
},
{
title: "about",
path: "/about/",
},
{
title: "blog",
path: "/posts/",
},
];
1 change: 0 additions & 1 deletion src/utils/remark-reading-time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import getReadingTime from "reading-time";
import { toString } from "mdast-util-to-string";

export function remarkReadingTime() {
// @ts-expect-error:next-line
return function (tree, { data }) {
const textOnPage = toString(tree);
const readingTime = getReadingTime(textOnPage);
Expand Down

0 comments on commit 1d3f8d1

Please sign in to comment.