-
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.
feat(web app): add navigation footer
- Loading branch information
1 parent
0fba60f
commit bf16974
Showing
9 changed files
with
141 additions
and
93 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
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,17 +1,17 @@ | ||
import { JSX } from 'preact'; | ||
|
||
import { NavigationMenu } from '../(_components)/navigation-menu.tsx'; | ||
import Search from '../(_islands)/search.tsx'; | ||
import Menu from '../(_islands)/menu.tsx'; | ||
import TrailHierarchical from '../(_islands)/trail-hierarchical.tsx'; | ||
import TrailHistorical from '../(_islands)/trail-historical.tsx'; | ||
|
||
export function ActionBar(): JSX.Element { | ||
return ( | ||
<div class='flex justify-center gap-8 bg-tan-100 border py-4'> | ||
<TrailHierarchical></TrailHierarchical> | ||
<TrailHistorical></TrailHistorical> | ||
<Search></Search> | ||
<Menu></Menu> | ||
<div class='flex justify-center gap-8 bg-tan-100 border'> | ||
{/* <TrailHierarchical></TrailHierarchical> */} | ||
{/* <TrailHistorical></TrailHistorical> */} | ||
{/* <Search></Search> */} | ||
<NavigationMenu></NavigationMenu> | ||
</div> | ||
); | ||
} |
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,38 @@ | ||
import { JSX } from 'preact'; | ||
import { Selectors } from '../../web/state.ts'; | ||
import { translate } from '../../web/translation.ts'; | ||
|
||
export function NavigationMenu(): JSX.Element { | ||
const language = Selectors.language.value; | ||
const linkClasses = 'flex items-center text-center py-4 px-8 hover:bg-tan-50 transition-colors'; | ||
|
||
return ( | ||
<div className='flex text-sm'> | ||
<a href={`/${language}`} class={linkClasses}>{translate('Table of Contents', language)}</a> | ||
|
||
<div class='my-2 border-l'></div> | ||
|
||
<a href='/' class={linkClasses}>{translate('Introduction (Home)', language)}</a> | ||
|
||
<div class='my-2 border-l'></div> | ||
|
||
<a href='/select-language' class={linkClasses + ' gap-4'}> | ||
<svg | ||
xmlns='http://www.w3.org/2000/svg' | ||
fill='none' | ||
viewBox='0 0 24 24' | ||
stroke-width='1.5' | ||
stroke='currentColor' | ||
class='w-6 h-6' | ||
> | ||
<path | ||
stroke-linecap='round' | ||
stroke-linejoin='round' | ||
d='M10.5 21l5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 016-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 01-3.827-5.802' | ||
/> | ||
</svg> | ||
<span>{translate('Select Language', language)}</span> | ||
</a> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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