mirror of
https://github.com/zadam/trilium.git
synced 2026-02-11 08:14:39 +01:00
feat(website): add GitHub link on mobile
This commit is contained in:
parent
c832e62389
commit
10e7fe56ab
@ -87,9 +87,17 @@ header {
|
||||
|
||||
.first-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
gap: 2em;
|
||||
|
||||
.banner {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.social-button {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
|
||||
@ -41,6 +41,8 @@ export function Header(props: {repoStargazersCount: number}) {
|
||||
<img src={logoPath} width="300" height="300" alt="Trilium Notes logo" /> <span>Trilium Notes</span>
|
||||
</a>
|
||||
|
||||
<RepositoryButton repoStargazersCount={props.repoStargazersCount} className="mobile-only" />
|
||||
|
||||
<Link
|
||||
href="#"
|
||||
className="mobile-only menu-toggle"
|
||||
@ -69,17 +71,25 @@ export function Header(props: {repoStargazersCount: number}) {
|
||||
<SocialButtons className="mobile-only" withText />
|
||||
</nav>
|
||||
|
||||
<div class="desktop-only repository-button">
|
||||
<SocialButton
|
||||
name="GitHub"
|
||||
iconSvg={githubIcon}
|
||||
counter={`${(props.repoStargazersCount / 1000).toFixed(1)}K+`}
|
||||
url="https://github.com/TriliumNext/Trilium"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<RepositoryButton repoStargazersCount={props.repoStargazersCount} className="desktop-only" />
|
||||
<DownloadButton />
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
function RepositoryButton({ repoStargazersCount, className }: {
|
||||
repoStargazersCount: number;
|
||||
className: string
|
||||
}){
|
||||
return (
|
||||
<div class={`repository-button ${className}`}>
|
||||
<SocialButton
|
||||
name="GitHub"
|
||||
iconSvg={githubIcon}
|
||||
counter={`${(repoStargazersCount / 1000).toFixed(1)}K+`}
|
||||
url="https://github.com/TriliumNext/Trilium"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user