Skip to content

Commit

Permalink
Merge pull request #63 from UCLOrengoGroup/add-journal-link
Browse files Browse the repository at this point in the history
Add journal link
  • Loading branch information
sillitoe authored Nov 5, 2024
2 parents 14c3dc4 + 02a574f commit 3eedac3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
14 changes: 9 additions & 5 deletions frontend/src/components/Common/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Center, Container, Image } from "@chakra-ui/react"
import { Box, Container, Image, Stack } from "@chakra-ui/react"
import type React from "react"
import Citation from "./Citation"

Expand All @@ -9,10 +9,14 @@ const Footer: React.FC = () => {
<Box pt={12}>
<Box bgColor={"#eee"}>
<Container maxW={"6xl"}>
<Center>
<Citation />
<Image src={ImgUCL} alt="UCL Logo" />
</Center>
<Stack direction={["column","row"]} spacing={2} align={"center"}>
<Box>
<Citation />
</Box>
<Box>
<Image src={ImgUCL} alt="UCL Logo" />
</Box>
</Stack>
</Container>
</Box>
</Box>
Expand Down
22 changes: 10 additions & 12 deletions frontend/src/routes/_layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
Link,
Stack,
Text,
createIcon,
useColorModeValue,
} from "@chakra-ui/react"
import { ExternalLinkIcon } from '@chakra-ui/icons'
import logoImg from "../../assets/images/ted_logo.png"
import Carousel from "../../components/Common/Carousel"

Expand Down Expand Up @@ -78,8 +78,6 @@ function Dashboard() {
>
<Button
rounded={"full"}
size={"lg"}
fontWeight={"normal"}
px={6}
colorScheme={"teal"}
_hover={{ bg: "red.500" }}
Expand All @@ -90,15 +88,21 @@ function Dashboard() {
</Button>
<Button
rounded={"full"}
size={"lg"}
fontWeight={"normal"}
px={6}
leftIcon={<PlayIcon h={4} w={4} color={"gray.300"} />}
>
<Link as={RouterLink} to={"/about"}>
About
</Link>
</Button>
<Button
rounded={"full"}
px={6}
>
<Link href={"https://www.science.org/stoken/author-tokens/ST-2226/full"}>
Full Access Science Article
<ExternalLinkIcon mx='2px' />
</Link>
</Button>
</Stack>
</Stack>
<Flex
Expand Down Expand Up @@ -132,12 +136,6 @@ function Dashboard() {
)
}

const PlayIcon = createIcon({
displayName: "PlayIcon",
viewBox: "0 0 58 58",
d: "M28.9999 0.562988C13.3196 0.562988 0.562378 13.3202 0.562378 29.0005C0.562378 44.6808 13.3196 57.438 28.9999 57.438C44.6801 57.438 57.4374 44.6808 57.4374 29.0005C57.4374 13.3202 44.6801 0.562988 28.9999 0.562988ZM39.2223 30.272L23.5749 39.7247C23.3506 39.8591 23.0946 39.9314 22.8332 39.9342C22.5717 39.9369 22.3142 39.8701 22.0871 39.7406C21.86 39.611 21.6715 39.4234 21.5408 39.1969C21.4102 38.9705 21.3421 38.7133 21.3436 38.4519V19.5491C21.3421 19.2877 21.4102 19.0305 21.5408 18.8041C21.6715 18.5776 21.86 18.3899 22.0871 18.2604C22.3142 18.1308 22.5717 18.064 22.8332 18.0668C23.0946 18.0696 23.3506 18.1419 23.5749 18.2763L39.2223 27.729C39.4404 27.8619 39.6207 28.0486 39.7458 28.2713C39.8709 28.494 39.9366 28.7451 39.9366 29.0005C39.9366 29.2559 39.8709 29.507 39.7458 29.7297C39.6207 29.9523 39.4404 30.1391 39.2223 30.272Z",
})

const Blob = (props: IconProps) => {
return (
<Icon
Expand Down

0 comments on commit 3eedac3

Please sign in to comment.