Add navigational link
This commit is contained in:
parent
b1d3639794
commit
2746f239d7
4 changed files with 18 additions and 6 deletions
|
|
@ -30,12 +30,9 @@
|
|||
text-align: justify;
|
||||
}
|
||||
|
||||
h1 {
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
p,
|
||||
h1 {
|
||||
a {
|
||||
color: var(--very-light-text-color);
|
||||
margin-top: var(--line-height);
|
||||
}
|
||||
|
|
|
|||
5
src/page/link/link.html.ts
Normal file
5
src/page/link/link.html.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { url } from '../../types/url';
|
||||
import './link.scss';
|
||||
|
||||
export const Link = (title: string, href: url) =>
|
||||
`<a class="link" href="${href}">${title}</a>`;
|
||||
6
src/page/link/link.scss
Normal file
6
src/page/link/link.scss
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@use '../../style/mixins' as *;
|
||||
|
||||
.link {
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid var(--special-text-color);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue