-
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.
Merge pull request #3 from adamplesnik/feature/tune-footer
Feature/tune footer
- Loading branch information
Showing
10 changed files
with
178 additions
and
16 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,5 @@ | ||
user-agent: * | ||
allow: * | ||
|
||
user-agent: * | ||
disallow: /blog |
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,17 @@ | ||
import { toJson } from '@/utils/toJson' | ||
import { Cog } from 'lucide-react' | ||
import renderer from 'react-test-renderer' | ||
import { expect, test } from 'vitest' | ||
import Icon from './Icon' | ||
|
||
test('Icon', () => { | ||
const component = renderer.create(<Icon Icon={Cog} />) | ||
const tree = toJson(component) | ||
expect(tree).toMatchSnapshot() | ||
}) | ||
|
||
test('Icon with class name', () => { | ||
const component = renderer.create(<Icon Icon={Cog} className="test" />) | ||
const tree = toJson(component) | ||
expect(tree).toMatchSnapshot() | ||
}) |
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,8 @@ | ||
import clsx from 'clsx' | ||
import { LucideIcon } from 'lucide-react' | ||
|
||
const Icon = ({ Icon, className }: { Icon: LucideIcon; className?: string }) => { | ||
return <Icon className={clsx('size-5 translate-y-1', className)} strokeWidth={1.5} /> | ||
} | ||
|
||
export default Icon |
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,117 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Icon 1`] = ` | ||
<svg | ||
className="lucide lucide-cog size-5 translate-y-1" | ||
fill="none" | ||
height={24} | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={1.5} | ||
viewBox="0 0 24 24" | ||
width={24} | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z" | ||
/> | ||
<path | ||
d="M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" | ||
/> | ||
<path | ||
d="M12 2v2" | ||
/> | ||
<path | ||
d="M12 22v-2" | ||
/> | ||
<path | ||
d="m17 20.66-1-1.73" | ||
/> | ||
<path | ||
d="M11 10.27 7 3.34" | ||
/> | ||
<path | ||
d="m20.66 17-1.73-1" | ||
/> | ||
<path | ||
d="m3.34 7 1.73 1" | ||
/> | ||
<path | ||
d="M14 12h8" | ||
/> | ||
<path | ||
d="M2 12h2" | ||
/> | ||
<path | ||
d="m20.66 7-1.73 1" | ||
/> | ||
<path | ||
d="m3.34 17 1.73-1" | ||
/> | ||
<path | ||
d="m17 3.34-1 1.73" | ||
/> | ||
<path | ||
d="m11 13.73-4 6.93" | ||
/> | ||
</svg> | ||
`; | ||
|
||
exports[`Icon with class name 1`] = ` | ||
<svg | ||
className="lucide lucide-cog size-5 translate-y-1 test" | ||
fill="none" | ||
height={24} | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={1.5} | ||
viewBox="0 0 24 24" | ||
width={24} | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z" | ||
/> | ||
<path | ||
d="M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" | ||
/> | ||
<path | ||
d="M12 2v2" | ||
/> | ||
<path | ||
d="M12 22v-2" | ||
/> | ||
<path | ||
d="m17 20.66-1-1.73" | ||
/> | ||
<path | ||
d="M11 10.27 7 3.34" | ||
/> | ||
<path | ||
d="m20.66 17-1.73-1" | ||
/> | ||
<path | ||
d="m3.34 7 1.73 1" | ||
/> | ||
<path | ||
d="M14 12h8" | ||
/> | ||
<path | ||
d="M2 12h2" | ||
/> | ||
<path | ||
d="m20.66 7-1.73 1" | ||
/> | ||
<path | ||
d="m3.34 17 1.73-1" | ||
/> | ||
<path | ||
d="m17 3.34-1 1.73" | ||
/> | ||
<path | ||
d="m11 13.73-4 6.93" | ||
/> | ||
</svg> | ||
`; |
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
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