mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
create Image component
This commit is contained in:
parent
64b40cf674
commit
85bae53459
14
src/components/Image/index.tsx
Normal file
14
src/components/Image/index.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const StyledImage = styled.img`
|
||||
object-fit: contain;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
`;
|
||||
|
||||
export const Image = ({ ...props }) => {
|
||||
return <StyledImage {...props} />
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user