Skip to content

Commit

Permalink
chore: updated theme and template code
Browse files Browse the repository at this point in the history
  • Loading branch information
ehtishamdot committed Sep 15, 2024
1 parent a3cfa22 commit 7cadbb0
Show file tree
Hide file tree
Showing 12 changed files with 17,320 additions and 246 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,575 changes: 1,575 additions & 0 deletions 438165407_122122415708265102_4943001314190980622_n.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ export default async function ContactPage() {
className="mt-2.5"
></iframe>
<h3 className="mt-2.5 text-header-3 font-semibold">Our location</h3>
<p>12190 Beahan Street 59025</p>
<p>West Virginia</p>
<p>(979) 541-3809</p>
<p>[email protected]</p>
<p>Karachi, Pakistan</p>
</div>
);

Expand Down
7,961 changes: 7,859 additions & 102 deletions components/icons/logo.tsx

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions components/layout/featured-products/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export default function Featuredproducts({ products }: { products: Product[] })
Featured Products
</h2>
<h3 className="mx-auto max-w-3xl text-center text-header-3 leading-none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
🎂 Cakes | 🍪 Cookies | 🧁 Cupcakes | 🍫 Brownies
</h3>
</div>
<CustomCarousel className="mt-12 pl-2.5">
Expand Down
30 changes: 13 additions & 17 deletions components/layout/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
import { Button } from 'components/button';
import AmericanExpress from 'public/icons/payments/americanexp';
import Discover from 'public/icons/payments/discover';
import Link from 'next/link';
// import AmericanExpress from 'public/icons/payments/americanexp';
// import Discover from 'public/icons/payments/discover';
import Mastercard from 'public/icons/payments/mastercard';
import Paypal from 'public/icons/payments/paypal';
import Visa from 'public/icons/payments/visa';
// import Paypal from 'public/icons/payments/paypal';
// import Visa from 'public/icons/payments/visa';
import SendNewsletterBtn from 'public/icons/sendnews';
import Facebook from 'public/icons/social/facebook';
import Instagram from 'public/icons/social/instagram';
import Tiktok from 'public/icons/social/tiktok';
// import Tiktok from 'public/icons/social/tiktok';
import MainLogo from 'public/logo/logo';

export default function Footer() {
const CompanyAddress = () => (
<div className="pt-[1.87rem] text-center sm:pt-0 sm:text-left">
<MainLogo width="93px" height="88px" className="mx-auto sm:mx-0" />
<div className="mt-2.5 leading-tight">
<p>12190 Beahan Street</p>
<p>59025</p>
<p>West Virginia</p>
<p>(979) 541-3809</p>
<p>[email protected]</p>
<p>Karachi, Pakistan</p>
</div>
</div>
);
Expand All @@ -46,19 +43,18 @@ export default function Footer() {

const PaymentLogos = () => (
<div className="flex flex-wrap items-center justify-center gap-5">
<Visa />
<Mastercard />
<AmericanExpress />
<Discover />
<Paypal />
</div>
);

const SocialIcons = () => (
<div className="flex items-center gap-5 pt-[1.8rem]">
<Facebook className="max-w-[1.8rem]" />
<Instagram className="max-w-[1.8rem]" />
<Tiktok className="max-w-[1.8rem]" />
<Link href="https://www.facebook.com/profile.php?id=61557953070344&ref=xav_ig_profile_web">
<Facebook className="max-w-[1.8rem]" />
</Link>
<Link href="https://www.instagram.com/bakistrybysam/">
<Instagram className="max-w-[1.8rem]" />
</Link>
</div>
);

Expand Down
5 changes: 2 additions & 3 deletions components/layout/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Grid from 'components/grid';
import { getMenu } from 'lib/shopify';
import { Menu } from 'lib/shopify/types';
import Link from 'next/link';
import MainLogo from 'public/logo/logo';

export default async function Header({ isInternalPage }: { isInternalPage?: boolean }) {
// Get menu from shopify
Expand All @@ -18,7 +17,7 @@ export default async function Header({ isInternalPage }: { isInternalPage?: bool
isInternalPage && 'mb-[70px] bg-light-pink'
)}
>
<Link href="/">
{/* <Link href="/">
<MainLogo
width="10rem"
height="9.3rem"
Expand All @@ -28,7 +27,7 @@ export default async function Header({ isInternalPage }: { isInternalPage?: bool
isInternalPage && 'my-1 max-h-32 max-w-32'
)}
/>
</Link>
</Link> */}
{menu.length ? (
<Grid
className={clsx(
Expand Down
9 changes: 1 addition & 8 deletions components/layout/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Button } from 'components/button';
import Image from 'next/image';
import Link from 'next/link';
import Arrow from 'public/arrow/arrow';
import { Github } from 'public/icons/github';
import Header from '../header';

const HeroContent = () => {
Expand All @@ -19,18 +18,12 @@ const HeroContent = () => {
/>
<div className="flex max-w-2xl flex-col items-center md:items-start">
<h2 className="text-center text-3xl font-semibold leading-tight md:text-left lg:text-5xl">
Free Next.Js template with <span className="whitespace-nowrap">Headless Shopify❤️</span>
🧁sweet moments, freshly baked with love🫶🏻
</h2>
<div className="mt-8 flex flex-col gap-2.5 min-[380px]:flex-row">
<Link href="/products">
<Button>Go to products</Button>
</Link>
<Link href="https://github.com/stefanogali/panini-cake" target="_blank">
<Button className="flex items-center gap-2">
<Github className="fill-white" />
Get template
</Button>
</Link>
</div>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions components/layout/promo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ export default function Promo() {
<Grid className="flex flex-col">
<Grid.Item className="mb-5 flex items-center">
<Egg className="mr-2.5 w-10" />
Pretium fusce id velit ut tortor
Premium quality with every bite
</Grid.Item>
<Grid.Item className="mb-5 flex items-center">
<Van className=" mr-2.5 w-10" />
Viverra ipsum nunc aliquet bibendum enim facilisis
<Van className="mr-2.5 w-10" />
Light and delightful textures
</Grid.Item>
<Grid.Item className="mb-5 flex items-center">
<Cake className=" mr-2.5 w-10" />
Vestibulum lorem sed risus ultricies tristique nulla aliquet enim
<Cake className="mr-2.5 w-10" />
Beautifully presented, irresistibly delicious
</Grid.Item>
<Grid.Item className="flex items-center ">
<Grid.Item className="flex items-center">
<PanCake className="mr-2.5 w-10" />
Lobortis mattis aliquam
Made with love and passion
</Grid.Item>
</Grid>
<Button className="mt-7">Find out more</Button>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/logo/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7,962 changes: 7,860 additions & 102 deletions public/logo/logo.tsx

Large diffs are not rendered by default.

0 comments on commit 7cadbb0

Please sign in to comment.