♻️ refactor(projects): add modular external link
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Box, SxProps, Theme, Typography, TypographyProps } from '@mui/material'
|
import { Box, SxProps, Theme, Typography, TypographyProps } from '@mui/material'
|
||||||
import { ExtrernalIconLink } from '..'
|
import { ExternalIconLink } from '..'
|
||||||
|
|
||||||
type AwardEntryProps = {
|
type AwardEntryProps = {
|
||||||
year: string | number
|
year: string | number
|
||||||
@@ -26,9 +26,7 @@ const Publication = ({ Component = Box, ...props }: AwardEntryProps) => {
|
|||||||
<b>{props.title}</b>
|
<b>{props.title}</b>
|
||||||
</Typography>
|
</Typography>
|
||||||
, In: {props.location}
|
, In: {props.location}
|
||||||
{typeof props.link !== 'undefined' && (
|
{typeof props.link !== 'undefined' && <ExternalIconLink size="small" fontSize="small" href={props.link} sx={{ color: 'text.secondary' }} />}
|
||||||
<ExtrernalIconLink size="small" fontSize="small" href={props.link} sx={{ color: 'text.secondary' }} />
|
|
||||||
)}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Component>
|
</Component>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react'
|
|||||||
import { Box, Typography } from '@mui/material'
|
import { Box, Typography } from '@mui/material'
|
||||||
|
|
||||||
import { ViewportProvider } from 'components/utils/viewport'
|
import { ViewportProvider } from 'components/utils/viewport'
|
||||||
import { AcademyIconLink, DescriptionIconLink, GitHubIconLink, VideoIconLink } from 'components/atoms'
|
import { AcademyIconLink, DescriptionIconLink, ExternalAppIconLink, GitHubIconLink, VideoIconLink } from 'components/atoms'
|
||||||
import { Footer, Hero, Toobar, ProjectSpotlight } from 'components/molecules'
|
import { Footer, Hero, Toobar, ProjectSpotlight } from 'components/molecules'
|
||||||
|
|
||||||
const MainPage = () => {
|
const MainPage = () => {
|
||||||
@@ -54,6 +54,7 @@ const MainPage = () => {
|
|||||||
caption={
|
caption={
|
||||||
<>
|
<>
|
||||||
<GitHubIconLink size="small" fontSize="small" href="https://github.com/ADVRHumanoids/motor_calibration" />
|
<GitHubIconLink size="small" fontSize="small" href="https://github.com/ADVRHumanoids/motor_calibration" />
|
||||||
|
<ExternalAppIconLink size="small" fontSize="small" href="https://modular.alberobotics.it" />
|
||||||
<Typography component="span" color="text.secondary" ml={1}>
|
<Typography component="span" color="text.secondary" ml={1}>
|
||||||
Software Engineer @ IIT
|
Software Engineer @ IIT
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Box, Divider, Link, Typography } from '@mui/material'
|
import { Box, Divider, Link, Typography } from '@mui/material'
|
||||||
|
|
||||||
import { GitHubIconLink, DescriptionIconLink, VideoIconLink, AcademyIconLink } from 'components/atoms'
|
import { GitHubIconLink, DescriptionIconLink, VideoIconLink, AcademyIconLink, ExternalAppIconLink } from 'components/atoms'
|
||||||
import { Project } from 'components/molecules'
|
import { Project } from 'components/molecules'
|
||||||
import { Page } from 'components/templates'
|
import { Page } from 'components/templates'
|
||||||
|
|
||||||
@@ -50,6 +50,7 @@ const ProjectsPage = () => {
|
|||||||
Software Engineer @ IIT
|
Software Engineer @ IIT
|
||||||
</Typography>
|
</Typography>
|
||||||
<GitHubIconLink size="small" fontSize="small" href="https://github.com/ADVRHumanoids/modular_hhcm/" sx={{ color: 'text.secondary' }} />
|
<GitHubIconLink size="small" fontSize="small" href="https://github.com/ADVRHumanoids/modular_hhcm/" sx={{ color: 'text.secondary' }} />
|
||||||
|
<ExternalAppIconLink size="small" fontSize="small" href="https://modular.alberobotics.it" sx={{ color: 'text.secondary' }} />
|
||||||
<Typography color="text.secondary" ml={1} display={{ xs: 'none', sm: 'inline' }}>
|
<Typography color="text.secondary" ml={1} display={{ xs: 'none', sm: 'inline' }}>
|
||||||
Software Engineer @ IIT
|
Software Engineer @ IIT
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user