Fix styles

This commit is contained in:
Hazem Krimi
2021-06-21 23:31:50 +01:00
parent 613af2e1e9
commit 883470257d
5 changed files with 21 additions and 25 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ const FeatureCard = ({
alignItems='center' alignItems='center'
rowGap='10px' rowGap='10px'
borderRadius='10px' borderRadius='10px'
cursor='pointer' cursor={selectable ? 'pointer' : undefined}
> >
<Box display='flex' flexDirection='row' alignItems='center'> <Box display='flex' flexDirection='row' alignItems='center'>
<Box flexGrow='1'> <Box flexGrow='1'>
+9 -3
View File
@@ -942,6 +942,7 @@ const AddProject = () => {
feature feature
)} )}
toggleSelect={() => { toggleSelect={() => {
if (feature.featureType !== 'backend')
setSelectedFeature(feature); setSelectedFeature(feature);
if ( if (
featuresForm.values.selectedFeatures && featuresForm.values.selectedFeatures &&
@@ -994,10 +995,15 @@ const AddProject = () => {
<Carousel {...carouselSettings}> <Carousel {...carouselSettings}>
{selectedFeature?.wireframes?.map((wireframe) => ( {selectedFeature?.wireframes?.map((wireframe) => (
<Box <Box
height='0'
width='150px' width='150px'
height='300px' overflow='hidden'
background={`url(${wireframe.src})`} paddingTop='calc(591.44 / 1127.34 * 100%)'
></Box> position='relative'
className='wireframe'
>
<img src={wireframe.src} alt='Wireframe' />
</Box>
))} ))}
</Carousel> </Carousel>
</> </>
+10
View File
@@ -15,4 +15,14 @@ export const Wrapper = styled.div<WrapperProps>`
stroke: ${({ theme, color }) => theme.colors[color || 'client'].main}; stroke: ${({ theme, color }) => theme.colors[color || 'client'].main};
} }
} }
.wireframe {
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
`; `;
-10
View File
@@ -135,13 +135,6 @@ const Login = () => {
loading={loading} loading={loading}
disabled={loading} disabled={loading}
/> />
{/* <Button
variant='secondary-action'
fullWidth
color='client'
text='Login with Google'
iconLeft={<Google />}
/> */}
</Box> </Box>
<Box display='flex' flexDirection='row'> <Box display='flex' flexDirection='row'>
<Box flexGrow='1'> <Box flexGrow='1'>
@@ -150,9 +143,6 @@ const Login = () => {
</Text> </Text>
<Link href='/signup'>Signup</Link> <Link href='/signup'>Signup</Link>
</Box> </Box>
<Link href='/' color='gray'>
Build a Project
</Link>
</Box> </Box>
</Box> </Box>
</form> </form>
-10
View File
@@ -125,13 +125,6 @@ const Signup = () => {
loading={loading} loading={loading}
disabled={loading} disabled={loading}
/> />
{/* <Button
variant='secondary-action'
fullWidth
color='client'
text='Signup with Google'
iconLeft={<Google />}
/> */}
</Box> </Box>
<Box display='flex' flexDirection='row'> <Box display='flex' flexDirection='row'>
<Box flexGrow='1'> <Box flexGrow='1'>
@@ -140,9 +133,6 @@ const Signup = () => {
</Text> </Text>
<Link href='/login'>Login</Link> <Link href='/login'>Login</Link>
</Box> </Box>
<Link href='/' color='gray'>
Build a Project
</Link>
</Box> </Box>
</Box> </Box>
</form> </form>