[www] PersonCard update
This commit is contained in:
1 parent
f723724613
commit
d1897487a7
6 files changed
+121
-87
No files matched your search
@@ -0,0 +1,41 @@
|
||||
const React = require('react')
|
||||
const Image = require('./Image')
|
||||
|
||||
const Link = ({href, children}) => (
|
||||
<a className="invisible" href={href}>
|
||||
{children}
|
||||
</a>
|
||||
)
|
||||
|
||||
const Info = ({children}) => (
|
||||
<div className="Article Article--cloud">
|
||||
<div className="Article-Body">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
module.exports = ({picture, name, url, profile}) => (
|
||||
<div className="PersonCard">
|
||||
<Link href={url}>
|
||||
<div className="PersonCard-Picture">
|
||||
<Image data={picture}/>
|
||||
</div>
|
||||
|
||||
<div className="PersonCard-Title">
|
||||
{name[0]} {name[1]} {name[2]}
|
||||
</div>
|
||||
|
||||
<div className="PersonCard-Body">
|
||||
{profile.position}
|
||||
|
||||
{/*<Info>*/}
|
||||
{/*<p className="PersonCard-Position"><i><strong>{profile.position}</strong></i></p>*/}
|
||||
{/*<p>{profile.status}</p>*/}
|
||||
{/*<p>Образование: {profile.edu}</p>*/}
|
||||
{/*<p>Диплом: <i>{profile.diploma}</i></p>*/}
|
||||
{/*</Info>*/}
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
@@ -1,37 +0,0 @@
|
||||
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>
|
||||
)
|
||||
Reference in new issue
Block a user