Skip to content

Commit

Permalink
Update component text color, update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Plesnik committed May 16, 2024
1 parent 3079b02 commit 7457d88
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="bg-zinc-900 text-gray-400">
<html lang="en" class="bg-zinc-100 text-zinc-700">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down
4 changes: 2 additions & 2 deletions src/components/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Heading = ({
children,
id = '',
}: PropsWithChildren<TitleProps>) => {
const defaultClasses = 'relative w-full font-medium text-zinc-200' + addWithSpace(className)
const defaultClasses = 'relative w-full font-medium text-zinc-950' + addWithSpace(className)
const anchor = id ? <a id={id} className={'absolute -top-32'} /> : ''
if (size === 1) {
return (
Expand All @@ -32,7 +32,7 @@ const Heading = ({
)
} else {
return (
<h4 className={defaultClasses + ' pb-6 text-sm opacity-50'}>
<h4 className={defaultClasses + ' pb-4 font-serif text-sm italic opacity-50'}>
{children}
{anchor}
</h4>
Expand Down
7 changes: 1 addition & 6 deletions src/components/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ const Tile = ({
subTitle,
}: PropsWithChildren<TileWrapperProps>) => {
return (
<div
className={
'overflow-hidden rounded-lg border border-zinc-600/20 bg-gradient-to-tr from-zinc-800/20 to-zinc-800/40 px-6 pb-4 pt-8 shadow-2xl' +
addWithSpace(className)
}
>
<div className={'' + addWithSpace(className)}>
<Heading size={3}>{title}</Heading>
<Heading size={4}>{subTitle}</Heading>
{children}
Expand Down
12 changes: 6 additions & 6 deletions src/components/__snapshots__/Tile.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

exports[`Tile 1`] = `
<div
className="overflow-hidden rounded-lg border border-zinc-600/20 bg-gradient-to-tr from-zinc-800/20 to-zinc-800/40 px-6 pb-4 pt-8 shadow-2xl"
className=""
>
<h3
className="relative w-full font-medium text-zinc-200 pb-4 text-xl opacity-90"
className="relative w-full font-medium text-zinc-950 pb-4 text-xl opacity-90"
>
Test Title
</h3>
<h4
className="relative w-full font-medium text-zinc-200 pb-6 text-sm opacity-50"
className="relative w-full font-medium text-zinc-950 pb-6 text-sm opacity-50"
>
Test Subtitle
</h4>
Expand All @@ -20,15 +20,15 @@ exports[`Tile 1`] = `

exports[`Tile with class name 1`] = `
<div
className="overflow-hidden rounded-lg border border-zinc-600/20 bg-gradient-to-tr from-zinc-800/20 to-zinc-800/40 px-6 pb-4 pt-8 shadow-2xl test-class"
className=" test-class"
>
<h3
className="relative w-full font-medium text-zinc-200 pb-4 text-xl opacity-90"
className="relative w-full font-medium text-zinc-950 pb-4 text-xl opacity-90"
>
Test Title
</h3>
<h4
className="relative w-full font-medium text-zinc-200 pb-6 text-sm opacity-50"
className="relative w-full font-medium text-zinc-950 pb-6 text-sm opacity-50"
>
Test Subtitle
</h4>
Expand Down
6 changes: 2 additions & 4 deletions src/content/InfoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ const InfoTile = () => {
<div className="flex flex-col items-start gap-4 p-2 sm:flex-row">
<Photo />
<div>
<Heading size={1} className="text-slate-300">
Adam Plesník, design engineer based in Bratislava, Slovakia.
</Heading>
<Heading size={1} className="text-slate-300">
<Heading size={1}>Adam Plesník, design engineer based in Bratislava, Slovakia.</Heading>
<Heading size={1}>
I love creating, polishing and improving user interfaces, with focus on{' '}
<span className="stroke relative whitespace-nowrap">
<ScratchAnim />
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { PropsWithChildren } from 'react'
import PageBackground from '../components/PageBackground'
import Footer from '../content/Footer'

const Page = ({ children }: PropsWithChildren<PageProps>) => {
return (
<div className="flex w-screen justify-center">
<PageBackground />
<div className="relative mb-12 flex w-full max-w-screen-md flex-col gap-8 overflow-hidden p-8 pt-12 md:gap-12">
{children}
<Footer />
Expand Down

0 comments on commit 7457d88

Please sign in to comment.