- attempt at responsiveness fix

- bring back scrollbars
- update dependencies
This commit is contained in:
Amruth Pillai
2020-07-16 19:53:14 +05:30
parent 0019fee34e
commit 0b70d7ebec
14 changed files with 431 additions and 297 deletions

View File

@ -2,11 +2,21 @@
.container {
width: 210mm;
height: 297mm;
zoom: 0.8;
-moz-transform: scale(0.8);
transform-origin: 50% 18%;
overflow-y: scroll;
zoom: 0.5;
overflow: scroll;
box-shadow: var(--shadow);
@apply bg-white rounded;
@apply my-16 rounded;
}
}
@media screen and (min-width: 1366px) {
.container {
zoom: 0.65;
}
}
@media screen and (min-width: 1440px) {
.container {
zoom: 0.8;
}
}

View File

@ -1,12 +1,6 @@
.container {
z-index: 10;
box-shadow: var(--left-shadow);
-ms-overflow-style: none;
scrollbar-width: none;
@apply w-full h-screen overflow-scroll p-8;
@apply grid gap-8;
}
.container::-webkit-scrollbar {
display: none;
}
}

View File

@ -1,12 +1,7 @@
.container {
z-index: 10;
box-shadow: var(--right-shadow);
-ms-overflow-style: none;
scrollbar-width: none;
@apply w-full h-screen overflow-scroll p-8;
@apply grid gap-8;
}
.container::-webkit-scrollbar {
display: none;
}

View File

@ -89,7 +89,7 @@ const Templates = ({ name }) => {
alt={x.name}
loading="eager"
className="w-full"
style={{ height: '225px' }}
style={{ height: '230px' }}
fluid={previews[x.id].childImageSharp.fluid}
/>
<span>{x.name}</span>

View File

@ -18,12 +18,12 @@ const Hero = () => {
const handleGotoApp = () => navigate('/app/dashboard');
return (
<div className="flex items-center">
<div className="flex flex-col md:flex-row items-center">
<Link to="/">
<Logo className="shadow-lg" size="256px" />
</Link>
<div className="ml-12">
<div className="mt-12 md:mt-0 md:ml-12">
<div className="text-5xl font-bold">
<TypeIt
getBeforeInit={(instance) => {
@ -42,13 +42,21 @@ const Hero = () => {
{t('shared.shortDescription')}
</h2>
<div className="mt-12 flex">
<div className="mt-12">
{user ? (
<Button onClick={handleGotoApp} isLoading={loading}>
<Button
onClick={handleGotoApp}
isLoading={loading}
className="mx-auto md:mx-0"
>
{t('landing.hero.goToApp')}
</Button>
) : (
<Button onClick={handleLogin} isLoading={loading}>
<Button
onClick={handleLogin}
isLoading={loading}
className="mx-auto md:mx-0"
>
{t('shared.buttons.login')}
</Button>
)}

View File

@ -3,7 +3,7 @@ import { isFunction } from 'lodash';
import React, { memo, useEffect, useState } from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { FaAngleDown } from 'react-icons/fa';
import { MdClose, MdOpenInNew } from 'react-icons/md';
import { MdOpenInNew } from 'react-icons/md';
import { v4 as uuidv4 } from 'uuid';
import { useDispatch, useSelector } from '../../contexts/ResumeContext';
import { handleKeyUp } from '../../utils';
@ -70,16 +70,6 @@ const Input = ({
onChange={onChange}
placeholder={placeholder}
/>
{isFunction(onClick) && (
<MdClose
size="16px"
tabIndex="0"
onClick={onClick}
onKeyUp={(e) => handleKeyUp(e, onClick)}
className="absolute right-0 cursor-pointer opacity-50 hover:opacity-75 mx-4"
/>
)}
</div>
)}