next.js/examples/with-ionic/app/page.tsx
page.tsx32 lines920 B
import IonicLayout from "@/_components/IonicLayout";
import CardComponent from "@/_components/Card";

export default function Home() {
  const destinations = new Array(8).fill({
    imageSrc: "/img/cat.jpg",
    title: "Madison, WI",
    subtitle: "Destination",
    content:
      "Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week in the woods. Wash your spirit clean.",
  });

  return (
    <IonicLayout>
      <ion-grid>
        <ion-row>
          {destinations.map((destination, i) => (
            <ion-col key={i} size="3">
              <CardComponent
                imageSrc={destination.imageSrc}
                title={destination.title}
                subtitle={destination.subtitle}
                content={destination.content}
              />
            </ion-col>
          ))}
        </ion-row>
      </ion-grid>
    </IonicLayout>
  );
}
Quest for Codev2.0.0
/
SIGN IN