-
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.
- Loading branch information
1 parent
4c2f8ab
commit a34a291
Showing
13 changed files
with
110 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.uaapp_quote { | ||
margin: 20px 0; | ||
margin: var(--spacing-element) 0; | ||
text-align: right; | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.uaheader { | ||
border-bottom: 5px solid white; | ||
box-sizing: content-box; | ||
height: 80px; | ||
padding: var(--spacing-element) 0; | ||
} | ||
|
||
.uaheader_logo { | ||
position: absolute; | ||
} |
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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
import { render, screen } from '@testing-library/react' | ||
import { describe, expect, test, vi } from 'vitest' | ||
import { describe, expect, test } from 'vitest' | ||
import { Header } from './header' | ||
|
||
vi.mock('next/head', () => { | ||
return { | ||
__esModule: true, | ||
default: ({ children }: { children: Array<React.ReactElement> }) => { | ||
return <>{children}</> | ||
} | ||
} | ||
}) | ||
|
||
describe('Views > Header', () => { | ||
test('display title', async () => { | ||
test('display logo', () => { | ||
render(<Header />) | ||
|
||
expect(screen.getByText('unknow art')).toBeDefined() | ||
expect(screen.getByAltText('logo unknown art')).toBeDefined() | ||
}) | ||
}) |
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 |
---|---|---|
@@ -1,18 +1,7 @@ | ||
.uaheader { | ||
border-bottom: 5px solid white; | ||
box-sizing: content-box; | ||
height: 80px; | ||
padding: 20px 0; | ||
} | ||
|
||
.ualogo { | ||
position: absolute; | ||
} | ||
|
||
.uanav ul { | ||
.uamenu ul { | ||
display: flex; | ||
flex-direction: row-reverse; | ||
gap: 20px; | ||
gap: var(--spacing-element); | ||
list-style: none; | ||
padding: 0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './meta' |
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,20 @@ | ||
import { render, screen } from '@testing-library/react' | ||
import { describe, expect, test, vi } from 'vitest' | ||
import { Meta } from './meta' | ||
|
||
vi.mock('next/head', () => { | ||
return { | ||
__esModule: true, | ||
default: ({ children }: { children: Array<React.ReactElement> }) => { | ||
return <>{children}</> | ||
} | ||
} | ||
}) | ||
|
||
describe('Views > Meta', () => { | ||
test('display title', async () => { | ||
render(<Meta />) | ||
|
||
expect(screen.getByText('unknow art')).toBeDefined() | ||
}) | ||
}) |
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,20 @@ | ||
import Head from 'next/head' | ||
import type { FC } from 'react' | ||
|
||
type MetaProps = { | ||
title?: string | ||
} | ||
|
||
export const Meta: FC<MetaProps> = (props) => { | ||
const { title } = props | ||
|
||
const headTitle = `unknow art${title ? ` - ${title}` : ''}` | ||
|
||
return ( | ||
<Head> | ||
<title>{headTitle}</title> | ||
</Head> | ||
) | ||
} | ||
|
||
Meta.displayName = 'Meta' |