bar responsive cards
This commit is contained in:
parent
930648e6cf
commit
b3e2672e98
@ -7,7 +7,7 @@ import Footer from "@/components/Footer/footer";
|
|||||||
import localFont from 'next/font/local';
|
import localFont from 'next/font/local';
|
||||||
import './layout.css'
|
import './layout.css'
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
// const inter = Inter({ subsets: ["latin"] });
|
||||||
const robleAlt = localFont({
|
const robleAlt = localFont({
|
||||||
src: './RobleAlt.woff',
|
src: './RobleAlt.woff',
|
||||||
display: 'swap',
|
display: 'swap',
|
||||||
|
|||||||
BIN
Websites/jefes-nextjs/app/menu/Bar/Inter-Bold.woff
Normal file
BIN
Websites/jefes-nextjs/app/menu/Bar/Inter-Bold.woff
Normal file
Binary file not shown.
BIN
Websites/jefes-nextjs/app/menu/Bar/Inter-ExtraBold.woff
Normal file
BIN
Websites/jefes-nextjs/app/menu/Bar/Inter-ExtraBold.woff
Normal file
Binary file not shown.
@ -38,5 +38,13 @@
|
|||||||
"price": 13,
|
"price": 13,
|
||||||
"size": "24oz",
|
"size": "24oz",
|
||||||
"description": "Corona with tamarindo."
|
"description": "Corona with tamarindo."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"name": "Cheesy Mac & Cheese With a Fruit Cup",
|
||||||
|
"photo": "Bar/Michelada.jpeg",
|
||||||
|
"price": 13,
|
||||||
|
"size": "24oz",
|
||||||
|
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1,21 +1,26 @@
|
|||||||
|
"use client";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import Menu from "./items.json";
|
import Menu from "./items.json";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import localFont from 'next/font/local';
|
||||||
|
|
||||||
|
const interBold = localFont({
|
||||||
|
src: './Inter-Bold.woff',
|
||||||
|
display: 'swap',
|
||||||
|
})
|
||||||
|
|
||||||
const Bar = () => {
|
const Bar = () => {
|
||||||
|
let pic = "cover";
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
{/* Mapping out the menu
|
<div className="flex flex-wrap gap-8">
|
||||||
<div className=" flex flex-wrap gap-8 pt-6 justify-between w-full">
|
|
||||||
{Menu.map((menu_item) => {
|
{Menu.map((menu_item) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<Card key={menu_item.id} className="flex flex-grow flex-col w-[325px] h-[452px]">
|
||||||
key={menu_item.id}
|
<div className="w-full h-[55%]">
|
||||||
className="flex flex-col flex-grow h-[452px] w-[325px] rounded-lg shadow-xl drop-shadow-xl"
|
<div className="h-full relative w-full">
|
||||||
>
|
|
||||||
<div className="h-[55%] relative w-full overflow-hidden">
|
|
||||||
<Image
|
<Image
|
||||||
src={`/${menu_item.photo}`}
|
src={`/${menu_item.photo}`}
|
||||||
alt="chili pepper spice"
|
alt="chili pepper spice"
|
||||||
@ -25,49 +30,43 @@ const Bar = () => {
|
|||||||
className="rounded-t-lg"
|
className="rounded-t-lg"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h4 className="">
|
</div>
|
||||||
|
<div className="m-[8px] space-y-[4px]">
|
||||||
|
{/* title and description of item */}
|
||||||
|
<div className="w-full font-sans">
|
||||||
|
{/* title and photo */}
|
||||||
|
<div className="inline-block">
|
||||||
|
<h4 className={`pt-2 float-left ${interBold.className}`}>
|
||||||
<strong>{menu_item.name}</strong>
|
<strong>{menu_item.name}</strong>
|
||||||
</h4>
|
</h4>
|
||||||
<p className="max-w-[75ch]">
|
{/* <div className="bg-red-300 float-right relative w-[25px] h-[25px]">
|
||||||
Description: {menu_item.description}
|
<Image
|
||||||
</p>
|
src="/red-chili-pepper.svg"
|
||||||
<div className="flex flex-row justify-evenly">
|
alt="chili pepper spice"
|
||||||
<div className=" flex flex-row">
|
fill
|
||||||
<span>{`$${menu_item.price}`}</span>
|
style={{
|
||||||
</div>
|
objectFit: "contain",
|
||||||
<div className="flex w-1/2 relative">
|
}}
|
||||||
<div className="flex w-3 h-full items-end justify-end">
|
quality={100}
|
||||||
<div className=""></div>
|
className=""
|
||||||
</div>
|
/>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</div> */}
|
</div> */}
|
||||||
<div>
|
</div>
|
||||||
{Menu.map((menu_item) => {
|
{/* paragraph text */}
|
||||||
return (
|
<div className="inline-block text-left">
|
||||||
<Card key={menu_item.id} className="flex flex-wrap gap-8 pt-6 justify-evenly w-[325px] h-[452px]">
|
{/* <p className="max-w-[75ch]">
|
||||||
<CardHeader className="h-full relative w-full overflow-hidden">
|
|
||||||
<Image
|
|
||||||
src={`/${menu_item.photo}`}
|
|
||||||
alt="chili pepper spice"
|
|
||||||
fill
|
|
||||||
style={{ objectFit: "cover", objectPosition: "center" }}
|
|
||||||
quality={100}
|
|
||||||
className="rounded-t-lg"
|
|
||||||
/>
|
|
||||||
</CardHeader>
|
|
||||||
<h4 className="">
|
|
||||||
<strong>{menu_item.name}</strong>
|
|
||||||
</h4>
|
|
||||||
<p className="max-w-[75ch]">
|
|
||||||
Description: {menu_item.description}
|
Description: {menu_item.description}
|
||||||
|
</p> */}
|
||||||
|
{/* 16px line height */}
|
||||||
|
<p className="leading-4 text-[#8F8F8F]">
|
||||||
|
{menu_item.description}
|
||||||
</p>
|
</p>
|
||||||
<div className="flex flex-row justify-evenly">
|
</div>
|
||||||
|
</div>
|
||||||
|
{/* cart addon */}
|
||||||
<div className="flex flex-row">
|
<div className="flex flex-row">
|
||||||
<span>{`$${menu_item.price}`}</span>
|
<div className=" flex flex-row">
|
||||||
|
<strong>{`$${menu_item.price}`}</strong>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-1/2 relative">
|
<div className="flex w-1/2 relative">
|
||||||
<div className="flex w-3 h-full items-end justify-end">
|
<div className="flex w-3 h-full items-end justify-end">
|
||||||
@ -75,6 +74,7 @@ const Bar = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 MiB After Width: | Height: | Size: 5.1 MiB |
@ -1,4 +1,7 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
darkMode: ["class"],
|
darkMode: ["class"],
|
||||||
content: [
|
content: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user