Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3435 | Rev 4896 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3391 stevensc 1
/* eslint-disable react/prop-types */
2
import React from 'react'
3446 stevensc 3
import parse from 'html-react-parser'
3391 stevensc 4
 
3435 stevensc 5
const PublicPost = ({ image = '', title = '', description = '' }) => {
3420 stevensc 6
 
3391 stevensc 7
    return (
3435 stevensc 8
        <div className="d-flex align-items-center justify-content-center" style={{ background: '#fff', minHeight: '80vh' }}>
3429 stevensc 9
            <div className="row p-2 m-2">
10
                <div className="col-md-6 col-sm-12 col-12">
11
                    <div className="card">
12
                        <img className="card-img-top" src={image} alt={title} />
3423 stevensc 13
                    </div>
14
                </div>
3429 stevensc 15
                <div className="col-md-6 col-sm-12 col-12 d-flex align-items-center position-relative">
16
                    <div className="card border-0">
17
                        <div className="card-body">
3446 stevensc 18
                            <h1 className="card-title font-weight-bold border-bottom">{parse(title)}</h1>
3429 stevensc 19
                            <p className="card-text">
3446 stevensc 20
                                {parse(description)}
3423 stevensc 21
                            </p>
22
                        </div>
23
                    </div>
24
                </div>
25
            </div>
3427 stevensc 26
        </div>
27
 
3391 stevensc 28
    )
29
}
30
 
31
export default PublicPost