fix build
This commit is contained in:
parent
c0ee8a4a11
commit
71590024e7
28 changed files with 943 additions and 2 deletions
26
components/HeaderTitle.tsx
Normal file
26
components/HeaderTitle.tsx
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
'use client'
|
||||
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import * as React from 'react'
|
||||
|
||||
import choraLogoDark from '../assets/images/chora_dark_small.png'
|
||||
import choraLogoLight from '../assets/images/chora_light_small.png'
|
||||
|
||||
import styles from './HeaderTitle.module.css'
|
||||
|
||||
const HeaderTitle = ({ darkTheme, title, showMobileTitle }: any) => (
|
||||
<div className={showMobileTitle ? styles.mobileTitle : styles.title}>
|
||||
<Link href={(title && title.link) || '/'}>
|
||||
<Image alt="chora" src={darkTheme ? choraLogoDark : choraLogoLight} />
|
||||
<div className={styles.headerTitleText}>
|
||||
{'chora '}
|
||||
{title && title.titleX && (
|
||||
<span style={{ opacity: '0.75' }}>{title.titleX}</span>
|
||||
)}
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
|
||||
export default HeaderTitle
|
||||
Loading…
Add table
Add a link
Reference in a new issue