diff --git a/src/page/basics/anchor/anchor.html.ts b/src/page/basics/anchor/anchor.html.ts deleted file mode 100644 index 1cdca33..0000000 --- a/src/page/basics/anchor/anchor.html.ts +++ /dev/null @@ -1,12 +0,0 @@ -import './anchor.scss'; -import { html } from '../../../types/html'; -import { url } from '../../../types/url'; - -export const generate = ({ href, text }: { href: url; text: string }): html => ` - ${text} -
-`; diff --git a/src/page/basics/anchor/anchor.scss b/src/page/basics/anchor/anchor.scss deleted file mode 100644 index 6d26e85..0000000 --- a/src/page/basics/anchor/anchor.scss +++ /dev/null @@ -1,3 +0,0 @@ -.primitive-anchor { - margin-top: var(--line-height); -} diff --git a/src/page/basics/anchor/anchor.ts b/src/page/basics/anchor/anchor.ts deleted file mode 100644 index 307b056..0000000 --- a/src/page/basics/anchor/anchor.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { PageElement } from '../../page-element'; -import { createElement } from '../../../helper/create-element'; -import { generate } from './anchor.html'; -import { url } from '../../../types/url'; - -export class Anchor extends PageElement { - public constructor(href: url, text: string) { - super(createElement(generate({ href, text }))); - } -} diff --git a/src/portfolio.ts b/src/portfolio.ts index 11c138f..dadf390 100644 --- a/src/portfolio.ts +++ b/src/portfolio.ts @@ -7,7 +7,7 @@ import { PageTimeline } from './page/timeline/timeline'; import { PageImageViewer } from './page/image-viewer/image-viewer'; import { last } from './helper/last'; import { PageBackground } from './page/background/background'; -import { Anchor } from './page/basics/anchor/anchor'; + import { Main } from './page/main/main'; import { ImageAnchorFactory } from './page/basics/image-anchor/image-anchor'; import { Preview } from './page/basics/preview/preview'; @@ -207,16 +207,12 @@ export const create = () => { new Text( `A basic android app for creating and filtering notes written in markdown.` ), - new Anchor( - `https://github.com/schmelczerandras/my-notes`, - `MyNotes on GitHub` - ), new Text( `It was my homework for BME's Android and web development course. It was also my first experience with Android development.` ), ], - links: [], + links: [new GitHub('https://github.com/schmelczerandras/my-notes')], }, { date: `2018 October - November`,