[www] Collective/Person pages updated
This commit is contained in:
1 parent
b2191200da
commit
39ce95746f
14 files changed
+200
-123
No files matched your search
@@ -0,0 +1,9 @@
|
||||
const React = require('react')
|
||||
|
||||
module.exports = ({data}) => (
|
||||
<img
|
||||
className="CollectiveImage"
|
||||
width="100%"
|
||||
src={data.src}
|
||||
/>
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
const React = require('react')
|
||||
|
||||
module.exports = ({data, alt, opa = true}) => (
|
||||
<picture>
|
||||
<img
|
||||
className={opa ? 'opa' : ''}
|
||||
alt={alt}
|
||||
src={data.src}
|
||||
srcSet={data.set.map(({url, density}) => `${url} ${density}x`)}
|
||||
/>
|
||||
</picture>
|
||||
)
|
||||
@@ -0,0 +1,37 @@
|
||||
const React = require('react')
|
||||
const Image = require('./Image')
|
||||
|
||||
const Head = ({url, children}) => (
|
||||
<h2>
|
||||
<a href={url}>{children}</a>
|
||||
</h2>
|
||||
)
|
||||
|
||||
const Info = ({children}) => (
|
||||
<div className="Article Article--cloud">
|
||||
<div className="Article-Body">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
module.exports = ({picture, name, url, profile}) => (
|
||||
<div className="TeacherCard">
|
||||
<div className="TeacherCard-Picture">
|
||||
<Image data={picture}/>
|
||||
</div>
|
||||
|
||||
<div className="TeacherCard-Info">
|
||||
<Head url={url}>
|
||||
<span>{name[0]} {name[1]}</span> <strong>{name[2]}</strong>
|
||||
</Head>
|
||||
|
||||
<Info>
|
||||
<p className="TeacherCard-Position"><i><strong>{profile.position}</strong></i></p>
|
||||
<p>{profile.status}</p>
|
||||
<p>Образование: {profile.edu}</p>
|
||||
<p>Диплом: <i>{profile.diploma}</i></p>
|
||||
</Info>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
@@ -15,17 +15,6 @@ const TeacherProfile = ({picture, name, url, profile, biography, shareable}) =>
|
||||
</div>
|
||||
|
||||
<div className="teacher-profile__info">
|
||||
<Head url={url}>
|
||||
<span>{name[0]} {name[1]}</span> <strong>{name[2]}</strong>
|
||||
</Head>
|
||||
|
||||
<div>
|
||||
<p className="teacher-profile__position"><i><strong>{profile.position}</strong></i></p>
|
||||
<p>{profile.status}</p>
|
||||
<p>Образование: {profile.edu}</p>
|
||||
<p>Диплом: <i>{profile.diploma}</i></p>
|
||||
</div>
|
||||
|
||||
<div className="teacher-profile__biography">
|
||||
{getHtml(biography)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user