Skip to content

Commit 5b2ade7

Browse files
authored
Merge pull request #249 from Markkos89/staging
Staging last update from production
2 parents 7914f2c + d9bca82 commit 5b2ade7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1093
-808
lines changed

index-original-example.txt

Lines changed: 0 additions & 229 deletions
This file was deleted.

prisma/schema.prisma

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ model CompletedQuizzes {
5151

5252
model Lessons {
5353
id String @id @default(cuid())
54-
lessonNumber Int @unique @default(autoincrement())
54+
projectLessonNumber Int? @unique
55+
fundamentalLessonName String?
5556
quizFileName String
5657
}

prisma/seed.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ async function main() {
1515
// },
1616
// });
1717
// console.log({ user });
18-
// const newLesson = await prisma.lessons.create({
19-
// data: {
20-
// quizFileName: "quiz-lesson-4.json",
21-
// },
22-
// });
23-
// console.log({ newLesson });
18+
const newLesson = await prisma.lessons.create({
19+
data: {
20+
quizFileName: "quiz-eth-intro-1.json",
21+
projectLessonNumber: null,
22+
fundamentalLessonName: "eth-intro-part-1",
23+
},
24+
});
25+
console.log({ newLesson });
2426
// const deletedCompletedLog = await prisma.completedQuizzes.deleteMany({});
2527
// console.log({ deletedCompletedLog });
2628
// const completed2 = await prisma.completedQuizzes.create({
@@ -31,6 +33,14 @@ async function main() {
3133
// },
3234
// });
3335
// console.log({ completed2 });
36+
// const updateLesson2 = await prisma.lessons.update({
37+
// where: { id: "clm60bwug00001w43vws1c3iv" },
38+
// data: {
39+
// quizFileName: "quiz-lesson-2.json",
40+
// lessonNumber: 2,
41+
// },
42+
// });
43+
// console.log({ updateLesson2 });
3444
}
3545

3646
main()

public/assets/foundry.png

14.2 KB
Loading
60.7 KB
Loading
50.1 KB
Loading
121 KB
Loading
126 KB
Loading
546 KB
Loading

src/components/Banner.tsx

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import { Center, Flex, Text, chakra } from "@chakra-ui/react";
2+
import { CloseIcon } from "@chakra-ui/icons";
3+
4+
const Banner = () => {
5+
const dismissBanner = () => {
6+
localStorage.setItem("bannerDismissed", "true");
7+
const banner = document.getElementById("banner");
8+
if (banner) {
9+
banner.style.display = "none";
10+
}
11+
};
12+
13+
return (
14+
<Center
15+
py="2"
16+
px="3"
17+
bgGradient="linear(to-r,cyan.700, purple.500)"
18+
color="white"
19+
textAlign="center"
20+
id="banner"
21+
>
22+
<Flex align="center" fontSize="sm">
23+
<Text fontWeight="medium" maxW={{ base: "32ch", md: "unset" }}>
24+
Acamdey V2 is coming soon 👀... Subscribe to our newsletter for
25+
updates!
26+
</Text>
27+
<chakra.a
28+
flexShrink={0}
29+
href="https://developerdao.substack.com/s/probably-nothing"
30+
target="_blank"
31+
ms="6"
32+
bg="blackAlpha.300"
33+
color="whiteAlpha.900"
34+
fontWeight="semibold"
35+
px="3"
36+
py="1"
37+
rounded="base"
38+
>
39+
Subscribe now!{" "}
40+
</chakra.a>
41+
<chakra.button
42+
onClick={dismissBanner}
43+
ms="6"
44+
color="whiteAlpha.900"
45+
fontWeight="semibold"
46+
px="3"
47+
py="1"
48+
rounded="base"
49+
>
50+
<CloseIcon />
51+
</chakra.button>
52+
</Flex>
53+
</Center>
54+
);
55+
};
56+
57+
export default Banner;

0 commit comments

Comments
 (0)