Skip to content

Commit

Permalink
add app logo component
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimondev committed Apr 9, 2024
1 parent 9b7ac87 commit 1ce88a0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
8 changes: 2 additions & 6 deletions src/app/builder/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Image from 'next/image'

import { AppLogo } from '@/components/app-logo'
import { BuilderSections } from '@/components/builder-sections'
import { CopyCodeButton } from '@/components/copy-code-button'
import { GenerationInfo } from '@/components/generation-info'
Expand All @@ -11,10 +10,7 @@ export default function Builder() {
<Header>
<div className='flex flex-col sm:flex-row pb-2 sm:items-center sm:justify-between gap-2 sm:gap-0 w-full'>
<div className='hidden sm:flex items-center cursor-pointer text-white'>
<Image src='/extension_icon.png' alt='Application logo' width={30} height={30} />
<h1 className='text-lg ml-2 hover:text-violet-200 transition-colors duration-300'>
easyreadme
</h1>
<AppLogo />
</div>
<div className='flex gap-2 w-full sm:max-w-80'>
<GenerationInfo />
Expand Down
9 changes: 2 additions & 7 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from 'next/image'
import Link from 'next/link'

import { AppLogo } from '@/components/app-logo'
import { Hero } from '@/components/hero'
import { GitIc } from '@/components/icons'
import { ListFeatures } from '@/components/list-features'
Expand All @@ -14,12 +14,7 @@ export default function Home() {
<header className='sticky top-0 px-8 xl:px-20 py-2'>
<div className='flex h-14 items-center justify-between'>
<div className='flex items-center cursor-pointer text-white'>
<Link className='flex ' href='/'>
<Image src='/logo.png' alt='Application logo' width={30} height={30} />
<h1 className='text-base sm:text-xl ml-2 hover:text-violet-200 transition-colors duration-300'>
easyreadme
</h1>
</Link>
<AppLogo />
</div>
<div className='flex gap-2 items-center'>
<Link
Expand Down
13 changes: 13 additions & 0 deletions src/components/app-logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Image from 'next/image'
import Link from 'next/link'

export function AppLogo() {
return (
<Link className='flex ' href='/'>
<Image src='/logo.png' alt='Application logo' width={30} height={30} />
<span className='text-base sm:text-xl ml-2 hover:text-violet-200 transition-colors duration-300'>
easyreadme
</span>
</Link>
)
}

0 comments on commit 1ce88a0

Please sign in to comment.