Skip to content

Commit

Permalink
chore: Release v0.0.1-alpha.4 (#96)
Browse files Browse the repository at this point in the history
* 🐛 fix: header dark mode

Signed-off-by: Zach <[email protected]>

* chore(deps): update dependency nbump to ^2.0.7 (#95)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* 🐛 fix: home dark mode

Signed-off-by: Zach <[email protected]>

* chore(release): release v0.0.1-alpha.4

---------

Signed-off-by: Zach <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
Zach677 and renovate[bot] authored Sep 30, 2024
1 parent 4855f34 commit d3f0bbb
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## [0.0.1-alpha.3](https://github.com/Zach677/TechTrek/compare/v0.0.1-alpha.1...v0.0.1-alpha.3) (2024-09-29)
## [0.0.1-alpha.4](https://github.com/Zach677/TechTrek/compare/v0.0.1-alpha.1...v0.0.1-alpha.4) (2024-09-30)



Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TechTrek",
"version": "0.0.1-alpha.3",
"version": "0.0.1-alpha.4",
"private": false,
"packageManager": "[email protected]",
"description": "My Simple Personal website",
Expand Down Expand Up @@ -61,7 +61,7 @@
"happy-dom": "^15.7.4",
"jsdom": "^25.0.1",
"lint-staged": "^15.2.10",
"nbump": "^2.0.4",
"nbump": "^2.0.7",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/(app)/(home)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export default function HomeLayout({
}: {
children: React.ReactNode
}) {
return <div className="bg-gray-50">{children}</div>
return <div>{children}</div>
}
6 changes: 3 additions & 3 deletions src/app/(app)/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SocialMaps } from './components/SocialMaps'

export default function Home() {
return (
<div className="container mx-auto flex flex-col px-6 py-40">
<div className="container mx-auto px-6 py-20">
<div className="mb-40 flex flex-col items-center space-y-8 md:flex-row md:items-start md:space-x-20 md:space-y-8">
<motion.div
initial={{ opacity: 0, x: -20 }}
Expand All @@ -30,8 +30,8 @@ export default function Home() {
transition={{ duration: 0.5, delay: 0.2 }}
className="grow text-center md:text-left"
>
<h1 className="mb-4 text-4xl font-bold text-gray-800">Zach</h1>
<p className="mb-6 text-xl text-gray-600">
<h1 className="my-3 text-4xl font-medium leading-loose">Zach</h1>
<p className="text-xl leading-loose">
Hi, I'm Zach. I love coding and exploring new technologies. Welcome
to my personal space where I share my thoughts and projects.
</p>
Expand Down
4 changes: 2 additions & 2 deletions src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Root } from '~/components/layout/root/Root'

export const metadata: Metadata = {
title: 'TechTrek',
description: 'Happy Day',
description: 'Happy a good day!',
icons: {
icon: [
{ url: '/favicon.ico' },
Expand All @@ -22,7 +22,7 @@ export default function RootLayout({
return (
<html lang="zh-CN">
<body>
<div data-theme>
<div id="root" data-theme>
<Root>{children}</Root>
</div>
</body>
Expand Down
1 change: 0 additions & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/display-name */
import { NotFound404 } from '~/components/common/404'

// TODO button style optimization
Expand Down
8 changes: 4 additions & 4 deletions src/components/layout/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import Link from 'next/link'

export const Header = () => {
return (
<header className="fixed inset-x-0 top-0 z-50 bg-white bg-opacity-80 backdrop-blur-md">
<header className="fixed inset-x-0 top-0 z-50 backdrop-blur-md">
<nav className="container mx-auto flex items-center justify-between p-4">
<Link href="/" className="text-2xl font-bold text-gray-800">
<Link href="/" className="text-2xl font-bold">
Zach's Home
</Link>
<ul className="flex space-x-6">
<ul className="flex space-x-6 px-4 font-medium">
{['Home', 'Posts', 'Friends'].map((item) => (
<motion.li
key={item}
Expand All @@ -19,7 +19,7 @@ export const Header = () => {
>
<Link
href={item === 'Home' ? '/' : `/${item.toLowerCase()}`}
className="text-gray-600 hover:text-gray-800"
className="text-primary hover:text-secondary"
>
{item}
</Link>
Expand Down
32 changes: 26 additions & 6 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ import type { Config } from 'tailwindcss'

require('./cssAsPlugin')

const UIKitColors = {
// Label
label: {
primary: {
dark: '#FFF',
light: '#000',
},
},

// Background
background: {
primary: {
light: '#fff',
dark: '#1C1C1E',
},
},
}

const config: Config = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: ['class', '[data-theme="dark"]'],
Expand Down Expand Up @@ -45,22 +63,24 @@ const config: Config = {
light: {
'color-scheme': 'light',

primary: '#32ADE6',
primary: '#33A6B8',

secondary: '#AF52DE',
secondary: '#A8D8B9',

'base-100': '#fff',
'base-100': UIKitColors.background.primary.light,
'base-content': UIKitColors.label.primary.light,
},
},
{
dark: {
'color-scheme': 'dark',

primary: '#64D2FF',
primary: '#F596AA',

secondary: '#BF5AF2',
secondary: '#FB966E',

'base-100': '#1C1C1E',
'base-100': UIKitColors.background.primary.dark,
'base-content': UIKitColors.label.primary.dark,
},
},
],
Expand Down

0 comments on commit d3f0bbb

Please sign in to comment.