Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 0 additions & 73 deletions .github/workflows/issue-branch.yml

This file was deleted.

121 changes: 0 additions & 121 deletions .github/workflows/pr-auto-review.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- main
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Outdated checkout action version.
Updating from actions/checkout@v2 to @v3 helps ensure future compatibility and includes performance improvements.

Apply this diff to fix the version:

-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- uses: actions/checkout@v2
- uses: actions/checkout@v3
🧰 Tools
🪛 actionlint (1.7.4)

13-13: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
3 changes: 1 addition & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bun run build
git pull --rebase origin main
bun run build
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

75 changes: 36 additions & 39 deletions apps/core/app/(landing)/_components/addtoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ import Securityicon from "@repo/icons/security";
import { Label } from "@repo/ui/components/label";
import { useState } from "react";
import CardSkeleton from "./card-cart-skeleton";
import { useCartStore } from "../store/cart-store";
import Typography from "@repo/ui/components/typography";
import useCartStore from "../store/cart-store";

const Addtocard = () => {
const { closeAddToCart } = useCartStore();
const { isAddToCartOpen, closeAddToCart, addToCart } = useCartStore();

const [cards, setCards] = useState([
{ id: 1, title: "Traveler - Travel Agency", price: "$15" },
{ id: 2, title: "Explorer - Adventure Company", price: "$20" },
{ id: 3, title: "Explorer - Adventure Company", price: "$20" },
{ id: 1, title: "Traveler - Travel Agency", price: "$15" },
{ id: 4, title: "Explorer - Adventure Company", price: "$20" },
{ id: 5, title: "Explorer - Adventure Company", price: "$20" },
]);
Expand All @@ -28,7 +27,6 @@ const Addtocard = () => {
{ id: 1, title: "temp", price: "t" },
{ id: 1, title: "temp", price: "t" },
{ id: 1, title: "temp", price: "t" },
{ id: 1, title: "temp", price: "t" },
];

const activeTemp = temp.splice(cards.length);
Expand All @@ -37,13 +35,15 @@ const Addtocard = () => {
setCards(cards.filter((card) => card.id !== id));
};

if (!isAddToCartOpen) return null;

return (
<div className="flex w-full bg-background rounded-b-xl overflow-hidden">
<div className="flex w-full bg-background rounded-b-xl">
<div
className="flex fixed -z-10 inset-0 w-full h-full"
onClick={closeAddToCart}
></div>
<div className=" h-full min-w-[472px] overflow-auto p-4 flex flex-col gap-2 scrollbar-hide">
<div className=" max-h-[433px] min-w-[472px] overflow-auto p-4 flex flex-col gap-2 scrollbar-hide">
{cards.map((card) => (
<Card
title={card.title}
Expand All @@ -59,52 +59,49 @@ const Addtocard = () => {
))}
</div>

<div className=" flex flex-col gap-3 p-4 w-[522px]">
<Typography variant="heading/xs" component="p" weight="medium">
Checkout
</Typography>
<div className=" p-4 w-[522px]">
<p className="text-xl font-medium pb-5">Checkout</p>
<div className="flex justify-center gap-3 items-center bg-card p-2 rounded-lg">
<div className="bg-background p-2 rounded-lg flex flex-col items-center justify-center">
<div className="flex flex-col items-center justify-center">
<Metamaskicon size={33} />
<Typography variant="label/sm" component="p" weight="medium">
Metamask
</Typography>
<p className="text-sm font-medium text-foreground">Metamask</p>
</div>
<div className="flex flex-col items-center justify-center grayscale ">
<Tonconnecticon size={33} />
<Typography
variant="label/sm"
component="p"
weight="medium"
className="text-gray-800"
>
Tonconnect
</Typography>
<p className="text-sm font-medium text-gray-800">Tonconnect</p>
</div>
<div className="flex flex-col items-center justify-center grayscale">
<Paypalicon size={33} />
<Typography
variant="label/sm"
component="p"
weight="medium"
className="text-gray-800"
>
Paypal
</Typography>
<p className="text-sm font-medium text-gray-800">Paypal</p>
</div>
</div>
<div className=" flex flex-col gap-3 pb-16">
<div className="relative gap-2 flex items-center">
<div className=" pb-16">
<Label>Email</Label>
<div className="relative flex items-center">
{/* to do : # label container */}
<Input
label="Email"
placeholder="[email protected]"
placeholder="[email protected]"
type="email"
className="bg-input text-muted-foreground"
/>
<span
className="underline absolute right-2 text-sm text-foreground cursor-pointer"
onClick={() => {
// to do : # sign out
}}
>
Sign out
</span>
</div>
<Input label="Full Name" placeholder="Ali Kashef" type="text" />
<Input
label="full name"
placeholder="Ali Kashef"
type="text"
className="bg-input text-muted-foreground"
/>
</div>
<div className="pb-3 w-full">
<Button size="md" className="w-full bg-primary text-white">
<Button size={"lg"} className="w-full bg-primary text-white">
Pay $40
</Button>
</div>
Expand All @@ -117,9 +114,9 @@ const Addtocard = () => {
closeAddToCart();
}}
/>
<Typography variant="label/sm" component="p" weight="medium">
<p className="text-sm font-medium text-foreground">
Your payment is secured by MetaMask
</Typography>
</p>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import { useMegaMenuStore } from "../../store/mega-menu";
import { BottomPartMenu } from "./bottomPart/bottom-part-menu";
import { TopPartMenu } from "./topPart/top-part-menu";
import { RetroGrid } from "@repo/ui/components/retroGrid";

const BrowseMegaMenu = () => {
const { closeMegaMenu } = useMegaMenuStore();
return (
<div className="flex flex-col relative items-center justify-center w-full bg-background px-5 pb-6 rounded-b-xl">
<div
className="flex fixed -z-10 inset-0 w-full h-full"
onClick={closeMegaMenu}
></div>
<RetroGrid className="absolute" opacity={0.1} cellSize={40} angle={50} />
<TopPartMenu />
<BottomPartMenu />
Expand Down
Loading
Loading