Skip to content

Commit 2405f72

Browse files
committed
fix: update styles and improve layout components
1 parent b8c2346 commit 2405f72

9 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/components/DesktopDestroyer.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ const tools = [
5858

5959
const start = () => {
6060
window.addEventListener("click", onWindowClick, { capture: true });
61-
container.style.transform = "none";
61+
container.style.translate = "none";
6262
isOn = true;
6363
};
6464

6565
const stop = () => {
6666
window.removeEventListener("click", onWindowClick, { capture: true });
67-
container.style.transform = "";
67+
container.style.translate = "";
6868
activeTool = null;
6969
document.body.style.cursor = "";
7070
isOn = false;

src/components/GIthubContributions.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1 class="p-2">Github Activity</h1>
33
<div
44
id="github-contributions"
5-
class="flex flex-col flex-wrap gap-0.5 h-[7.75rem] overflow-auto [scrollbar-width:thin] [scrollbar-gutter:stable]"
5+
class="flex flex-col flex-wrap gap-0.5 h-31 overflow-auto [scrollbar-width:thin] [scrollbar-gutter:stable]"
66
>
77
</div>
88
</div>

src/components/Section.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const { id, title, colors } = Astro.props;
99
---
1010

1111
<section id={id} class="sm:px-4">
12-
<div class="mt-36 md:mt-0 sm:min-h-[100dvh] mx-auto flex flex-col">
12+
<div class="mt-36 md:mt-0 sm:min-h-dvh mx-auto flex flex-col">
1313
<h1
14-
class={`gap-2 flex items-end text-3xl py-8 font-extrabold text-transparent bg-clip-text bg-gradient-to-r ${colors}`}
14+
class={`gap-2 flex items-end text-3xl py-8 font-extrabold text-transparent bg-clip-text bg-linear-to-r ${colors}`}
1515
>
1616
{title}
1717
<slot name="after-title" />

src/components/Timeline.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
const entries = [
33
{
44
date: "2022 - Now",
5-
title: "Full Stack Engineer",
6-
name: "FinOut",
5+
title: "Senior Full Stack Engineer",
6+
name: "Finout",
77
url: "https://www.finout.io/",
88
description:
99
"Building a cloud cost optimization app for multiple cloud providers using JavaScript, Node.js, React, Vite, Tailwind, and Headless UI.",

src/layouts/BlogLayout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { ClientRouter } from "astro:transitions";
44
import { Icon } from "astro-icon/components";
55
import { formatDate } from "../utils/date";
66
7+
import "../styles/global.css";
8+
79
type Props = MarkdownLayoutProps<{
810
title: string;
911
description: string;

src/layouts/Layout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
import { ClientRouter } from "astro:transitions";
33
4+
import "../styles/global.css";
5+
46
interface Props {
57
title: string;
68
}

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const posts = Object.values(postsGlob).map(
5656
<h1
5757
class="text-[clamp(2rem,7vw,3rem)] leading-tight font-medium tracking-tight motion-preset-slide-up motion-preset-fade-lg"
5858
>
59-
Hi, I'm Yonatan. <br /> A Full Stack Engineer.
59+
Hi, I'm Yonatan.
6060
</h1>
6161
<h2
6262
class="text-xl font-light text-pretty leading-relaxed text-neutral-300 max-sm:text-sm motion-preset-slide-up motion-preset-fade-lg motion-delay-300"

src/styles/global.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
@import "tailwindcss";
1+
@import "tailwindcss";
2+
@plugin "@tailwindcss/typography";

tailwind.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
theme: {
55
extend: {},
66
},
7-
plugins: [require("@tailwindcss/typography"), require('tailwindcss-motion')],
7+
plugins: [require('tailwindcss-motion')],
88
}

0 commit comments

Comments
 (0)