mschwarzmueller / nextjs-course-code

Source code for my NextJS course (https://acad.link/nextjs)
1.43k stars 2.32k forks source link

03 prj routing #30

Open sanketrannore opened 1 year ago

sanketrannore commented 1 year ago

nextjs project

Alfonso-Jim commented 1 year ago

Hi, Max here is the updated code for displaying the height of the button properly. Since we don't have the div with the summary className anymore. I believe some students will have the same issue as I had (started the course couple of weeks ago). Nevertheless here is the solution.

   <li className={classes.item}>
      <img src={`/${image}`} alt={title} />
      <div className={classes.content}>
        <h2>{title}</h2>
        <div className={classes.date}>
          <DateIcon />
          <time>{humanReadableDate}</time>
        </div>
        <div className={classes.address}>
          <AddressIcon />
          <address>{formattedAddress}</address>
        </div>
        <div className={classes.actions}>
          <Button link={exploreLink}>
            <span>Explore Event</span>
            <span className={classes.icon}>
              <ArrowRightIcon />
            </span>
          </Button>
        </div>
      </div>
    </li>

If approved can I do a PR?