From d06a2c0d8933cccdfb4b0a1fca80dd5995639098 Mon Sep 17 00:00:00 2001 From: myf <myf@uio.no> Date: Fri, 17 Jun 2022 16:22:57 +0200 Subject: [PATCH] New footer and upper case name ntnu --- frontend/src/routes/components/footer.tsx | 3 ++- frontend/src/utils/index.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/components/footer.tsx b/frontend/src/routes/components/footer.tsx index 70c435fc..c2d737e8 100644 --- a/frontend/src/routes/components/footer.tsx +++ b/frontend/src/routes/components/footer.tsx @@ -3,6 +3,7 @@ import { styled } from '@mui/material/styles' import { Link } from '@mui/material' import { + appInst, responsibleOrganization, responsibleOrganizationLink, responsibleOrganizationLinkEn, @@ -60,7 +61,7 @@ const LogoSection = styled('div')(({ theme }) => ({ color: theme.palette.primary.main, display: 'flex', justifyContent: 'space-between', - padding: '1rem 0 1rem 2rem', + ...(appInst === 'uio' && { padding: '1rem 0 1rem 2rem' }), })) const StyledLink = styled(Link)({ diff --git a/frontend/src/utils/index.ts b/frontend/src/utils/index.ts index c7804337..dd3d3fe3 100644 --- a/frontend/src/utils/index.ts +++ b/frontend/src/utils/index.ts @@ -190,6 +190,8 @@ export function instNameUpperCaser(instName: String): String { return 'UiO' case 'uib': return 'UiB' + case 'ntnu': + return 'NTNU' default: return instName } -- GitLab