Main page update
This commit is contained in:
parent
af2881c9e9
commit
f537acb757
@ -15,7 +15,7 @@
|
|||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
display: inline-flex;
|
/* display: inline-flex; */
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 0;
|
border: 0;
|
||||||
@ -35,7 +35,6 @@
|
|||||||
.embla__button {
|
.embla__button {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
color: white;
|
color: white;
|
||||||
background-color: rgba(128, 128, 128, 0.288);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@ -90,7 +90,7 @@ export const EmblaCarousel = () => {
|
|||||||
<div className="embla__buttons">
|
<div className="embla__buttons">
|
||||||
<PrevButton onClick={scrollPrev} disabled={prevBtnDisabled} />
|
<PrevButton onClick={scrollPrev} disabled={prevBtnDisabled} />
|
||||||
</div>
|
</div>
|
||||||
<div className="embla__buttons absolute w-[96vw] justify-end">
|
<div className="embla__buttons w-[96vw] justify-end">
|
||||||
<NextButton onClick={scrollNext} disabled={nextBtnDisabled} />
|
<NextButton onClick={scrollNext} disabled={nextBtnDisabled} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -55,7 +55,7 @@ const NavBar = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<nav>
|
<nav>
|
||||||
{/* <center className="text-accent bg-black">O</center> */}
|
{/* <center className="text-accent bg-black">0</center> */}
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
navbar
|
navbar
|
||||||
@ -67,7 +67,7 @@ const NavBar = () => {
|
|||||||
className={
|
className={
|
||||||
navbar
|
navbar
|
||||||
? "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8 z-90"
|
? "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8 z-90"
|
||||||
: "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8 pr-6"
|
: "hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased ml-8 pr-4"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{links.map((link) => (
|
{links.map((link) => (
|
||||||
@ -88,7 +88,7 @@ const NavBar = () => {
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
{/* logo */}
|
{/* logo */}
|
||||||
<Link href="/" className="relative">
|
<Link href="/" className="relative justify-center items-center">
|
||||||
<Image
|
<Image
|
||||||
src="/logo.svg"
|
src="/logo.svg"
|
||||||
width={0}
|
width={0}
|
||||||
@ -109,7 +109,7 @@ const NavBar = () => {
|
|||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<ul className="hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased md:pl-4">
|
<ul className="hover:cursor-pointer hidden md:block space-x-4 xl:text-xl font-sans antialiased md:pl-3">
|
||||||
{links2.map((link) => (
|
{links2.map((link) => (
|
||||||
<Link
|
<Link
|
||||||
key={link.href}
|
key={link.href}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ const Reserve = () => {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="right-2 hidden md:block">
|
<div className="right-2 hidden md:block">
|
||||||
<Button className="xl:text-lg border bg-transparent">
|
<Button className="xl:text-lg bg-red-800 hover:bg-slate-600">
|
||||||
<span className="flex flex-row">
|
<span className="flex flex-row">
|
||||||
<span className="flex flex-row">ORDER ONLINE</span>
|
<span className="flex flex-row">ORDER ONLINE</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
19
Websites/jefes-nextjs/app/menuButton.tsx
Normal file
19
Websites/jefes-nextjs/app/menuButton.tsx
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
"use client";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const MenuButton = () => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div className="right-2 hidden md:block">
|
||||||
|
<Button className="xl:text-lg bg-zinc-900 hover:bg-slate-600">
|
||||||
|
<span className="flex flex-row px-7">
|
||||||
|
<span className="flex flex-row">VIEW MENU</span>
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default MenuButton;
|
||||||
@ -1,12 +1,14 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { EmblaCarousel } from "./carousel";
|
import { EmblaCarousel } from "./carousel";
|
||||||
|
import Reserve from "./components/NavBar/reserveButton";
|
||||||
|
import MenuButton from "./menuButton";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<div className="flex flex-col relative justify-center items-center">
|
<div className="flex flex-col relative">
|
||||||
<div className="flex relative w-full h-[100svh]">
|
<div className="flex relative w-full h-[90svh]">
|
||||||
<Image
|
<Image
|
||||||
src="/img01.webp"
|
src="/img01.webp"
|
||||||
alt="nav image"
|
alt="nav image"
|
||||||
@ -14,10 +16,34 @@ export default function Home() {
|
|||||||
fill
|
fill
|
||||||
style={{ objectFit: "cover", objectPosition: "center" }}
|
style={{ objectFit: "cover", objectPosition: "center" }}
|
||||||
quality={100}
|
quality={100}
|
||||||
className="brightness-[20%] "
|
className="brightness-[20%] -z-90"
|
||||||
/>
|
/>
|
||||||
|
<div className="flex flex-col items-center justify-center text-white absolute w-full h-[90svh] gap-6">
|
||||||
|
{/* <center className="bg-gray-700 w-full">0</center> */}
|
||||||
|
<div className="flex w-full h-[24svh] relative">
|
||||||
|
<Image
|
||||||
|
src="/award01.png"
|
||||||
|
alt="award image"
|
||||||
|
priority
|
||||||
|
fill
|
||||||
|
style={{ objectFit: "contain", objectPosition: "center" }}
|
||||||
|
quality={100}
|
||||||
|
className=""
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<p className="flex flex-col w-full justify-center px-[24svw] text-xl 2xl:px-[25svw] text-center">
|
||||||
|
Jefe's Mexican Cocina Y Cantina serves the best Mexican food in
|
||||||
|
town. Be our guests and have an enjoyable experience with an
|
||||||
|
authentic Mexican meal right here in Broken Arrow, OK.
|
||||||
|
</p>
|
||||||
|
{/* <center>0</center> */}
|
||||||
|
<div className="flex flex-row w-full space-x-6 items-center justify-center">
|
||||||
|
<MenuButton/>
|
||||||
|
<Reserve />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-full items-center justify-center">
|
<div className="flex flex-col w-full h-[180vh]">
|
||||||
<EmblaCarousel />
|
<EmblaCarousel />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user