From c60ecde0d2b75407113e9dc643ae2f391337487e Mon Sep 17 00:00:00 2001 From: BrightTheBackpack <100brightli@gmail.com> Date: Wed, 18 Dec 2024 01:05:41 -0800 Subject: [PATCH] 12-17 changes Co-authored-by: BRUHisbackbois Co-authored-by: Ryan --- app/components/3box.tsx | 4 ++-- app/components/FAQcard.tsx | 47 ++++++++++++++++++++++++++++++-------- app/components/top.tsx | 4 ++-- app/guide/page.tsx | 5 ++-- app/layout.tsx | 4 ++-- app/page.tsx | 12 ++++++---- tailwind.config.ts | 8 ++++++- 7 files changed, 61 insertions(+), 23 deletions(-) diff --git a/app/components/3box.tsx b/app/components/3box.tsx index 10d67c4..9df934c 100644 --- a/app/components/3box.tsx +++ b/app/components/3box.tsx @@ -43,8 +43,8 @@ const Threebox = () => { textShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)' } }>Design a PCB = ({ question, answer }) => { return ( -
-

- {question} -

-

- {answer} -

-
+ +

{question}

+

{answer}

+
); }; +// Inline styles for the component +const styles = { + card: { + borderRadius: '20px', + padding: '16px', + margin: '16px', + backgroundColor: 'rgba(201, 227, 255, 0.73)', + boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)', + height: ['fill-content', '16vw'], + width: ['60vw', '26vw'], + border: '5px solid rgba(39, 114, 193, 0.42)', + overflow: 'hidden', + }, + question: { + fontSize: 'calc(1.2vw + 1.2vh)', + fontWeight: 790, + color: '#FFFFFF', + textShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)', + paddingLeft: '2%', + }, + answer: { + fontSize: 'calc(0.6vw + 0.6vh)', + color: '#003180', + marginTop: '8px', + textShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)', + fontWeight: 600, + paddingLeft: '2%' + }, +}; + export default FAQcard; \ No newline at end of file diff --git a/app/components/top.tsx b/app/components/top.tsx index a760baf..c04a365 100644 --- a/app/components/top.tsx +++ b/app/components/top.tsx @@ -4,7 +4,7 @@ const ModelViewer = dynamic(() => import('../ModelViewer'), { ssr: false }); const tipitytopity = ()=> { return ( -
+
{typeof window !== 'undefined' && } {/* import('../ModelViewer'), { ssr: false }); transition: 'transform 0.3s ease-in-out', }, }} - /> */} + /> */}h

Hacky Holidays! diff --git a/app/guide/page.tsx b/app/guide/page.tsx index 4be9fd0..2b015f2 100644 --- a/app/guide/page.tsx +++ b/app/guide/page.tsx @@ -47,7 +47,7 @@ export default function guide() { Orpheus Flag - + import("./components/footer"), { ssr: false }); const Top = dynamic(() => import("./components/top"), { ssr: false }); const FAQcard = dynamic(() => import("./components/FAQcard"), { ssr: false }); @@ -19,6 +19,8 @@ export default function Home() { return (
+ + {/* Snowfall effect */} {/* Main Section */} -
+

Want a cool Christmas decoration? A cool gift for someone you know? Design a unique PCB decoration from scratch and submit it via PR to OnBoard before the 30th! Whether it's for Christmas, Hanukkah, New Year's, or any other holiday, once your PR gets approved, you will get your PCB decoration just in time for the celebrations!

@@ -57,10 +59,10 @@ export default function Home() {

{/* FAQ Section */} -
+ -
+

Any more questions? Ask in{" "} diff --git a/tailwind.config.ts b/tailwind.config.ts index 1362b88..4a14734 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -14,5 +14,11 @@ export default { }, }, }, - plugins: [], + plugins: [ + require('@tailwindcss/forms'), + require('@tailwindcss/typography'), + require('@tailwindcss/aspect-ratio'), + require('@tailwindcss/line-clamp'), + require('tailwindcss-filters'), // Make sure this is included + ], } satisfies Config;