Skip to content

Commit 0fe7cf2

Browse files
committed
Update readme
1 parent 1c5a083 commit 0fe7cf2

File tree

6 files changed

+86
-12
lines changed

6 files changed

+86
-12
lines changed

README.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
1-
# Blog of a programming rabbit
1+
<div align="center">
2+
<h1>Blog of a programming rabbit</h1>
3+
<h3>My personal blog and portfolio website on which I discuss new technologies, libraries and awesome hacks that make the world go round.</h3>
24

3-
https://shiro.github.io/blog/
5+
[![GitHub](https://img.shields.io/badge/GitHub-code-blue?logo=github)](https://github.com/shiro/blog)
6+
[![MIT License](https://img.shields.io/github/license/shiro/blog?color=43A047&logo=linux&logoColor=white)](https://github.com/shiro/blog/blob/master/LICENSE)
7+
[![Build](https://img.shields.io/github/actions/workflow/status/shiro/blog/CI.yml?color=00897B&logo=github-actions&logoColor=white)](https://github.com/shiro/blog/actions/workflows/CI.yml)
8+
[![Donate](https://img.shields.io/badge/Ko--Fi-donate-orange?logo=ko-fi&color=E53935)](https://ko-fi.com/C0C3RTCCI)
49

5-
Still under development, check back soon!
10+
</div>
11+
12+
<div align="center">
13+
<h3>Deployed at <a href="https://usagi.io">usagi.io</a></h3>
14+
</div>
15+
16+
Built with a bleeding edge tech stack that enables quick development combined with amazing developer experience!
17+
18+
- 🪛 **Full stack**, built with [Solid Start](https://start.solidjs.com) + custom plugins/components
19+
- 📦 **Small bundle size** using the [Solid.js](https://www.solidjs.com) framework
20+
- 🖌️ **CSS in JS** with no runtime JS code, using [Linaria](https://linaria.dev)
21+
- 💾 **Statically built**, deployed on [Github pages](https://pages.github.com)
22+
- ❤️ **Open source**, made with love
23+
24+
---
25+
26+
<div align="center">
27+
<b>If you like open source, consider supporting</b>
28+
<br/>
29+
<br/>
30+
<a href='https://ko-fi.com/C0C3RTCCI' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
31+
</div>
32+
33+
## Run it locally
34+
35+
Clone the repository and run:
36+
37+
```bash
38+
yarn install
39+
yarn dev
40+
```
41+
42+
For more, check out the [Solid Start documentation](https://start.solidjs.com).
43+
44+
## Authors
45+
46+
- Matic Utsumi Gačar <[email protected]>

src/Footer.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { JSX, Component } from "solid-js";
2+
import { css } from "@linaria/core";
3+
import cn from "classnames";
4+
import IconText from "~/components/IconText";
5+
6+
interface Props {
7+
children?: JSX.Element;
8+
style?: JSX.CSSProperties;
9+
class?: string;
10+
}
11+
12+
const Footer: Component<Props> = (props) => {
13+
const { children, class: $class, ...rest } = $destructure(props);
14+
15+
return (
16+
<div
17+
class={cn($class, "content-container mt-auto pb-4 pt-4 text-center")}
18+
{...rest}>
19+
Check the code on{" "}
20+
<a href="https://gtithub.com/shiro/blog" target="_blank">
21+
<IconText icon="github" class="pl-1" /> Github
22+
</a>
23+
</div>
24+
);
25+
};
26+
27+
export default Footer;

src/about/AboutSite.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ const AboutSite: Component<Props> = (props) => {
7272
</li>
7373
</ul>
7474
</LabeledBox>
75-
<LabeledBox
76-
label="about me"
77-
// class="flex flex-col justify-stretch"
78-
style={{ "grid-area": "about" }}>
75+
<LabeledBox label="about me" style={{ "grid-area": "about" }}>
7976
<p>I solve engineering problems to improve lives.</p>
8077
<p>
8178
My passion is building full-stack applications that have a lasting

src/app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { config } from "~/config";
77
import Header from "~/Header";
88
import { routes } from "~/routes";
99
import BackgroundImage from "~/BackgroundImage";
10+
import Footer from "~/Footer";
1011

1112
export default function App() {
1213
return (
@@ -24,6 +25,7 @@ export default function App() {
2425
<div class="content-container">
2526
<Suspense>{props.children}</Suspense>
2627
</div>
28+
<Footer />
2729
</MetaProvider>
2830
)}>
2931
{routes}

src/components/IconText.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@ import Icon from "~/components/Icon";
66
interface Props extends ComponentProps<"span"> {
77
// TODO add all sizes
88
size?: "small" | "sub" | "body" | "heading1" | "heading2" | "heading3";
9-
className?: string;
9+
class?: string;
1010
icon?: string;
1111
description?: string;
1212
children?: JSX.Element;
1313
onclick?: () => void;
1414
}
1515

1616
const IconText: Component<Props> = (props) => {
17-
const { className, children, icon, description, ...rest } =
18-
$destructure(props);
17+
const {
18+
class: $class,
19+
children,
20+
icon,
21+
description,
22+
...rest
23+
} = $destructure(props);
1924

2025
return (
21-
<span class={cn(_IconText, className)} {...rest}>
26+
<span class={cn(_IconText, $class)} {...rest}>
2227
{icon ? <Icon icon={icon} description={description} /> : children}
2328
</span>
2429
);

src/entry-server.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export default createHandler(() => {
2626
{import.meta.env.DEV ? preloadSSRDev() : preloadSSR()}
2727
</head>
2828
<body>
29-
<div id="app">{children}</div>
29+
<div id="app" class="flex min-h-[100vh] flex-col">
30+
{children}
31+
</div>
3032
{scripts}
3133
</body>
3234
</html>

0 commit comments

Comments
 (0)