john-smilga / react-cocktailsdb-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sir there is no img-container class in index.css file

imkpk opened this issue · comments

commented

**** sir no img-container class in the index.css

import React from "react"; import { Link } from "react-router-dom"; export default function Cocktail({ id, name, info, image, glass }) { return ( <article className='cocktail'> <div className='img-container'> <img src={image} alt={name} /> </div> <div className='cocktail-footer'> <h3>{name}</h3> <h4>{glass}</h4> <p>{info} </p> <Link to={/cocktail/${id}} className='btn btn-primary btn-details'> details </Link> </div> </article> ); }