Skip to content

Commit

Permalink
Merge pull request #283 from kse-publications/fix/bug_links
Browse files Browse the repository at this point in the history
links fix, github logo link add
  • Loading branch information
yeontannie authored Jul 4, 2024
2 parents fb7153c + 78baf99 commit f1f2f81
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
8 changes: 7 additions & 1 deletion client/src/components/layout/header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button } from '@/components/ui/button'
import { GitHubLogoIcon } from '@radix-ui/react-icons'

import logoLight from '../../assets/images/logo-white.png'
import MobileMenuDrawer from './mobile-menu'
Expand Down Expand Up @@ -40,11 +41,16 @@ function Header({ light = false, isSync }: HeaderProps) {
href={item.href}
aria-label={`Go to ${item.label} page`}
>
<Button variant="ghost" className="rounded-full">
<Button variant="ghost" className="rounded-full align-middle">
{item.label}
</Button>
</a>
))}
<a href="https://github.com/kse-publications/website" target="_blank">
<Button variant="ghost" className="h-11 rounded-full px-2 align-middle">
<GitHubLogoIcon className="h-7 w-7" />
</Button>
</a>
</div>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions client/src/components/publications/publication-section.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const prerender = true
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { buttonVariants } from '@/components/ui/button'
import type { Publication } from '@/types/publication/publication'
import { ChevronRightIcon } from '@radix-ui/react-icons'
Expand Down Expand Up @@ -46,11 +47,10 @@ function PublicationPage({ data, relatedPublications, similarPublications }: Pub
<h4 className="text-l scroll-m-20 font-semibold tracking-tight">Authors:</h4>{' '}
{data.authors.map((author: any, index: number) => (
<span key={author.slug}>
<a
href={`/?searchText=${author.name.toLowerCase().replace(/\s/g, '+')}`}
className="hover:underline"
>
{author.name}
<a href={`/?searchText=${author.name.toLowerCase().replace(/\s/g, '+')}`}>
<Button variant="link" className="h-0 p-0 text-base font-normal">
{author.name}
</Button>
</a>
{index < data.authors.length - 1 ? ', ' : ''}{' '}
</span>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/static-pages/submissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function SubmissionsPage() {
For any inquiries or further assistance, please contact{' '}
<span className="font-bold">
<a href="mailto:[email protected]">
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
[email protected]
</Button>
</a>
Expand Down
16 changes: 8 additions & 8 deletions client/src/components/static-pages/team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Dr. Larysa Tamilina
</Button>
</a>{' '}
Expand All @@ -30,7 +30,7 @@ function TeamPage() {
target="_blank"
>
{' '}
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Mark Motliuk
</Button>
</a>{' '}
Expand All @@ -43,7 +43,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Anastasia Shevelova
</Button>
</a>{' '}
Expand All @@ -58,7 +58,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Vlad Prudius
</Button>
</a>{' '}
Expand All @@ -68,7 +68,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Anna Opanasenko
</Button>
</a>{' '}
Expand All @@ -81,7 +81,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Dmytro Kolisnyk
</Button>
</a>{' '}
Expand All @@ -91,7 +91,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Tetiana Stasiuk
</Button>
</a>{' '}
Expand All @@ -105,7 +105,7 @@ function TeamPage() {
className="underline"
target="_blank"
>
<Button variant="link" className="p-0">
<Button variant="link" className="h-0 p-0 text-base">
Viktoriia Verych
</Button>
</a>{' '}
Expand Down

0 comments on commit f1f2f81

Please sign in to comment.