Skip to content

Commit 413209f

Browse files
Merge pull request #1 from prakashsingha/setup-and-ui
Setup the app and implement UI
2 parents cc9a3a0 + 33d852f commit 413209f

39 files changed

Lines changed: 10284 additions & 1058 deletions

.stylelintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"rules": {
3+
"at-rule-no-unknown": [
4+
true,
5+
{
6+
"ignoreAtRules": [
7+
"tailwind",
8+
"apply",
9+
"layer",
10+
"config",
11+
"plugin",
12+
"source",
13+
"theme",
14+
"custom-variant",
15+
"utility"
16+
]
17+
}
18+
]
19+
}
20+
}

app/(root)/books/new/page.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import UploadForm from "@/components/UploadForm";
2+
3+
const Page = () => {
4+
return (
5+
<main className="wrapper container">
6+
<div className="mx-auto max-w-180 space-y-10">
7+
<section className="flex flex-col gap-5">
8+
<h1 className="page-title-xl">Add a New Book</h1>
9+
<p className="subtitle">
10+
Upoad a PDF to generate your interactive reading experience
11+
</p>
12+
</section>
13+
14+
<UploadForm />
15+
</div>
16+
</main>
17+
);
18+
};
19+
20+
export default Page;

app/(root)/page.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import BookCard from "@/components/BookCard";
2+
import HeroSection from "@/components/HeroSection";
3+
import { sampleBooks } from "@/lib/constants";
4+
5+
const Page = () => {
6+
return (
7+
<div className="wrapper container">
8+
<HeroSection />
9+
<div className="library-books-grid">
10+
{sampleBooks.map((book) => (
11+
<BookCard key={book._id} {...book} />
12+
))}
13+
</div>
14+
</div>
15+
);
16+
};
17+
18+
export default Page;

0 commit comments

Comments
 (0)