From ce33d8a8861737678cdcae791d4e1e86e2d8c180 Mon Sep 17 00:00:00 2001 From: horhik Date: Fri, 12 Jun 2020 14:35:10 +0300 Subject: [PATCH] change domain to .xyz --- package.json | 2 +- public/index.html | 25 +------------------------ src/components/elements/about.jsx | 23 +++++++++++++++++++++++ src/constants/link-types.js | 1 + src/constants/routes.js | 3 ++- src/reducers/client-reducer.js | 3 ++- src/reducers/site-content-reducer.js | 9 +++++---- 7 files changed, 35 insertions(+), 31 deletions(-) create mode 100644 src/components/elements/about.jsx diff --git a/package.json b/package.json index d298906..2cfb842 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "horhik.dev", + "name": "horhik.xyz", "version": "0.1.0", "private": true, "dependencies": { diff --git a/public/index.html b/public/index.html index 681a7cb..6e30fc7 100644 --- a/public/index.html +++ b/public/index.html @@ -11,35 +11,12 @@ /> - - - Horhik.dev + Horhik.xyz
- diff --git a/src/components/elements/about.jsx b/src/components/elements/about.jsx new file mode 100644 index 0000000..677aeed --- /dev/null +++ b/src/components/elements/about.jsx @@ -0,0 +1,23 @@ +import React from 'react' +import {connect} from 'react-redux' + +const About = props => { + return ( +
+

+ About me +

+
+
+

Who I am?

+ +
+
+

What I can?

+
+
+
+ ) +} + +export default connect()(About) diff --git a/src/constants/link-types.js b/src/constants/link-types.js index 9c4e580..e750dea 100644 --- a/src/constants/link-types.js +++ b/src/constants/link-types.js @@ -3,3 +3,4 @@ export const GITHUB = "github" export const IPHONE = "iphone" export const ANDROID = "android" export const APP_PAGE = "app-page" +export const DEFAULT_DOMAIN = "horhik.xyz" diff --git a/src/constants/routes.js b/src/constants/routes.js index 6e19e5e..267c1cc 100644 --- a/src/constants/routes.js +++ b/src/constants/routes.js @@ -2,10 +2,11 @@ import BlogPage from "../components/pages/blog"; import PortfolioPage from "../components/pages/portfolio"; import HomePage from "../components/pages/homepage"; +import {DEFAULT_DOMAIN} from '../constants/link-types' const pages = [ { - name: "horhik.dev", + name: DEFAULT_DOMAIN, src: "/", quote: "O. George’s site", page: HomePage, diff --git a/src/reducers/client-reducer.js b/src/reducers/client-reducer.js index 36dbb9a..0718ae3 100644 --- a/src/reducers/client-reducer.js +++ b/src/reducers/client-reducer.js @@ -1,12 +1,13 @@ import { SET_CURRENT_PAGE } from "../constants/routes"; import HomePage from "../components/pages/homepage"; +import {DEFAULT_DOMAIN} from "../constants/link-types" const initialState = { lang: "en", theme: "dark", currentPath: "/", currentPage: HomePage, - currentPageName: "horhik.dev", + currentPageName: DEFAULT_DOMAIN, pageQuote: "O. George’s site", }; diff --git a/src/reducers/site-content-reducer.js b/src/reducers/site-content-reducer.js index 56e64ec..2fa25ef 100644 --- a/src/reducers/site-content-reducer.js +++ b/src/reducers/site-content-reducer.js @@ -1,4 +1,5 @@ -import {APP, APP_PAGE, GITHUB} from "../constants/link-types"; +import {DEFAULT_DOMAIN, APP, APP_PAGE, GITHUB} from "../constants/link-types"; + const initialState = { recentNews: ["nope"], @@ -70,21 +71,21 @@ const initialState = { description: 'Some about OpenSource philosophy and “just for fun” by Linus Torvalds', created: '02.04.2021', readingTime: '8min read', - src: 'https://horhik.dev' + src: `https://${DEFAULT_DOMAIN}` }, { name: 'Haskell on Back-end, how it is?', description: 'This site’s back-end written on haskell, let’s talks about privileges of haskell on backend', created: '11.03.2020', readingTime: '11min read', - src: 'https://horhik.dev' + 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://horhik.dev' + src: `https://${DEFAULT_DOMAIN}` } ] }