Skip to content

Commit

Permalink
Add GPGKey to social icons and config- Add GPGKey to social icons and…
Browse files Browse the repository at this point in the history
… config
  • Loading branch information
davidawad committed Mar 9, 2024
1 parent df23154 commit 345ae03
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "astro-paper",
"name": "david_awad_personal_site",
"version": "2.3.0",
"private": false,
"engines": {
"node": ">=20.11.1"
},
"scripts": {
"dev": "astro check --watch & astro dev",
"start": "astro dev",
Expand Down
13 changes: 13 additions & 0 deletions src/assets/socialIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ const socialIcons: SocialIcons = {
<circle cx="12" cy="12" r="3"></circle>
<line x1="16.5" y1="7.5" x2="16.5" y2="7.501"></line>
</svg>`,
GPGKey: `<svg
xmlns="http://www.w3.org/2000/svg"
class="icon-tabler"
stroke-linecap="round"
stroke-linejoin="round"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" data-darkreader-inline-stroke="" style="--darkreader-inline-stroke: none;"></path>
<path d="M14 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path>
<path d="M21 12a9 9 0 1 1 -18 0a9 9 0 0 1 18 0z"></path>
<path d="M12.5 11.5l-4 4l1.5 1.5"></path>
<path d="M12 15l-1.5 -1.5"></path>
</svg>`,
LinkedIn: `<svg
xmlns="http://www.w3.org/2000/svg"
class="icon-tabler"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Schema.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { SITE, SOCIALS } from "@config";
import { SITE } from "@config";
export interface Props {
Expand Down
6 changes: 6 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export const SOCIALS: SocialObjects = [
linkTitle: `${SITE.title} on LinkedIn`,
active: true,
},
{
name: "GPGKey",
href: "/davidawad.asc",
linkTitle: "You can send me encrypted email using my GPG public key. 3CA3 136C BC47 2001 2165 E3CF 810F 8986 DCEF 23B7",
active: true,
},
{
name: "Mail",
href: "mailto:me@davidaw.ad",
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,3 @@ const socialCount = SOCIALS.filter(social => social.active).length;

<Footer />
</Layout>

1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type SocialMedia =
| "Github"
| "Facebook"
| "Instagram"
| "GPGKey"
| "LinkedIn"
| "Mail"
| "Twitter"
Expand Down

0 comments on commit 345ae03

Please sign in to comment.