[yoga-23] achievements.item.component.tsx : center items
This commit is contained in:
parent
587a4482db
commit
a9ca4b3482
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
.textCenter{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
@ -3,6 +3,10 @@ import {YogaAchivement_Plain} from "@/types/generated-strapi-interfaces/api/yoga
|
|||||||
import {StrapiFile} from "@/types/types";
|
import {StrapiFile} from "@/types/types";
|
||||||
import strapiApi from "@/api/strapi/strapi-api";
|
import strapiApi from "@/api/strapi/strapi-api";
|
||||||
|
|
||||||
|
import styles from './achievements.item.component.module.css';
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
|
||||||
export interface Props{
|
export interface Props{
|
||||||
achievement: YogaAchivement_Plain
|
achievement: YogaAchivement_Plain
|
||||||
|
|
||||||
@ -15,7 +19,7 @@ const imageFile: StrapiFile = image as StrapiFile;
|
|||||||
return (
|
return (
|
||||||
<div className="col-lg-2 col-md-4 col-sm-6 col-xs-12">
|
<div className="col-lg-2 col-md-4 col-sm-6 col-xs-12">
|
||||||
<div className="logo_wrapper">
|
<div className="logo_wrapper">
|
||||||
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/></figure>
|
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className={clsx(styles.textCenter, "img-fluid")}/></figure>
|
||||||
<div className="logo_content">
|
<div className="logo_content">
|
||||||
{description}
|
{description}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user