@fortawesome/free-solid-svg-icons#faTag JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faTag.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: tags.js From blog with Apache License 2.0 | 5 votes |
Tags = (props) => {
const tags = props.tags;
const tagsStyle = {
alignItems: "center",
display: "flex",
flexWrap: "wrap",
justifyContent: "flex-start"
};
const tagStyle = {
alignItems: "center",
backgroundColor: "#dadada",
borderRadius: "4px",
color: "#4a4a4a",
display: "inline-flex",
fontSize: ".75rem",
height: "2em",
lineHeight: "1.5",
marginRight: "1em",
paddingLeft: ".75em",
paddingRight: ".75em",
marginBottom: ".75em"
};
if (!tags) {
return null;
}
return (
<div style={tagsStyle}>
{tags.map(tag => (
<Link className="light-link no-underline" key={tag} to={`/tags/${tag}`}>
<span key={tag} style={tagStyle}><FontAwesomeIcon icon={faTag} style={{marginRight: ".75em"}}/>{tag}</span>
</Link>
))}
</div>
);
}
Example #2
Source File: DemoDashboard.jsx From react-lte with MIT License | 4 votes |
export default function DemoDashboard() {
return (
<>
<LteContentHeader title='Dashboard' />
<LteContent>
<Row>
<Col xs='12' sm='6' md='3'>
<LteInfoBox icon={faCog} text='CPU Traffic' number='10%' iconColor='info' />
</Col>
<Col xs='12' sm='6' md='3'>
<LteInfoBox icon={faThumbsUp} text='Likes' number='41,410' iconColor='danger' />
</Col>
<div className='clearfix hidden-md-up' />
<Col xs='12' sm='6' md='3'>
<LteInfoBox icon={faShoppingCart} text='Sales' number='760' iconColor='success' />
</Col>
<Col xs='12' sm='6' md='3'>
<LteInfoBox icon={faUsers} text='New Members' number='2,000' iconColor='warning' />
</Col>
</Row>
<Row>
<Col lg='3' xs='6'>
<LteSmallBox title='150' message='New Orders' href='/info' icon={faShoppingBasket} color='info' />
</Col>
<Col lg='3' xs='6'>
<LteSmallBox title='53%' message='Bounce Rate' href='/info' icon={faChartBar} color='success' />
</Col>
<Col lg='3' xs='6'>
<LteSmallBox title='44' message='User Registrations' href='/info' icon={faUserPlus} color='warning' />
</Col>
<Col lg='3' xs='6'>
<LteSmallBox title='65' message='Unique Visitors' href='/info' icon={faChartPie} color='danger' />
</Col>
</Row>
<Row>
<Col lg='8'>
<Card>
<CardHeader className='border-transparent'>
<CardTitle>Latest Orders</CardTitle>
<LteCardTools>
<Button color='' className='btn-tool' data-card-widget='collapse'>
<FontAwesomeIcon icon={faMinus} />
</Button>
<Button color='' className='btn-tool' data-card-widget='remove'>
<FontAwesomeIcon icon={faTimes} />
</Button>
</LteCardTools>
</CardHeader>
<CardBody className='p-0'>
<Table responsive>
<thead>
<tr>
<th>Order ID</th>
<th>Item</th>
<th>Status</th>
<th>Popularity</th>
</tr>
</thead>
<tbody>
<tr>
<td>OR9842</td>
<td>Call of Duty IV</td>
<td>
<Badge tag='span' color='success'>
Shipped
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#00a65a' data-height='20'>
90,80,90,-70,61,-83,63
</div>
</td>
</tr>
<tr>
<td>OR1848</td>
<td>Samsung Smart TV</td>
<td>
<Badge tag='span' color='warning'>
Pending
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#f39c12' data-height='20'>
90,80,-90,70,61,-83,68
</div>
</td>
</tr>
<tr>
<td>OR7429</td>
<td>iPhone 6 Plus</td>
<td>
<Badge tag='span' color='danger'>
Delivered
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#f56954' data-height='20'>
90,-80,90,70,-61,83,63
</div>
</td>
</tr>
<tr>
<td>OR7429</td>
<td>Samsung Smart TV</td>
<td>
<Badge tag='span' color='info'>
Processing
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#00c0ef' data-height='20'>
90,80,-90,70,-61,83,63
</div>
</td>
</tr>
<tr>
<td>OR1848</td>
<td>Samsung Smart TV</td>
<td>
<Badge tag='span' color='warning'>
Pending
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#f39c12' data-height='20'>
90,80,-90,70,61,-83,68
</div>
</td>
</tr>
<tr>
<td>OR7429</td>
<td>iPhone 6 Plus</td>
<td>
<Badge tag='span' color='danger'>
Delivered
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#f56954' data-height='20'>
90,-80,90,70,-61,83,63
</div>
</td>
</tr>
<tr>
<td>OR9842</td>
<td>Call of Duty IV</td>
<td>
<Badge tag='span' color='success'>
Shipped
</Badge>
</td>
<td>
<div className='sparkbar' data-color='#00a65a' data-height='20'>
90,80,90,-70,61,-83,63
</div>
</td>
</tr>
</tbody>
</Table>
</CardBody>
</Card>
<Row>
<Col lg='6'>
<LteDirectChat color='warning'>
<CardHeader>
<CardTitle>Direct Chat</CardTitle>
<LteCardTools>
<Badge color='warning' data-toggle='tooltip' title='3 New Messages'>
3
</Badge>
<Button className='btn-tool' color='' data-card-widget='collapse'>
<FontAwesomeIcon icon={faMinus} />
</Button>
<Button
color=''
className='btn-tool'
data-toggle='tooltip'
title='Contacts'
data-widget='chat-pane-toggle'
>
<FontAwesomeIcon icon={faComments} />
</Button>
<Button color='' className='btn-tool' data-card-widget='remove'>
<FontAwesomeIcon icon={faTimes} />
</Button>
</LteCardTools>
</CardHeader>
<CardBody>
<LteDirectChatMessages>
<LteDirectChatMsg
name='Alexander Pierce'
date='23 Jan 2:00 pm'
image={user1}
message="Is this template really for free? That's unbelievable!"
/>
<LteDirectChatMsg
right
name='Sarah Bullock'
date='23 Jan 2:05 pm'
image={user3}
message='You better believe it!'
/>
<LteDirectChatMsg
name='Alexander Pierce'
date='23 Jan 5:37 pm'
image={user1}
message='Working with AdminLTE on a great new app! Wanna join?'
/>
<LteDirectChatMsg
right
name='Sarah Bullock'
date='23 Jan 6:10 pm'
image={user3}
message='I would love to.'
/>
</LteDirectChatMessages>
<LteDirectChatContacts>
<LteContactsList>
<LteContactsListItem
href='/contacts'
image={user1}
name='Count Dracula'
date='2/28/2015'
message='How have you been? I was...'
/>
<LteContactsListItem
href='/contacts'
image={user7}
name='Sarah Doe'
date='2/23/2015'
message='I will be waiting for...'
/>
<LteContactsListItem
href='/contacts'
image={user3}
name='Nadia Jolie'
date='2/20/2015'
message="I'll call you back at..."
/>
<LteContactsListItem
href='/contacts'
image={user5}
name='Nora S. Vans'
date='2/10/2015'
message='Where is your new...'
/>
<LteContactsListItem
href='/contacts'
image={user6}
name='John K.'
date='1/27/2015'
message='Can I take a look at...'
/>
<LteContactsListItem
href='/contacts'
image={user8}
name='Kenneth M.'
date='1/4/2015'
message='Never mind I found...'
/>
</LteContactsList>
</LteDirectChatContacts>
</CardBody>
<CardFooter>
<Form>
<InputGroup>
<Input placeholder='Type Message ...' />
<InputGroupAddon addonType='append'>
<Button color='warning'>Send</Button>
</InputGroupAddon>
</InputGroup>
</Form>
</CardFooter>
</LteDirectChat>
</Col>
<Col lg='6'>
<Card>
<CardHeader>
<CardTitle>Latest Members</CardTitle>
<LteCardTools>
<Badge color='danger'>8 New Members</Badge>
<Button className='btn-tool' color='' data-card-widget='collapse'>
<FontAwesomeIcon icon={faMinus} />
</Button>
<Button color='' className='btn-tool' data-card-widget='remove'>
<FontAwesomeIcon icon={faTimes} />
</Button>
</LteCardTools>
</CardHeader>
<CardBody className='p-0'>
<LteUsersList>
<LteUsersListItem image={user1} href='/users' name='Alexander Pierce' date='Today' />
<LteUsersListItem image={user8} href='/users' name='Norman' date='Yesterday' />
<LteUsersListItem image={user7} href='/users' name='Jane' date='12 Jan' />
<LteUsersListItem image={user6} href='/users' name='John' date='12 Jan' />
<LteUsersListItem image={user2} href='/users' name='Alexander' date='13 Jan' />
<LteUsersListItem image={user5} href='/users' name='Sarah' date='14 Jan' />
<LteUsersListItem image={user4} href='/users' name='Nora' date='15 Jan' />
<LteUsersListItem image={user3} href='/users' name='Nadia' date='15 Jan' />
</LteUsersList>
</CardBody>
</Card>
</Col>
</Row>
</Col>
<Col lg='4'>
<LteInfoBox icon={faTag} text='Inventory' number='5,200' bgColor='warning' />
<LteInfoBox icon={faHeart} text='Mentions' number='92,050' bgColor='success' />
<LteInfoBox icon={faCloudDownloadAlt} text='Downloads' number='114,381' bgColor='danger' />
<LteInfoBox icon={faComment} text='Direct Messages' number='163,921' bgColor='info' />
<Card>
<CardHeader className='border-0'>
<CardTitle>Online Store Overview</CardTitle>
<LteCardTools>
<Button className='btn-tool' color=''>
<FontAwesomeIcon icon={faDownload} />
</Button>
<Button color='' className='btn-tool'>
<FontAwesomeIcon icon={faBars} />
</Button>
</LteCardTools>
</CardHeader>
<CardBody>
<div className='d-flex justify-content-between align-items-center border-bottom mb-3'>
<p className='text-success text-xl'>
<FontAwesomeIcon icon={faRedo} />
</p>
<p className='d-flex flex-column text-right'>
<span className='font-weight-bold'>
<FontAwesomeIcon icon={faArrowUp} className='text-success' />
12%
</span>
<span className='text-muted'>CONVERSION RATE</span>
</p>
</div>
<div className='d-flex justify-content-between align-items-center border-bottom mb-3'>
<p className='text-warning text-xl'>
<FontAwesomeIcon icon={faShoppingCart} />
</p>
<p className='d-flex flex-column text-right'>
<span className='font-weight-bold'>
<FontAwesomeIcon icon={faArrowUp} className='text-warning' /> 0.8%
</span>
<span className='text-muted'>SALES RATE</span>
</p>
</div>
<div className='d-flex justify-content-between align-items-center mb-0'>
<p className='text-danger text-xl'>
<FontAwesomeIcon icon={faUsers} />
</p>
<p className='d-flex flex-column text-right'>
<span className='font-weight-bold'>
<FontAwesomeIcon icon={faArrowUp} className='text-danger' /> 1%
</span>
<span className='text-muted'>REGISTRATION RATE</span>
</p>
</div>
</CardBody>
</Card>
</Col>
</Row>
</LteContent>
</>
);
}
Example #3
Source File: content.js From yezz.me with MIT License | 4 votes |
render() {
return (
<StaticQuery
query={graphql`
query projectsQuery {
allProjectsJson {
edges {
node {
project
link
description
language
}
}
}
allLanguagesJson {
edges {
node {
id
language
}
}
}
allArticlesJson {
edges {
node {
article
link
description
language
}
}
}
allCommunityJson {
edges {
node {
communityName
communityLink
Stack
Year
Description
}
}
}
allTalkJson {
edges {
node {
subject
link
Description
}
}
}
}
`}
render={data => (
<>
<section className="content" id="content">
<div className="container">
<div className="subsection">
<h2 className="mt-5">
<span className="dot"></span>Last{" "}
<span className="word">Articles</span>
</h2>
<div className="row">
{data.allArticlesJson.edges.map(({ node }, index) => (
<div className="col-lg-4" key={index}>
<div className="card mb-4">
<div className="card-body">
<div className="card-title">
<h3>{node.article}</h3>
<h4>
<FontAwesomeIcon
icon={faTag}
className="mr-2"
/>
{node.language}
</h4>
</div>
<div className="card-text">{node.description}</div>
</div>
<div className="card-footer">
<a
href={node.link}
target="_blank"
rel="noreferrer"
>
View
</a>
</div>
</div>
</div>
))}
</div>
</div>
{/* + Technologies subsection */}
<div className="subsection">
<h2 className="mt-5">
<span className="dot"></span>Language &{" "}
<span className="word">Technology</span>
</h2>
<div className="row">
{data.allLanguagesJson.edges.map(({ node }, index) => (
<div className="col-lg-4 col-md-6" key={index}>
<div className="card">
<div className="card-text">
<div className="card-item">
<FontAwesomeIcon
icon={faCode}
className="mr-2 item-icon"
/>{" "}
{node.language}
</div>
</div>
</div>
</div>
))}
</div>
</div>
{/* - Technologies subsection */}
<br />
{/* - Community subsection */}
<div className="subsection">
<h2>
<span className="dot"></span>Community{" "}
</h2>
{data.allCommunityJson.edges.map(({ node }, index) => (
<div className="card">
<div className="card-body" key={index}>
<div className="card-title">
<a
href={node.communityLink}
target="_blank"
rel="noreferrer"
>
<h3>{node.communityName}</h3>
</a>
<h4>
<FontAwesomeIcon
icon={faUserNinja}
className="mr-2"
/>{" "}
{node.Stack}
</h4>
<h4>
<FontAwesomeIcon
icon={faCalendar}
className="mr-2"
/>{" "}
{node.Year}
</h4>
</div>
<div className="card-text">
<span>⭐</span> {node.Description}
</div>
</div>
</div>
))}
</div>
{/* + Projects subsection */}
<div className="subsection">
<h2 className="mt-5">
<a
href="https://github.com/yezz123"
target="_blank"
rel="noreferrer"
>
<span className="dot"></span>OpenSource
</a>{" "}
</h2>
<div className="row">
{data.allProjectsJson.edges.map(({ node }, index) => (
<div className="col-lg-4" key={index}>
<div className="card mb-4">
<div className="card-body">
<div className="card-title">
<h3>{node.project}</h3>
<h4>
<FontAwesomeIcon
icon={faCode}
className="mr-2"
/>
{node.language}
</h4>
</div>
<div className="card-text">{node.description}</div>
</div>
<div className="card-footer">
<a
href={node.link}
target="_blank"
rel="noreferrer"
>
View
</a>
</div>
</div>
</div>
))}
</div>
</div>
{/* + Talk subsection */}
<div className="subsection">
<h2>
<span className="dot"></span>Talks{" "}
</h2>
{data.allTalkJson.edges.map(({ node }, index) => (
<div className="card">
<div className="card-body" key={index}>
<div className="card-title">
<a href={node.link} target="_blank" rel="noreferrer">
<h4>{node.subject}</h4>
</a>
</div>
<div className="card-text">
<span>⭐</span> {node.Description}
</div>
</div>
</div>
))}
</div>
</div>
</section>
</>
)}
/>
)
}