Skip to content

Commit

Permalink
chore: updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
eser committed Jan 21, 2024
1 parent d25b33b commit 3eb73d0
Show file tree
Hide file tree
Showing 26 changed files with 1,348 additions and 931 deletions.
1,207 changes: 828 additions & 379 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,34 @@
"format": "biome format src --write"
},
"devDependencies": {
"@astrojs/check": "^0.3.4",
"@astrojs/markdoc": "^0.8.2",
"@astrojs/mdx": "^2.0.3",
"@astrojs/check": "^0.4.1",
"@astrojs/markdoc": "^0.8.3",
"@astrojs/mdx": "^2.0.5",
"@astrojs/react": "^3.0.9",
"@astrojs/sitemap": "^3.0.4",
"@astrojs/sitemap": "^3.0.5",
"@astrojs/tailwind": "^5.1.0",
"@biomejs/biome": "1.4.1",
"@biomejs/biome": "1.5.2",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.10.7",
"@types/node": "^20.11.5",
"@types/react-dom": "^18.2.18",
"@types/react": "^18.2.46",
"@types/react": "^18.2.48",
"astro-auto-import": "^0.4.2",
"astro": "^4.0.8",
"autoprefixer": "^10.4.16",
"date-fns-tz": "^2.0.0",
"date-fns": "^2.30.0",
"astro": "^4.2.1",
"autoprefixer": "^10.4.17",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
"marked": "^11.1.1",
"postcss": "^8.4.32",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
"react-icons": "^5.0.1",
"react-lite-youtube-embed": "^2.4.0",
"react": "^18.2.0",
"remark-collapse": "^0.1.2",
"remark-toc": "^9.0.0",
"sass": "^1.69.6",
"sharp": "^0.33.1",
"sass": "^1.70.0",
"sharp": "^0.33.2",
"swiper": "^11.0.5",
"tailwind-bootstrap-grid": "^5.1.0",
"tailwindcss": "^3.4.1",
Expand Down
64 changes: 32 additions & 32 deletions src/config/config.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"site": {
"title": "Açık Kaynak İnisiyatifi",
"base_url": "https://acik.io",
"base_path": "/",
"trailing_slash": false,
"favicon": "/images/favicon.png",
"logo": "/images/logo.png",
"logo_darkmode": "/images/logo-darkmode.png",
"logo_width": "200",
"logo_height": "40",
"logo_text": "açık kaynaklı"
},
"site": {
"title": "Açık Kaynak İnisiyatifi",
"base_url": "https://acik.io",
"base_path": "/",
"trailing_slash": false,
"favicon": "/images/favicon.png",
"logo": "/images/logo.png",
"logo_darkmode": "/images/logo-darkmode.png",
"logo_width": "200",
"logo_height": "40",
"logo_text": "açık kaynaklı"
},

"settings": {
"sticky_header": true,
"theme_switcher": true,
"default_theme": "system",
"pagination": 2,
"summary_length": 200
},
"settings": {
"sticky_header": true,
"theme_switcher": true,
"default_theme": "system",
"pagination": 2,
"summary_length": 200
},

"params": {
"copyright": "© 2024 [Açık Kaynak İnisiyatifi](https://acik.io)"
},
"params": {
"copyright": "© 2024 [Açık Kaynak İnisiyatifi](https://acik.io)"
},

"navigation_button": {
"enable": false,
"label": "GitHub",
"link": "https://github.com/acikkaynak"
},
"navigation_button": {
"enable": false,
"label": "GitHub",
"link": "https://github.com/acikkaynak"
},

"metadata": {
"meta_author": "acik.io",
"meta_image": "/images/logo.png",
"meta_description": "Açık Kaynak İnisiyatifi"
}
"metadata": {
"meta_author": "acik.io",
"meta_image": "/images/logo.png",
"meta_description": "Açık Kaynak İnisiyatifi"
}
}
6 changes: 2 additions & 4 deletions src/config/menu.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"main": [
],
"footer": [
]
"main": [],
"footer": []
}
24 changes: 7 additions & 17 deletions src/config/social.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
{
"main": [
{
"name": "telegram",
"icon": "FaTelegram",
"link": "https://t.me/acikkaynak"
},
{
"name": "github",
"icon": "FaGithub",
"link": "https://github.com/acikkaynak"
},
{
"name": "twitter",
"icon": "FaTwitter",
"link": "https://twitter.com/acik_io"
}
]
"main": [
{
"name": "github",
"icon": "FaGithub",
"link": "https://github.com/acikkaynak"
}
]
}
84 changes: 42 additions & 42 deletions src/config/theme.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"colors": {
"default": {
"theme_color": {
"primary": "#152A35",
"body": "#fff",
"border": "#eaeaea",
"theme_light": "#fafafa",
"theme_dark": ""
},
"text_color": {
"default": "#464646",
"dark": "#353535",
"light": "#717171"
}
},
"darkmode": {
"theme_color": {
"primary": "#fff",
"body": "#181c2c",
"border": "#3E3E3E",
"theme_light": "#141828",
"theme_dark": ""
},
"text_color": {
"default": "#B4AFB6",
"dark": "#fff",
"light": "#B4AFB6"
}
}
},
"fonts": {
"font_family": {
"primary": "Heebo:wght@400;600",
"primary_type": "sans-serif",
"secondary": "Signika:wght@500;700",
"secondary_type": "sans-serif"
},
"font_size": {
"base": "18",
"scale": "1.250"
}
}
"colors": {
"default": {
"theme_color": {
"primary": "#152A35",
"body": "#fff",
"border": "#eaeaea",
"theme_light": "#fafafa",
"theme_dark": ""
},
"text_color": {
"default": "#464646",
"dark": "#353535",
"light": "#717171"
}
},
"darkmode": {
"theme_color": {
"primary": "#fff",
"body": "#181c2c",
"border": "#3E3E3E",
"theme_light": "#141828",
"theme_dark": ""
},
"text_color": {
"default": "#B4AFB6",
"dark": "#fff",
"light": "#B4AFB6"
}
}
},
"fonts": {
"font_family": {
"primary": "Heebo:wght@400;600",
"primary_type": "sans-serif",
"secondary": "Signika:wght@500;700",
"secondary_type": "sans-serif"
},
"font_size": {
"base": "18",
"scale": "1.250"
}
}
}
16 changes: 8 additions & 8 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import { defineCollection, z } from "astro:content";

// Pages collection schema
const pagesCollection = defineCollection({
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
description: z.string().optional(),
image: z.string().optional(),
draft: z.boolean().optional(),
}),
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
description: z.string().optional(),
image: z.string().optional(),
draft: z.boolean().optional(),
}),
});

// Export collections
export const collections = {
pages: pagesCollection,
pages: pagesCollection,
};
2 changes: 1 addition & 1 deletion src/content/homepage/-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ features:
- Türkiye Açık Kaynak Platformu'na destek verdik
- Topluluklar, üniversiteler, kamu kurumları ve şirketler ile bir araya geldik
- Gönüllü Yazılım Vakfı modeli oluşturduk
- <u><a href="https://acikyazilimagi.com/" target="_blank">Açık Yazılım Ağı</a></u>'nın temellerini attık
- <u><a href="https://acikyazilimagi.com/" target="_blank">Açık Yazılım Ağı (AYA)</a></u> ve <u><a href="https://yazilimciagi.com/" target="_blank">Yazılımcı Ağı</a></u>'nın temellerini attık
button:
enable: false
label: "Get Started Now"
Expand Down
18 changes: 3 additions & 15 deletions src/content/sections/call-to-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,11 @@ enable: true
title: "🤔 Ne oluyor? Sonraki adım ne?"
image: "/images/call-to-action.png"
description: |
Burası kapandı, ancak bu bir son değil... bilakis devamlılık... Çünkü burada
oluşan inisiyatif olgunlaşıp
<u><a href="https://acikyazilimagi.com" target="_blank">Açık Yazılım Ağı (AYA)</a></u>'nın
temellerini attı.<br />
Burası kapandı, ancak bu bir son değil... bilakis devamlılık... Çünkü Eser Özvataf olarak bu adres altında tek başıma başlattığım inisiyatif, zamanla olgunlaşıp topluluk haline gelip <u><a href="https://acikyazilimagi.com" target="_blank">Açık Yazılım Ağı (AYA)</a></u> ve <u><a href="https://yazilimciagi.com" target="_blank">Yazılımcı Ağı</a></u>'nın temellerini attı.<br />
<br />
2015'den bu yana içerik tüketim alışkanlıklarının ve topluluğun değişkenliğini göz önünde bulundurduğumuzda misyonumuzu tamamladık.<br />
Toplulukla birlikte çalışmalarımız bundan sonra <u><a href="https://yazilimciagi.com" target="_blank">Yazılımcı Ağı</a></u> çatısı altında yerel organizasyonlar, mecralar ve projeler aracılığı ile sürecek.<br />
<br />
Ancak AYA'nın da katkılara ihtiyacı olduğu, halen içerik üreten birilerine gereksinim
duyulduğu aşikar. Bu nedenle bireysel olarak inisiyatif alıp paradigmaya uyarak bireysel
içerik üretme çabalarımı yeni medya maceralarına doğru kaydıracağım.<br />
<br />
<u><a href="https://eser.live">eser.live ve yazılımcı ağı</a></u> kanalı üzerinde
toplulukla birlikte proje yapmaya, içerik üretmeye ve topluluğa hizmet etmeye
devam edeceğim. Sizleri de bekleriz.<br />
<p align="right">
— Eser Özvataf
</p>
Eser Özvataf olarak da, kendi içerik üretme çabalarımı <u><a href="https://eser.live">eser.live ve yazılımcı ağı</a></u> kanalı üzerine taşıyarak toplulukla birlikte proje yapmaya, içerik üretmeye ve topluluğa hizmet etmeye devam edeceğim. Sizleri de bekleriz.
button:
enable: true
label: "eser.live ve yazılımcı ağı'na bir gözat"
Expand Down
14 changes: 7 additions & 7 deletions src/hooks/use-theme.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { useEffect, useState } from "react";

const useTheme = (): string => {
const [themeValue, setThemeValue] = useState("");
const [themeValue, setThemeValue] = useState("");

useEffect(() => {
setThemeValue(
document.documentElement.classList.contains("dark") ? "dark" : "light",
);
}, []);
useEffect(() => {
setThemeValue(
document.documentElement.classList.contains("dark") ? "dark" : "light",
);
}, []);

return themeValue;
return themeValue;
};

export default useTheme;
38 changes: 19 additions & 19 deletions src/layouts/helpers/dynamic-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
import React, { type FC } from "react";
import type { IconType } from "react-icons";
import * as FaIcons from "react-icons/fa6/index.js";
// import * as AiIcons from "react-icons/ai/index.js";
// import * as BsIcons from "react-icons/bs/index.js";
// import * as FiIcons from "react-icons/fi/index.js";
// import * as Io5Icons from "react-icons/io5/index.js";
// import * as RiIcons from "react-icons/ri/index.js";
// import * as TbIcons from "react-icons/tb/index.js";
// import * as TfiIcons from "react-icons/tfi/index.js";
import * as FaIcons from "react-icons/fa6";
// import * as AiIcons from "react-icons/ai";
// import * as BsIcons from "react-icons/bs";
// import * as FiIcons from "react-icons/fi";
// import * as Io5Icons from "react-icons/io5";
// import * as RiIcons from "react-icons/ri";
// import * as TbIcons from "react-icons/tb";
// import * as TfiIcons from "react-icons/tfi";

type IconMap = Record<string, IconType>;

interface IDynamicIcon extends React.SVGProps<SVGSVGElement> {
icon: string;
className?: string;
icon: string;
className?: string;
}

const iconLibraries: { [key: string]: IconMap } = {
fa: FaIcons,
fa: FaIcons,
};

const DynamicIcon: FC<IDynamicIcon> = ({ icon, ...props }) => {
const IconLibrary = getIconLibrary(icon);
const Icon = IconLibrary ? IconLibrary[icon] : undefined;
const IconLibrary = getIconLibrary(icon);
const Icon = IconLibrary ? IconLibrary[icon] : undefined;

if (!Icon) {
return <span className="text-sm">Icon not found</span>;
}
if (!Icon) {
return <span className="text-sm">Icon not found</span>;
}

return <Icon {...props} />;
return <Icon {...props} />;
};

const getIconLibrary = (icon: string): IconMap | undefined => {
const libraryKey = icon.substring(0, 2).toLowerCase();
const libraryKey = icon.substring(0, 2).toLowerCase();

return iconLibraries[libraryKey];
return iconLibraries[libraryKey];
};

export default DynamicIcon;
Loading

0 comments on commit 3eb73d0

Please # to comment.