Compare commits
No commits in common. "91d7c965a77119281722c7c1257b8c587b68cc06" and "dbf853be9e1495af6ab68ce1687f12e74b343e21" have entirely different histories.
91d7c965a7
...
dbf853be9e
10 changed files with 194 additions and 271 deletions
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
title: "Amateur radio licence"
|
|
||||||
slug: /amateur-radio-licence/
|
|
||||||
date: 2026-03-12
|
|
||||||
tags: ["radio"]
|
|
||||||
---
|
|
||||||
|
|
||||||
In February I finally bit the bullet and booked the exam for the UK Amateur
|
|
||||||
Radio Licence (Foundation Level).
|
|
||||||
|
|
||||||
My natural learning style is both meandering and thorough. I like to work at my
|
|
||||||
own pace and pursue rabbit holes and tangents. I dislike exams and any aspect of
|
|
||||||
competition injected into the learning process. At school my grades were always
|
|
||||||
lower than my actual knowledge level because I never studied for the test, I
|
|
||||||
pursued what was interesting to me to depths not required by the exams.
|
|
||||||
|
|
||||||
I think all people who love learning for its own sake are like this but I did
|
|
||||||
actually _need_ the licence in order to be able to transmit and start gaining
|
|
||||||
practical knowledge. Having the test booked for the end of the month helped me
|
|
||||||
concentrate and stay on target.
|
|
||||||
|
|
@ -2,14 +2,8 @@ import MetricBar from "./MetricBar"
|
||||||
|
|
||||||
const LanguagesChart = ({ chartData, error }) => {
|
const LanguagesChart = ({ chartData, error }) => {
|
||||||
return (
|
return (
|
||||||
<div style={{ marginTop: "1rem" }}>
|
<div style={{marginTop:'1rem'}}>
|
||||||
<div
|
<div className="code-stat-label" style={{marginBottom: '.5rem'}}>
|
||||||
className="code-stat-label"
|
|
||||||
style={{
|
|
||||||
paddingBottom: ".5rem",
|
|
||||||
marginBottom: ".5rem",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Programming languages
|
Programming languages
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -24,7 +18,7 @@ const LanguagesChart = ({ chartData, error }) => {
|
||||||
metric={x.language}
|
metric={x.language}
|
||||||
hours={x.hours}
|
hours={x.hours}
|
||||||
percentage={x.percentage}
|
percentage={x.percentage}
|
||||||
color="black"
|
color="dodgerblue"
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
const MetricBar = ({ metric, hours, percentage, color }) => (
|
const MetricBar = ({ metric, hours, percentage, color }) => (
|
||||||
<div style={{ marginBottom: "12px" }}>
|
<div style={{ marginBottom: "12px", margin: '.5rem' }}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,8 @@ import MetricBar from "./MetricBar"
|
||||||
|
|
||||||
const ProjectsChart = ({ chartData, error }) => {
|
const ProjectsChart = ({ chartData, error }) => {
|
||||||
return (
|
return (
|
||||||
<div style={{ marginTop: "1rem" }}>
|
<div style={{marginTop: '1rem'}}>
|
||||||
<div
|
<div className="code-stat-label">Repos</div>
|
||||||
className="code-stat-label"
|
|
||||||
style={{
|
|
||||||
paddingBottom: ".5rem",
|
|
||||||
marginBottom: ".5rem",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Repos
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{error ? (
|
{error ? (
|
||||||
<div>Data could not be found!</div>
|
<div>Data could not be found!</div>
|
||||||
|
|
@ -24,7 +16,7 @@ const ProjectsChart = ({ chartData, error }) => {
|
||||||
metric={x.project}
|
metric={x.project}
|
||||||
hours={x.hours}
|
hours={x.hours}
|
||||||
percentage={x.percentage}
|
percentage={x.percentage}
|
||||||
color="black"
|
color="dodgerblue"
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { useQuery } from "@tanstack/react-query"
|
import { useQuery } from "@tanstack/react-query"
|
||||||
|
|
||||||
import wakapiApi from "../api/wakapi-api"
|
import wakapiApi from "../api/wakapi-api"
|
||||||
import { convertDateFriendly } from "../utils/convertDate"
|
import { convertDateFriendly } from "../utils/convertDate"
|
||||||
import Scorecard from "../components/Scorecard"
|
import Scorecard from "../components/Scorecard"
|
||||||
|
|
@ -33,9 +32,7 @@ const CodeStats = () => {
|
||||||
data &&
|
data &&
|
||||||
data?.projects.filter(
|
data?.projects.filter(
|
||||||
(project) =>
|
(project) =>
|
||||||
!project.key.includes("gp-") &&
|
!project.key.includes("gp-") && !project.key.includes("unknown") && !project.key.includes("amber")
|
||||||
!project.key.includes("unknown") &&
|
|
||||||
!project.key.includes("amber")
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const personalProjectsSorted =
|
const personalProjectsSorted =
|
||||||
|
|
@ -70,52 +67,43 @@ const CodeStats = () => {
|
||||||
.slice(0, 4)
|
.slice(0, 4)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="code-stats-sect">
|
<div className="">
|
||||||
<div className="">
|
<div className="">
|
||||||
<section className="">
|
<section className="">
|
||||||
<div className="">
|
<div className="">
|
||||||
<h2 className="big-title">{`Code this month`}</h2>
|
<h2 className="">
|
||||||
|
{`Code stats`}
|
||||||
{/*
|
</h2>
|
||||||
<table
|
<div className="code-stat-grid">
|
||||||
border="1"
|
<span className="code-stat-label" style={{marginRight: '2rem'}}>Period:</span>
|
||||||
width="100%"
|
<span className="code-stat-metric">{convertDateFriendly(data?.from)} -{" "}
|
||||||
style={{ borderCollapse: "collapse" }}
|
{convertDateFriendly(data?.to)}</span>
|
||||||
>
|
|
||||||
<tr>
|
|
||||||
<td style={{ paddingLeft: "4px" }}>Period:</td>
|
|
||||||
<td style={{ paddingLeft: "4px" }}>
|
|
||||||
{convertDateFriendly(data?.from)} -{" "}
|
|
||||||
{convertDateFriendly(data?.to)}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style={{ paddingLeft: "4px" }}>Total time:</td>
|
|
||||||
<td style={{ paddingLeft: "4px" }}>
|
|
||||||
{error
|
|
||||||
? "Error"
|
|
||||||
: isLoading
|
|
||||||
? "Loading..."
|
|
||||||
: grandTotalFormatted}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style={{ paddingLeft: "4px" }}>Main project:</td>
|
|
||||||
<td style={{ paddingLeft: "4px" }}>
|
|
||||||
{error ? "Error" : isLoading ? "Loading..." : mainProject}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
*/}
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="">
|
||||||
|
<Scorecard
|
||||||
|
title="Total time:"
|
||||||
|
metric={
|
||||||
|
error ? "Error" : isLoading ? "Loading..." : grandTotalFormatted
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Scorecard
|
||||||
|
title="Main project"
|
||||||
|
metric={error ? "Error" : isLoading ? "Loading..." : mainProject}
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
<LanguagesChart chartData={languagesChartData} error={error} />
|
<LanguagesChart chartData={languagesChartData} error={error} />
|
||||||
|
|
||||||
<ProjectsChart chartData={projectsChartData} error={error} />
|
<ProjectsChart chartData={projectsChartData} error={error} />
|
||||||
<div className="code-stats-disclaimer">
|
<div className="code-stats-disclaimer">
|
||||||
Data sourced from my self-hosted{" "}
|
Data sourced from my self-hosted{" "}
|
||||||
<a href="https://wakapi.dev/" target="__blank" className="">
|
<a
|
||||||
|
href="https://wakapi.dev/"
|
||||||
|
target="__blank"
|
||||||
|
className=""
|
||||||
|
>
|
||||||
Wakapi
|
Wakapi
|
||||||
</a>{" "}
|
</a>{" "}
|
||||||
instance.
|
instance.
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,21 @@ const PostListing = ({ posts, title, showAllButton }) => {
|
||||||
<div className="">
|
<div className="">
|
||||||
<div className="">
|
<div className="">
|
||||||
<section className="">
|
<section className="">
|
||||||
<h2 className="big-title">{`${title}`}</h2>
|
<h2 className="">
|
||||||
|
{`${title}`}
|
||||||
|
</h2>
|
||||||
{posts.map((post) => (
|
{posts.map((post) => (
|
||||||
<ul className="no-bullets">
|
<ul className="no-bullets">
|
||||||
<li className="">
|
<li className="">
|
||||||
<div className="post-listing-item">
|
<div className="post-listing-item">
|
||||||
<span style={{ marginRight: "1rem" }}>
|
<span style={{ marginRight: '1rem' }}>
|
||||||
{convertDate(post.date)}
|
{convertDate(post.date)}
|
||||||
</span>
|
</span>
|
||||||
<Link to={`/posts/${post.slug}`} key={post.slug} className="">
|
<Link
|
||||||
|
to={`/posts/${post.slug}`}
|
||||||
|
key={post.slug}
|
||||||
|
className=""
|
||||||
|
>
|
||||||
{post.title}
|
{post.title}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,35 +15,20 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-link {
|
|
||||||
letter-spacing: 0 !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-listing-item {
|
.post-listing-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
h1.site-title {
|
||||||
font-family:
|
font-weight: 800;
|
||||||
system-ui,
|
|
||||||
-apple-system,
|
|
||||||
BlinkMacSystemFont,
|
|
||||||
"Segoe UI",
|
|
||||||
Roboto,
|
|
||||||
Oxygen,
|
|
||||||
Ubuntu,
|
|
||||||
Cantarell,
|
|
||||||
"Open Sans",
|
|
||||||
"Helvetica Neue",
|
|
||||||
sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-links {
|
.header-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
gap: 1rem;
|
gap: 0.5rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -86,10 +71,6 @@ figure img {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-stats-sect {
|
|
||||||
font-family: sans-serif !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.code-stat-grid {
|
.code-stat-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
@ -98,8 +79,8 @@ figure img {
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-stat-label {
|
.code-stat-label {
|
||||||
font-weight: bold;
|
font-weight: 500;
|
||||||
font-family: sans-serif;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-stats-disclaimer {
|
.code-stats-disclaimer {
|
||||||
|
|
@ -111,18 +92,3 @@ figure img {
|
||||||
.about-li-padding {
|
.about-li-padding {
|
||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1.site-title,
|
|
||||||
h1.post-title {
|
|
||||||
margin-bottom: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.big-title {
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
border-bottom: 1px solid black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.blog-meta {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -10,17 +10,20 @@ const HomePage = () => {
|
||||||
const { posts } = usePosts()
|
const { posts } = usePosts()
|
||||||
return (
|
return (
|
||||||
<MainTemplate>
|
<MainTemplate>
|
||||||
<p>
|
<p>A wizard who goes to bed early. This is <Link to="/about">my</Link> technical scrapbook
|
||||||
A wizard who goes to bed early. This is <Link to="/about">my</Link>{" "}
|
and digital garden.
|
||||||
technical scrapbook and digital garden.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<PostListing title="Recent posts" posts={posts.slice(0, 5)} />
|
<PostListing title="Recent posts" posts={posts.slice(0, 5)} />
|
||||||
|
|
||||||
<PostListing
|
<PostListing
|
||||||
title="Highlights"
|
title="Highlights"
|
||||||
posts={posts.filter((post) => post.tags.includes("highlight"))}
|
posts={posts.filter((post) => post.tags.includes("highlight"))}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
<CodeStats />
|
||||||
</MainTemplate>
|
</MainTemplate>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,19 +17,11 @@ const BlogTemplate = () => {
|
||||||
<div>Loading...</div>
|
<div>Loading...</div>
|
||||||
) : (
|
) : (
|
||||||
<article className="">
|
<article className="">
|
||||||
<header
|
<header className="">
|
||||||
className="big-title"
|
<h1 className="">
|
||||||
style={{ paddingBottom: "1rem", marginBottom: "2rem" }}
|
{post?.title}
|
||||||
>
|
</h1>
|
||||||
<h1 className="post-title">{post?.title}</h1>
|
<div className="">
|
||||||
<div
|
|
||||||
className="blog-meta"
|
|
||||||
style={{
|
|
||||||
display: "flex",
|
|
||||||
flexDirection: "row",
|
|
||||||
gap: "1rem",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<time datetime={convertDate(post?.date)} className="text-sm">
|
<time datetime={convertDate(post?.date)} className="text-sm">
|
||||||
{convertDateFriendly(post?.date)}
|
{convertDateFriendly(post?.date)}
|
||||||
</time>
|
</time>
|
||||||
|
|
@ -37,7 +29,7 @@ const BlogTemplate = () => {
|
||||||
<span>Tag(s): </span>
|
<span>Tag(s): </span>
|
||||||
{post?.tags?.map((tag, i) => (
|
{post?.tags?.map((tag, i) => (
|
||||||
<Link
|
<Link
|
||||||
style={{ marginRight: "0.5rem" }}
|
style={{ marginRight: '0.5rem' }}
|
||||||
key={i}
|
key={i}
|
||||||
to={`/tags/${tag}`}
|
to={`/tags/${tag}`}
|
||||||
>
|
>
|
||||||
|
|
@ -48,7 +40,9 @@ const BlogTemplate = () => {
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div dangerouslySetInnerHTML={{ __html: post?.html }} />
|
<div
|
||||||
|
dangerouslySetInnerHTML={{ __html: post?.html }}
|
||||||
|
/>
|
||||||
</article>
|
</article>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ const Header = () => {
|
||||||
<header>
|
<header>
|
||||||
<nav className="">
|
<nav className="">
|
||||||
<h1 className="site-title">
|
<h1 className="site-title">
|
||||||
<Link className="title-link plain-link" to="/">
|
<Link
|
||||||
Systems Obscure
|
className="plain-link"
|
||||||
</Link>
|
to="/">Systems Obscure</Link>
|
||||||
</h1>
|
</h1>
|
||||||
<ul className="header-links">
|
<ul className="header-links">
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -27,9 +27,10 @@ const Header = () => {
|
||||||
href="https://forgejo.systemsobscure.net/thomasabishop"
|
href="https://forgejo.systemsobscure.net/thomasabishop"
|
||||||
target="blank"
|
target="blank"
|
||||||
>
|
>
|
||||||
Code
|
Forgejo (ext.)
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -69,4 +70,3 @@ const MainTemplate = ({ children }) => {
|
||||||
export default MainTemplate
|
export default MainTemplate
|
||||||
//antialiased max-w-3xl mt-3 mx-auto bg-[#282828] no-scanlines wrapper
|
//antialiased max-w-3xl mt-3 mx-auto bg-[#282828] no-scanlines wrapper
|
||||||
//main: flex-auto min-w-0 mt-0 flex flex-col px-2 md:px-0
|
//main: flex-auto min-w-0 mt-0 flex flex-col px-2 md:px-0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue