Skip to content

Commit

Permalink
show external links
Browse files Browse the repository at this point in the history
  • Loading branch information
EndangeredMassa committed Jan 15, 2024
1 parent 5e496f1 commit c467f07
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
15 changes: 15 additions & 0 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ blockquote p:last-child {
margin-bottom: 0;
}

header a[href^="http://"]:after,
header a[href^="https://"]:after,
footer p a[href^="http://"]:after,
footer p a[href^="https://"]:after,
.blog a[href^="http://"]:after,
.blog a[href^="https://"]:after {
content: "";
background: url(/assets/external-link.svg);
background-size: 18px 18px;
background-repeat: no-repeat;
background-position: center center;
margin-left: 0.2em; /* spacing*/
padding-right: 1em; /* sizing */
}

/*
TODO: these h2 styles have to move up to h1 styles because of the markdown rendering
TODO: move the title to not an h1, then move these styles to h1
Expand Down
8 changes: 6 additions & 2 deletions app/templates/application.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ class MyRouteComponent extends Component {

<footer>
<div class="socials">
<IconButton @icon="github" @href="https://github.com/EndangeredMassa" @title="link to github.com for EndangeredMassa" />
<IconButton @icon="mastodon" @href="https://social.massalabs.com/@sean" @title="link to social.massalabs.com (mastodon instance) for @sean" />
<IconButton @icon="github"
@href="https://github.com/EndangeredMassa"
@title="link to github.com for EndangeredMassa" />
<IconButton @icon="mastodon"
@href="https://social.massalabs.com/@sean"
@title="link to social.massalabs.com (mastodon instance) for @sean" />
</div>
<p>
Thanks to <a href="https://kevquirk.com">Kev Quirk</a>
Expand Down
9 changes: 9 additions & 0 deletions app/templates/blog.gjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import RouteTemplate from 'ember-route-template';

export default RouteTemplate(
<template>
<div class="blog">
{{outlet}}
</div>
</template>
);
3 changes: 3 additions & 0 deletions public/assets/external-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/assets/icon-mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c467f07

Please sign in to comment.