Files
freeCodeCamp/common/app/routes/challenges/components/classic/Preview.jsx

29 lines
662 B
JavaScript
Raw Normal View History

2016-03-05 21:06:04 -08:00
import React from 'react';
import PureComponent from 'react-pure-render/component';
2016-05-20 12:42:26 -07:00
const mainId = 'fcc-main-frame';
2016-03-05 21:06:04 -08:00
2017-01-12 06:54:43 +00:00
export default class Preview extends PureComponent {
2016-03-05 21:06:04 -08:00
render() {
return (
2016-07-30 01:04:40 +05:30
<div
className='challenges-preview'
>
2016-03-05 21:06:04 -08:00
<div className='hidden-xs hidden-md'>
<img
className='iphone-position iframe-scroll'
2016-06-23 16:57:26 -07:00
src='https://s3.amazonaws.com/freecodecamp/iphone6-frame.png'
/>
2016-03-05 21:06:04 -08:00
</div>
<iframe
className='iphone iframe-scroll'
2016-06-23 16:57:26 -07:00
id={ mainId }
/>
2016-03-05 21:06:04 -08:00
<div className='spacer' />
</div>
);
}
}
2017-01-12 06:54:43 +00:00
Preview.displayName = 'Preview';