-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { JSX, Component } from "solid-js"; | ||
import { css } from "@linaria/core"; | ||
import cn from "classnames"; | ||
|
||
interface Props { | ||
children?: JSX.Element; | ||
style?: JSX.CSSProperties; | ||
class?: string; | ||
} | ||
|
||
const AspectBox: Component<Props> = (props) => { | ||
const { children, class: $class, ...rest } = $destructure(props); | ||
|
||
return ( | ||
<div class={cn(_AspectBox, $class, "relative h-0 pt-[100%]")} {...rest}> | ||
<div class="absolute left-0 top-0 h-full w-full">{children}</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const _AspectBox = css``; | ||
|
||
export default AspectBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# Staring a blog! | ||
|
||
Since everyone and their dog likes to post about cool new tech on their blog, I decided to try it out. | ||
Since everyone and their dog likes to post about cool new tech on their blog I decided to try it out. | ||
|
||
I'll mostly write about frameworks, libraries and how to make lots of moving parts work together. | ||
For starts I'm planning to do some articles about building static sites like this blog, using | ||
[Solid.js](https://www.solidjs.com/s) - an amazing framework that will be more popular than React someday (maybe). | ||
|
||
|
||
<Embed | ||
url="https://github.com/shiro/blog" | ||
name="blog" | ||
description="My personal blog website" | ||
/> | ||
|
||
All code is available [gitHub](https://github.com/shiro/blog), feel free to check it out. | ||
|
||
Some other topics I intend to cover: | ||
- Solid Start development progress | ||
- Rust, wasm and wgpu | ||
- Keyboard input remapping and macros | ||
- NixOS guides, tips and tricks | ||
- System automation and backups | ||
- Photography on Linux | ||
|
||
And lots of other topics that are worth discussing! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters