Skip to content

Commit bcdabee

Browse files
committed
changes
1 parent 9724702 commit bcdabee

15 files changed

Lines changed: 1455 additions & 348 deletions

apps/web/app/globals.css

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,81 @@
1-
@import 'tailwindcss';
2-
@import '@repo/tailwind-config';
3-
@import '@repo/web-ui/styles.css';
4-
5-
.preview-right-panel{
6-
@media (max-width: 768px) {
7-
margin-top: 10px;
8-
}
1+
@import "tailwindcss";
2+
@import "@repo/tailwind-config";
3+
@import "@repo/web-ui/styles.css";
4+
.preview-left-panel input,
5+
.preview-left-panel textarea,
6+
.preview-left-panel select {
7+
background-color: rgb(255, 255, 255);
8+
color: rgb(4, 36, 59);
9+
}
10+
.preview-left-panel {
11+
border: 1px solid rgb(118, 118, 118);
12+
background-color: #00ddff;
13+
color: rgb(255, 255, 255);
14+
padding: 10px;
15+
width: 100%;
16+
max-height: 90vh;
17+
max-width: 300px;
18+
overflow: scroll;
19+
@media (max-width: 768px) {
20+
max-width: 100%;
21+
}
22+
}
23+
24+
.preview-heading {
25+
color: #193243;
26+
font-weight: bold;
27+
font-size: 2em;
28+
@media (max-width: 600px) {
29+
font-size: 1.6em;
30+
}
31+
}
32+
.stats-info {
33+
background-color: #000000;
34+
color: white;
35+
display: inline-block;
36+
margin-right: 8px;
37+
padding: 4px 8px;
38+
border-radius: 4px;
39+
font-size: 0.8em;
40+
user-select: none;
41+
pointer-events: none;
42+
margin-bottom: 4px;
43+
}
44+
45+
.preview-right-panel {
46+
position: relative;
47+
border: 0.1rem solid rgb(0, 48, 63);
48+
padding: 10px;
49+
width: 100%;
50+
overflow: scroll;
51+
@media (max-width: 768px) {
52+
margin-top: 10px;
53+
}
54+
}
55+
.preview-container-drag {
56+
border: 0.1rem solid rgb(5, 234, 255);
57+
position: relative;
58+
}
59+
60+
.stats-info-button {
61+
margin-bottom: 4px;
62+
background-color: #00ddff;
63+
color: white;
64+
display: inline-block;
65+
margin-right: 8px;
66+
padding: 4px 8px;
67+
border-radius: 4px;
68+
font-size: 0.8em;
69+
cursor: pointer;
70+
border: none;
71+
user-select: none;
72+
}
73+
.stats-info-button:hover {
74+
background-color: #242424;
75+
}
76+
77+
.scaleTwoX {
78+
transform: scale(2);
79+
width: fit-content;
80+
height: fit-content;
981
}

apps/web/app/page.tsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
"use client";
22
import { MainHomeLayout } from "@repo/web-ui/layout";
3-
import { useState } from "react";
4-
import './page.module.css';
3+
import React, { useState } from "react";
4+
import "./page.module.css";
55
import QuizMarkdownEditor from "../components/markdown-editor";
66
import ChatgptEditor from "../components/chatgpt-editor";
7+
import GradientEditor from "../components/gradient-editor";
8+
import { CardSizeProvider } from "@repo/ui/context/CardSizeContext";
9+
710
const tabs = [
811
{
912
key: "markdown",
@@ -12,16 +15,24 @@ const tabs = [
1215
{
1316
key: "chatgpt",
1417
label: "ChatGPT Card",
15-
},
18+
}
19+
// ,
20+
// {
21+
// key: "gradient",
22+
// label: "Gradient Card",
23+
// },
1624
];
1725

1826
export default function Home() {
1927
const [tab, setTab] = useState("markdown");
2028

2129
return (
2230
<MainHomeLayout tab={tab} tabs={tabs} setTab={setTab}>
23-
{tab === "markdown" ? <QuizMarkdownEditor /> : null}
24-
{tab === "chatgpt" ? <ChatgptEditor /> : null}
31+
<CardSizeProvider>
32+
{tab === "markdown" ? <QuizMarkdownEditor /> : null}
33+
{tab === "chatgpt" ? <ChatgptEditor /> : null}
34+
{/* {tab === "gradient" ? <GradientEditor /> : null} */}
35+
</CardSizeProvider>
2536
</MainHomeLayout>
2637
);
27-
}
38+
}

0 commit comments

Comments
 (0)