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

100 lines
2.5 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 {APP, APP_PAGE, GITHUB} from "../constants/link-types";
const initialState = {
recentNews: ["nope"],
portfolioItems: [
{
name: 'AnkiLan',
description: 'The app created for pushing cards with english words and their definitions to Anki',
gallery: [],
pageLink: '',
links: [
{
name: 'GitHub',
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',
type: GITHUB,
src: 'https://github.com/horhik/snake'
},
{
name: 'Game',
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',
type: GITHUB,
src: 'https://github.com/horhik/tasquare'
},
{
name: 'App',
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://horhik.dev'
},
{
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://horhik.dev'
},
{
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://horhik.dev'
}
]
}
const siteContentReducer = (state = initialState, action) => {
switch (action.type) {
default:
return state;
}
};
export default siteContentReducer;