мой третий commit

master
serkus01 2 years ago
parent 68950cc0cb
commit 583a98e223

@ -10,18 +10,13 @@ import {
IonCardContent, IonCardContent,
IonImg, IonImg,
IonIcon, IonIcon,
IonCardSubtitle,
IonButton IonButton
} from "@ionic/react"; } from "@ionic/react";
import { navigateOutline } from "ionicons/icons"; import { navigateOutline } from "ionicons/icons";
import ExploreContainer from "../components/ExploreContainer";
import "./Tab1.css"; import "./Tab1.css";
import { Link } from "react-router-dom"; //import { Link } from "react-router-dom";
import { useState } from "react";
import { map } from "ionicons/icons";
const Tab1: React.FC = () => { const Tab1: React.FC = () => {
const genKey = () => Math.random().toString(); const genKey = () => Math.random().toString();
const cites = [ const cites = [

@ -8,7 +8,7 @@ import {
IonLabel, IonLabel,
IonSegmentButton IonSegmentButton
} from "@ionic/react"; } from "@ionic/react";
import { tabletPortraitSharp } from "ionicons/icons"; //import { tabletPortraitSharp } from "ionicons/icons";
const Tab2: React.FC = () => { const Tab2: React.FC = () => {
const tabApp = [ const tabApp = [
@ -20,7 +20,7 @@ const Tab2: React.FC = () => {
<IonPage> <IonPage>
<IonHeader> <IonHeader>
<IonToolbar> <IonToolbar>
<IonTitle>Образование</IonTitle> <IonTitle>Пространства</IonTitle>
</IonToolbar> </IonToolbar>
</IonHeader> </IonHeader>
<IonContent fullscreen> <IonContent fullscreen>

@ -6,10 +6,18 @@ import {
IonToolbar, IonToolbar,
IonSegment, IonSegment,
IonLabel, IonLabel,
IonCard,
IonCardContent,
IonCardHeader,
IonCardTitle,
IonIcon,
IonButton,
IonSegmentButton IonSegmentButton
} from "@ionic/react"; } from "@ionic/react";
import "./Tab2.css"; import "./Tab2.css";
import { heart } from "ionicons/icons";
const Tab2: React.FC = () => { const Tab2: React.FC = () => {
const tablist = [ const tablist = [
{ {
@ -24,7 +32,15 @@ const Tab2: React.FC = () => {
} }
]; ];
const WorkList = [{ title: "", price: "", likes: "", experience: "" }, {}]; const WorkList = [
{ title: "Монтажник", price: "44000", likes: "8", experience: "" },
{ title: "Ситемный Инженер", price: "68000", likes: "60", experience: "" },
{ title: "Проограммист", price: "120000", likes: "50", experience: "" },
{ title: "DevOps", price: "86000", likes: "100", experience: "" },
{ title: "", price: "", likes: "", experience: "" },
{ title: "", price: "", likes: "", experience: "" },
{}
];
return ( return (
<IonPage> <IonPage>
@ -44,6 +60,38 @@ const Tab2: React.FC = () => {
</IonSegmentButton> </IonSegmentButton>
))} ))}
</IonSegment> </IonSegment>
{WorkList.map((w) => (
<IonCard>
<IonCardHeader>
<IonCardTitle>{w.title}</IonCardTitle>
</IonCardHeader>
<p>
<span style={{ fontSize: "20px", float: "right" }}>
<b>{w.price} &#8399;</b>
</span>
<IonIcon icon={heart} style={{ color: "#F00", fontSize: 16 }} />
{w.likes}
</p>
<IonCardContent>
{w.experience}
<p
style={{
padding: "10px",
border: "1px dotted #AAA",
fontSize: "16px"
}}
>
<IonButton
color="lifght"
style={{ backgroundColor: "#EE5203", color: "#EEE" }}
>
Хочу подробностей
</IonButton>{" "}
</p>
</IonCardContent>
</IonCard>
))}
</IonContent> </IonContent>
</IonPage> </IonPage>
); );

Loading…
Cancel
Save