mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
Add new font for about and news pages
This commit is contained in:
parent
87c0b21943
commit
06e16e3a4b
6
site/components/common/About/AboutSlider.module.css
Normal file
6
site/components/common/About/AboutSlider.module.css
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
|
||||
|
||||
.aboutSliderText {
|
||||
font-family: 'Dancing Script', cursive;
|
||||
}
|
@ -8,6 +8,7 @@ import {
|
||||
Text,
|
||||
Container,
|
||||
} from '@chakra-ui/react'
|
||||
import style from "./AboutSlider.module.css"
|
||||
// Here we have used react-icons package for the icons
|
||||
import { BiLeftArrowAlt, BiRightArrowAlt } from 'react-icons/bi'
|
||||
// And react-slick as our Carousel Lib
|
||||
@ -110,9 +111,10 @@ export default function AboutSlider() {
|
||||
{card.title}
|
||||
</Heading>
|
||||
<Text
|
||||
as={'i'}
|
||||
fontSize={{ base: 'md', lg: 'lg' }}
|
||||
as={"span"}
|
||||
fontSize={{ base: 'lg', lg: 'xl' }}
|
||||
color="GrayText"
|
||||
className={style.aboutSliderText}
|
||||
>
|
||||
{card.text.split('<br/>').map((str, index) => (
|
||||
<p key={index}>{str}</p>
|
||||
|
6
site/components/common/News/NewsSlider.module.css
Normal file
6
site/components/common/News/NewsSlider.module.css
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
|
||||
|
||||
.newsSliderText {
|
||||
font-family: 'Dancing Script', cursive;
|
||||
}
|
@ -8,6 +8,7 @@ import {
|
||||
Text,
|
||||
Container,
|
||||
} from '@chakra-ui/react'
|
||||
import style from "./NewsSlider.module.css"
|
||||
// Here we have used react-icons package for the icons
|
||||
import { BiLeftArrowAlt, BiRightArrowAlt } from 'react-icons/bi'
|
||||
// And react-slick as our Carousel Lib
|
||||
@ -110,9 +111,10 @@ export default function NewsSlider() {
|
||||
{card.title}
|
||||
</Heading>
|
||||
<Text
|
||||
as={'i'}
|
||||
fontSize={{ base: 'md', lg: 'lg' }}
|
||||
as={'span'}
|
||||
fontSize={{ base: 'xl', lg: '2xl' }}
|
||||
color="GrayText"
|
||||
className={style.newsSliderText}
|
||||
>
|
||||
{card.text.split('<br/>').map((str, index) => (
|
||||
<p className='mb-5' key={index}>{str}</p>
|
||||
|
@ -1,11 +1,10 @@
|
||||
import { Layout } from '@components/common'
|
||||
import AboutSlider from '@components/common/About/AboutSlider'
|
||||
import MessageMap from '@components/common/About/TestimonialCard'
|
||||
|
||||
export default function About() {
|
||||
return (
|
||||
<>
|
||||
<div className="mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
|
||||
<div style={{backgroundColor: "rgba(240, 226, 123, 0.9)"}} className={"mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit"}>
|
||||
<AboutSlider></AboutSlider>
|
||||
</div>
|
||||
</>
|
||||
|
@ -3,7 +3,7 @@ import NewsSlider from '@components/common/News/NewsSlider'
|
||||
|
||||
export default function News() {
|
||||
return (
|
||||
<div className="mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
|
||||
<div style={{backgroundColor: "rgba(240, 226, 123, 0.9)"}} className="mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
|
||||
<NewsSlider></NewsSlider>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user