personal-site/src/reducers/site-content-reducer.js

119 lines
2.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { DEFAULT_DOMAIN, APP, APP_PAGE, GITHUB } from "../constants/link-types";
const initialState = {
recentNews: [
{
src: '/portfolio',
type: 'github',
content: 'Added "TaSquare" project to portfolio ',
},
{
src: '/portfolio',
type: 'github',
content: 'Added Snake game to portfolio',
},
{
src: '/portfolio',
type: 'github',
content: 'Added "AnkiLan" project to portfolio',
},
],
portfolioItems: [
{
name: "AnkiLan",
description:
"The app created for pushing cards with english words and their definitions to Anki",
gallery: [],
pageLink: "",
links: [
{
name: "GitHub page",
type: GITHUB,
src: "https://github.com/horhik/ankilan",
},
/*{
name: 'App page',
type: APP_PAGE,
src: 'https://github.com'
},
*/
],
},
{
name: "Snake Game",
description: 'Just the "Snake" game with smooth graphics',
gallery: [],
pageLink: "",
links: [
{
name: "GitHub page",
type: GITHUB,
src: "https://github.com/horhik/snake",
},
{
name: "Game page",
type: APP,
src: "https://smoothsnake.netlify.app",
// logo: 'https://raw.githubusercontent.com/Horhik/tasquare/master/src/svg/logo.svg'
},
],
},
{
name: "TaSquare",
description: "TODO app for mobile",
gallery: [],
pageLink: "",
links: [
{
name: "GitHub page",
type: GITHUB,
src: "https://github.com/horhik/tasquare",
},
{
name: "App page",
type: APP,
src: "https://tasquare.netlify.app",
logo:
"https://raw.githubusercontent.com/Horhik/tasquare/master/src/svg/logo.svg",
},
],
},
],
blogPageContent: [
{
name: "The point of life by Linus Torvalds",
description:
"Some about OpenSource philosophy and “just for fun” by Linus Torvalds",
created: "02.04.2021",
readingTime: "8min read",
src: `https://${DEFAULT_DOMAIN}`,
},
{
name: "Haskell on Back-end, how it is?",
description:
"This sites back-end written on haskell, lets talks about privileges of haskell on backend",
created: "11.03.2020",
readingTime: "11min read",
src: `https://${DEFAULT_DOMAIN}`,
},
{
name: "ArchLinux and a lot of tiling window managers",
description:
"Did you try something another than floating windows, like in windows?",
created: "01.09.2020",
readingTime: "4min read",
src: `https://${DEFAULT_DOMAIN}`,
},
],
};
const siteContentReducer = (state = initialState, action) => {
switch (action.type) {
default:
return state;
}
};
export default siteContentReducer;