Remove anchor page element
This commit is contained in:
parent
4e8da9e7f4
commit
7b9ae36949
4 changed files with 2 additions and 31 deletions
|
|
@ -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 => `
|
||||
<a class="primitive-anchor"
|
||||
href="${href}"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
>${text}</a>
|
||||
<br/>
|
||||
`;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
.primitive-anchor {
|
||||
margin-top: var(--line-height);
|
||||
}
|
||||
|
|
@ -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 })));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue