-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47f1918
commit 34f4af3
Showing
4 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe("dark mode", () => { | ||
it("verify a user can toggle between light and dark mode", () => { | ||
cy.visit("/"); | ||
cy.get('[data-testid="moon-icon"]').click(); | ||
cy.get('[data-testid="light-toggle"]').click(); | ||
cy.get('[data-testid="moon-icon"]').should("not.be.visible"); | ||
cy.get('[data-testid="sun-icon"]').should("be.visible"); | ||
|
||
cy.get('[data-testid="dark-toggle"]').click(); | ||
cy.get('[data-testid="moon-icon"]').should("be.visible"); | ||
cy.get('[data-testid="sun-icon"]').should("not.be.visible"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
import Link from "next/link"; | ||
|
||
export default async function Page() { | ||
return ( | ||
<main className="flex flex-col items-center justify-between p-12"> | ||
<h1>Pantry Tracker</h1> | ||
|
||
<p>Add landing page at one point</p> | ||
<div className="mx-auto max-w-2xl py-32 sm:py-48 lg:py-56"> | ||
<div className="text-center"> | ||
<h1 className="text-white text-4xl font-bold tracking-tight sm:text-6xl"> | ||
Streamline Your Kitchen Inventory with Ease | ||
</h1> | ||
<p className="mt-6 text-lg leading-8 text-gray-300"> | ||
Effortless Pantry Management for Smart Food Tracking and Worry-Free | ||
Meal Planning | ||
</p> | ||
<div className="mt-10 flex items-center justify-center gap-x-6"> | ||
<Link | ||
href="/dashboard" | ||
className="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" | ||
> | ||
Get started | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters