UNPKG

template_assets

Version:

![Compatibility](https://img.shields.io/badge/compatibility-0.6.25-blue) [![Build Status](https://github.com/dfinity/examples/workflows/motoko-superheroes-example/badge.svg)](https://github.com/dfinity/examples/actions?query=workflow%3Amotoko-superheroes

35 lines (31 loc) 1.19 kB
import React from 'react'; import { Link } from 'react-router-dom'; import { IoChevronForward } from 'react-icons/io5'; import './styles.scss'; export const Title = ({ title, subtitle }) => { return ( <div className="title title-header"> <span className="title-header__sub">{ subtitle }</span> <h1 className="title-header__big">{ title }</h1> </div> ) } export const SectionTitle = ({ title, readMoreUrl="#", readMoreTitle, style }) => { return ( <div className="title title-section" style={ style }> <h2 className="title-section__title">{ title }</h2> <Link className="title-section__read-more" to={ readMoreUrl }> { readMoreTitle } { readMoreUrl !== "#" && <IoChevronForward className="title-section__read-more__icon"/> } </Link> </div> ) } export const PriceTitle = ({ price, currency }) => { return ( <div className="title title-price"> <span className="title-price__price">{ price }</span> <span className="title-price__currency">{ currency }</span> </div> ) }