parent
49c804f6af
commit
c931b1ad80
5 changed files with 167 additions and 2 deletions
@ -0,0 +1,18 @@ |
||||
import React from "react"; |
||||
const Class = ({ |
||||
title, |
||||
description, |
||||
teacher, |
||||
group, |
||||
price, |
||||
}) => { |
||||
return( |
||||
<div> |
||||
<h1>{title}</h1> |
||||
<p>{description}</p> |
||||
{teacher} {group} {price} |
||||
</div> |
||||
) |
||||
}; |
||||
|
||||
export default Class |
@ -0,0 +1,18 @@ |
||||
import React from "react"; |
||||
import Class from "../../components/products/classes"; |
||||
import PLATFORM_DATA from "../../store"; |
||||
const Services = () => { |
||||
return( |
||||
<div className="flex" style={{width: '93.5%', marginRight: '6.5%', marginTop: '8.5%'}}> |
||||
|
||||
{ |
||||
PLATFORM_DATA.classes.map((item, idx) => ( |
||||
<Class title={item.title} description={item.description} price={item.price} group={item.group} teacher={item.teacher} /> |
||||
)) |
||||
} |
||||
|
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default Services; |
Loading…
Reference in new issue