Skip to content

Commit

Permalink
Merge branch 'tax-guide-for-uk-based-nris'
Browse files Browse the repository at this point in the history
  • Loading branch information
bluprince13 committed Jul 27, 2024
2 parents 2c4fe58 + 65d1df1 commit 1da97db
Show file tree
Hide file tree
Showing 15 changed files with 871 additions and 32 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-ga": "3.3.1",
"react-markdown": "^9.0.1",
"react-share": "5.1.0",
"react-social-icons": "6.16.0",
"react-ts-tradingview-widgets": "^1.2.5",
"rehype-autolink-headings": "7.1.0",
"rehype-citation": "^2.0.0",
"rehype-slug": "6.0.0",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 200 additions & 0 deletions public/blog/tax-guide-for-uk-based-nris/assets/pension-isa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions src/components/ComparisonTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Divider,
Box
} from '@mui/material'
import Markdown from 'react-markdown'

interface CellContent {
content: string | React.ReactNode
Expand Down Expand Up @@ -50,17 +51,17 @@ const tableCellSx = {
}
}

const TableHeaderCell: React.FC<{ name: string; description?: string }> = ({
name,
description
}) => {
const TableHeaderCell: React.FC<{
name: string
description?: string
}> = ({ name, description }) => {
return (
<TableCell sx={tableCellSx}>
<Typography
variant="subtitle1"
sx={{ fontWeight: 'bold', textAlign: 'center' }}
>
{name}
<Markdown>{name}</Markdown>
</Typography>
{description && (
<Typography
Expand All @@ -73,7 +74,7 @@ const TableHeaderCell: React.FC<{ name: string; description?: string }> = ({
margin: 'auto'
}}
>
{description}
<Markdown>{description}</Markdown>
</Typography>
)}
</TableCell>
Expand Down Expand Up @@ -140,9 +141,9 @@ export const ComparisonTable: React.FC<TableProps> = ({
Summary:
</Typography>
<Typography variant="body1">{summary}</Typography>
<Divider sx={{ marginTop: 2, marginBottom: 4 }} />
</>
)}
<Divider sx={{ marginTop: 2, marginBottom: 4 }} />
</Box>
)
}
54 changes: 31 additions & 23 deletions src/components/Iframe.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
import * as React from 'react'
import useMediaQuery from '@mui/material/useMediaQuery'
import Figure from './Figure'

interface IframeProps {
src: string
staticSrc: string
}

export const Iframe: React.FC<IframeProps> = ({
src
}) => (
<div
style={{
position: 'relative',
overflow: 'hidden',
width: '100%',
paddingTop: '56.25%'
}}
>
<iframe
export const Iframe: React.FC<IframeProps> = ({ src, staticSrc }) => {
const isMobile = useMediaQuery('(max-width:600px)')

return isMobile && staticSrc ? (
<Figure src={staticSrc} size="l" />
) : (
<div
style={{
border: 0,
position: 'absolute',
top: '0',
bottom: '0',
left: '0',
right: '0',
position: 'relative',
overflow: 'hidden',
width: '100%',
height: '100%'
paddingTop: '56.25%',
minWidth: '300px'
}}
src={src}
></iframe>
</div>
)
>
<iframe
style={{
border: 0,
position: 'absolute',
top: '0',
bottom: '0',
left: '0',
right: '0',
width: '100%',
height: '100%'
}}
src={src}
></iframe>
</div>
)
}
15 changes: 15 additions & 0 deletions src/components/SymbolOverviewWidget.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import dynamic from 'next/dynamic'
import { Box } from '@mui/material'

const SymbolOverview = dynamic(
() => import('react-ts-tradingview-widgets').then((w) => w.SymbolOverview),
{
ssr: false
}
)

export const SymbolOverviewWidget = (props) => (
<Box sx={{ marginTop: 2, marginBottom: 5, height: '400px' }}>
<SymbolOverview widgetFontColor="#000000" {...props} />
</Box>
)
Loading

1 comment on commit 1da97db

@vercel
Copy link

@vercel vercel bot commented on 1da97db Jul 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.