Fixed homepage responsivness on Chromium webkit browsers

This commit is contained in:
Alicia Sykes 2023-07-18 20:32:56 +01:00
parent 9a5af64d1b
commit 679aab140d
4 changed files with 14 additions and 5 deletions

View File

@ -4,7 +4,7 @@ import Row from 'components/Form/Row';
const cardStyles = ` const cardStyles = `
grid-column: span 2; grid-column: span 2;
span.val { max-width: 32rem; } span.val { max-width: 32rem !important; }
`; `;
const TxtRecordCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => { const TxtRecordCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => {

View File

@ -1,3 +1,4 @@
import { useEffect } from "react";
const FancyBackground = (): JSX.Element => { const FancyBackground = (): JSX.Element => {
@ -325,7 +326,7 @@ const FancyBackground = (): JSX.Element => {
return { x: xx, y: yy }; return { x: xx, y: yy };
}; };
document.addEventListener('DOMContentLoaded', function () { useEffect(() => {
App.setup(); App.setup();
App.draw(); App.draw();
@ -334,7 +335,8 @@ const FancyBackground = (): JSX.Element => {
requestAnimationFrame(frame); requestAnimationFrame(frame);
}; };
frame(); frame();
}); }, []);
return ( return (

View File

@ -8,18 +8,25 @@ const StyledFooter = styled.footer`
padding: 0.5rem 0; padding: 0.5rem 0;
background: ${colors.backgroundDarker}; background: ${colors.backgroundDarker};
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
align-items: center;
align-content: center;
flex-wrap: wrap; flex-wrap: wrap;
opacity: 0.75; opacity: 0.75;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
@media (min-width: 1024px) {
justify-content: space-between;
}
&:hover { &:hover {
opacity: 1; opacity: 1;
} }
span { span {
margin: 0 0.5rem; margin: 0 0.5rem;
text-align: center;
} }
`; `;
const Link = styled.a` const Link = styled.a`
color: ${colors.primary}; color: ${colors.primary};
font-weight: bold; font-weight: bold;

View File

@ -119,7 +119,7 @@ const Home = (): JSX.Element => {
/> />
{/* <FindIpButton onClick={findIpAddress}>Or, find my IP</FindIpButton> */} {/* <FindIpButton onClick={findIpAddress}>Or, find my IP</FindIpButton> */}
{ errorMsg && <ErrorMessage>{errorMsg}</ErrorMessage>} { errorMsg && <ErrorMessage>{errorMsg}</ErrorMessage>}
<Button size="large" onClick={submit}>Analyze!</Button> <Button styles="width: calc(100% - 1rem);" size="large" onClick={submit}>Analyze!</Button>
</UserInputMain> </UserInputMain>
<Footer isFixed={true} /> <Footer isFixed={true} />
</HomeContainer> </HomeContainer>