This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcard.tsx
More file actions
50 lines (44 loc) · 2.2 KB
/
card.tsx
File metadata and controls
50 lines (44 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { SampleBase } from '../common/sample-base';
import './card.css';
// tslint:disable:max-line-length
// * Sample for CSS avatar component
export class Card extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className="sample_container card_sample">
{/* <!-- Card Component --> */}
<div className="e-card e-custom-card">
<div className="e-card-header">
{/* <!-- xLarge Circle Avatar--> */}
<div className="e-avatar e-avatar-circle e-avatar-xlarge">
<img src="./src/avatar/images/pic02.png" alt="profile_pic" />
</div>
</div>
<div className="e-card-header">
<div className="e-card-header-caption center">
<div className="e-card-header-title name">Laura Callahan</div>
<div className="e-card-sub-title">Sales Coordinator</div>
</div>
</div>
<div className="e-card-content">
<p className="avatar-content"> Laura received a BA in psychology from the University of Washington. She has also completed a course in business French. She reads and writes French.</p>
</div>
</div>
</div>
<div id="action-description">
<p>This sample demonstrates the integration of avatar component with card component to create business cards.</p>
</div>
<div id="description">
<p>The circle avatar is integrated into card component to design business cards. The image element is wrapped by the avatar
container to apply circle style to avatar and add
<code>.e-avatar-circle</code> class to the avatar container.
</p>
</div>
</div>
);
}
}