Compare commits
No commits in common. "main" and "animations2" have entirely different histories.
main
...
animations
14 changed files with 65 additions and 272 deletions
|
@ -1,29 +1,25 @@
|
||||||
import { ClipboardDocumentListIcon, DocumentTextIcon } from '@heroicons/react/24/outline';
|
import { DocumentTextIcon } from '@heroicons/react/24/outline';
|
||||||
import Logo from '../components/logo';
|
import Logo from '../components/logo';
|
||||||
import TopicCard from '../components/topic_card';
|
import TopicCard from '../components/topic_card';
|
||||||
import LinkButton from '../components/link-button';
|
|
||||||
{/*Index of people and their respective image and title*/}
|
|
||||||
const people = [
|
const people = [
|
||||||
{
|
{
|
||||||
name: 'Andrei Banu',
|
name: 'Andrei Banu',
|
||||||
role: 'UI/UX designer',
|
role: 'UI/UX designer',
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'arch.png',
|
'arch.png',
|
||||||
email: 'mailto:child1.andy@gmail.com'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Ioan Cristian Chelaru',
|
name: 'Ioan Cristian Chelaru',
|
||||||
role: 'UI/UX designer',
|
role: 'UI/UX designer',
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'blahaj.avif',
|
'blahaj.avif',
|
||||||
email: 'mailto:iccjoc@proton.me'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Alexandru Gabriel Stan',
|
name: 'Alexandru Gabriel Stan',
|
||||||
role: 'Backend & UI developer',
|
role: 'Back end developer',
|
||||||
imageUrl:
|
imageUrl:
|
||||||
'alex.png',
|
'alex.png',
|
||||||
email: 'mailto:alex.stan.2010@proton.me'
|
|
||||||
},
|
},
|
||||||
// More people...
|
// More people...
|
||||||
]
|
]
|
||||||
|
@ -31,7 +27,6 @@ const people = [
|
||||||
export default function Example() {
|
export default function Example() {
|
||||||
return (
|
return (
|
||||||
<div className="sm:py-32">
|
<div className="sm:py-32">
|
||||||
{/*Background visuals*/}
|
|
||||||
<div
|
<div
|
||||||
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
@ -43,24 +38,16 @@ const people = [
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
|
||||||
style={{
|
|
||||||
clipPath:
|
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<Logo/>
|
<Logo/>
|
||||||
<div style={{paddingBottom: '100px'}}></div>
|
<div style={{paddingBottom: '100px'}}></div>
|
||||||
<div className="mx-auto grid max-w-7xl gap-x-8 gap-y-20 px-6 lg:px-8 xl:grid-cols-3"> {/*Team presentation text*/}
|
<div className="mx-auto grid max-w-7xl gap-x-8 gap-y-20 px-6 lg:px-8 xl:grid-cols-3">
|
||||||
<div className="max-w-2xl">
|
<div className="max-w-2xl">
|
||||||
<h2 className="text-3xl font-bold tracking-tight text-gray-200 sm:text-4xl">Meet our developers</h2>
|
<h2 className="text-3xl font-bold tracking-tight text-gray-200 sm:text-4xl">Meet our developers</h2>
|
||||||
<p className="mt-6 text-lg leading-8 text-gray-200">
|
<p className="mt-6 text-lg leading-8 text-gray-200">
|
||||||
We are a group of passionate middle schoolers that got together to hopefully make a difference in the world
|
We are a group of passionate middle schoolers that got togather to hopefully make a difference in the world
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{/*Display people*/}
|
|
||||||
<ul role="list" className="grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2">
|
<ul role="list" className="grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2">
|
||||||
{people.map((person) => (
|
{people.map((person) => (
|
||||||
<li key={person.name}>
|
<li key={person.name}>
|
||||||
|
@ -69,7 +56,6 @@ const people = [
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-base font-semibold leading-7 tracking-tight text-gray-200">{person.name}</h3>
|
<h3 className="text-base font-semibold leading-7 tracking-tight text-gray-200">{person.name}</h3>
|
||||||
<p className="text-sm font-semibold leading-6 text-indigo-200">{person.role}</p>
|
<p className="text-sm font-semibold leading-6 text-indigo-200">{person.role}</p>
|
||||||
<LinkButton text="Send mail" href={person.email}/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -77,32 +63,29 @@ const people = [
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<br></br>
|
<br></br>
|
||||||
{/*Licence and source code buttons*/}
|
|
||||||
<div
|
<div
|
||||||
style={{display:"flex", alignItems: 'center', alignSelf:'center', justifyContent: 'center', marginLeft: "40px", marginRight: "40px"}}
|
style={{display:"flex", alignItems: 'center', justifyContent: 'center', marginLeft: "40px", marginRight: "40px"}}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="https://git.gra.phite.ro/BlahajTeam/next-app"
|
href="https://git.gra.phite.ro/BlahajTeam/next-app"
|
||||||
className="rounded-md text-sm font-semibold text-gray-200 shadow-sm hover:text-gray-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
className="rounded-md text-sm font-semibold text-gray-200 shadow-sm hover:text-gray-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
||||||
style={{minWidth: '190px', maxWidth: '190px', paddingLeft: '50px', paddingRight: '50px', paddingTop: '20px', paddingBottom: '20px', alignSelf: 'center'}}
|
style={{maxWidth: '250px', paddingLeft: '50px', paddingRight: '50px', paddingTop: '20px', paddingBottom: '20px', alignSelf: 'center'}}
|
||||||
>
|
>
|
||||||
<DocumentTextIcon></DocumentTextIcon>
|
<DocumentTextIcon></DocumentTextIcon>
|
||||||
Source Code
|
Source Code
|
||||||
</a>
|
</a>
|
||||||
<a
|
|
||||||
href="https://git.gra.phite.ro/BlahajTeam/next-app/src/branch/main/LICENSE"
|
|
||||||
className="rounded-md text-sm font-semibold text-gray-200 shadow-sm hover:text-gray-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
|
||||||
style={{minWidth: '190px', maxWidth: '190px', paddingLeft: '50px', paddingRight: '50px', paddingTop: '20px', paddingBottom: '20px', alignSelf: 'center'}}
|
|
||||||
>
|
|
||||||
<ClipboardDocumentListIcon></ClipboardDocumentListIcon>
|
|
||||||
Our Licence
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
||||||
|
style={{
|
||||||
|
clipPath:
|
||||||
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
'use client';
|
|
||||||
import { motion } from "framer-motion"
|
|
||||||
import { useState } from "react";
|
|
||||||
|
|
||||||
const LinkButton = ({text, href, onPress}: {text: string, href: string, onPress?: () => any}) => {
|
|
||||||
const [buttonHovered, setButtonHovered] = useState( false );
|
|
||||||
const [buttonPressed, setButtonPressed] = useState( false );
|
|
||||||
return (
|
|
||||||
<div className="mt-10 flex items-center justify-center gap-x-6 lg:justify-start">
|
|
||||||
<motion.a
|
|
||||||
href={href}
|
|
||||||
className="rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
|
||||||
style={{ marginBottom: '40px' }}
|
|
||||||
animate={{opacity: buttonHovered ? 0.8 : 1}}
|
|
||||||
onMouseEnter={()=>setButtonHovered(true)}
|
|
||||||
onMouseLeave={()=>setButtonHovered(false)}
|
|
||||||
onClick={()=>{setButtonPressed(true); onPress && onPress();}}
|
|
||||||
>
|
|
||||||
{text}
|
|
||||||
</motion.a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default LinkButton;
|
|
|
@ -1,8 +1,6 @@
|
||||||
'use client';
|
'use client';
|
||||||
import { Transition } from "@headlessui/react";
|
import { Transition } from "@headlessui/react";
|
||||||
import { motion } from "framer-motion";
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import LinkButton from "./link-button";
|
|
||||||
|
|
||||||
const Logo = () => {
|
const Logo = () => {
|
||||||
|
|
||||||
|
@ -20,24 +18,20 @@ const Logo = () => {
|
||||||
leave="transition-opacity duration-75"
|
leave="transition-opacity duration-75"
|
||||||
leaveFrom={logoHovered ? "opacity-70" : "opacity-100"}
|
leaveFrom={logoHovered ? "opacity-70" : "opacity-100"}
|
||||||
leaveTo={logoHovered ? "opacity-100" : "opacity-70"}> */}
|
leaveTo={logoHovered ? "opacity-100" : "opacity-70"}> */}
|
||||||
<motion.a href="/" style={{ marginBottom: '40px', marginLeft: '40px'}} animate={{opacity: logoHovered ? 0.7 : 1}}
|
<a href="/" style={{ marginBottom: '40px', marginLeft: '40px', transition: 'opacity', opacity: logoHovered ? 0.7 : 1 , animationDuration: '0.3s'}}
|
||||||
onMouseEnter={()=>setLogoHovered(true)}
|
onMouseEnter={()=>setLogoHovered(true)}
|
||||||
onMouseLeave={()=>setLogoHovered(false)}>
|
onMouseLeave={()=>setLogoHovered(false)}>
|
||||||
<img src="/logo-no-background.png" height="auto" width="400px"/>
|
<img src="/logo-no-background.png" height="auto" width="400px"/>
|
||||||
</motion.a>
|
</a>
|
||||||
{/* </Transition> */}
|
{/* </Transition> */}
|
||||||
<div style={{ marginBottom: '40px', marginRight: '50px' }}></div>
|
<div style={{ marginBottom: '40px', marginRight: '40px' }}></div>
|
||||||
{/* <motion.a
|
<a
|
||||||
href="/about-us"
|
href="/about-us"
|
||||||
className="rounded-md bg-white text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
className="rounded-md bg-white text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
||||||
style={{ marginBottom: '40px', marginRight: '40px', padding: '10px' }}
|
style={{ marginBottom: '40px', marginRight: '40px', padding: '10px' }}
|
||||||
animate={{opacity: aboutButtonHovered ? 0.8 : 1}}
|
|
||||||
onMouseEnter={()=>setAboutButtonHovered(true)}
|
|
||||||
onMouseLeave={()=>setAboutButtonHovered(false)}
|
|
||||||
>
|
>
|
||||||
About us
|
About us
|
||||||
</motion.a> */}
|
</a>
|
||||||
<LinkButton text="About us" href="/about-us"/>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import { ReactComponentElement, ReactNode, useEffect } from "react";
|
import { ReactComponentElement, ReactNode } from "react";
|
||||||
import { AnswerType, Question } from "../lib/question";
|
import { AnswerType, Question } from "../lib/question";
|
||||||
import { SessionState } from "../lib/session";
|
import { SessionState } from "../lib/session";
|
||||||
import { CheckCircleIcon, XCircleIcon } from "@heroicons/react/24/outline";
|
import { CheckCircleIcon, XCircleIcon } from "@heroicons/react/24/outline";
|
||||||
import { Button, Transition } from "@headlessui/react";
|
import { Button, Transition } from "@headlessui/react";
|
||||||
import wait from "../lib/delay";
|
|
||||||
import { motion } from "framer-motion";
|
|
||||||
|
|
||||||
const QuestionView = ({ question, setState, state }: { question: Question, setState: any, state: SessionState }) => {
|
const QuestionView = ({ question, setState, state }: { question: Question, setState: any, state: SessionState }) => {
|
||||||
|
|
||||||
|
@ -18,10 +16,6 @@ const QuestionView = ({ question, setState, state }: { question: Question, setSt
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect( () => {
|
|
||||||
wait( 1000 );
|
|
||||||
}, [] );
|
|
||||||
|
|
||||||
const handleAnswerClick = (right: boolean) => {
|
const handleAnswerClick = (right: boolean) => {
|
||||||
setState( (prevState: SessionState) => ({
|
setState( (prevState: SessionState) => ({
|
||||||
...prevState,
|
...prevState,
|
||||||
|
@ -53,16 +47,14 @@ const QuestionView = ({ question, setState, state }: { question: Question, setSt
|
||||||
{question.text}
|
{question.text}
|
||||||
</h1>
|
</h1>
|
||||||
</Transition>
|
</Transition>
|
||||||
{/* <Transition
|
<Transition
|
||||||
show={(question && state.opened[ question.id ]) ? true : false}
|
show={(question && state.opened[ question.id ]) ? true : false}
|
||||||
enter="transition-opacity duration-300"
|
enter="transition-opacity duration-300"
|
||||||
enterFrom="opacity-0"
|
enterFrom="opacity-0"
|
||||||
enterTo="opacity-90"
|
enterTo="opacity-90"
|
||||||
leave="transition-opacity duration-150"
|
leave="transition-opacity duration-150"
|
||||||
leaveFrom="opacity-90"
|
leaveFrom="opacity-90"
|
||||||
leaveTo="opacity-0"> */}
|
leaveTo="opacity-0">
|
||||||
{/* <motion.div animate={{visibility: ((question && state.opened[ question.id ]) ? "visible" : "collapse") }}> */}
|
|
||||||
<motion.div animate={(question && state.opened[ question.id ]) ? {visibility: "visible", opacity: 1} : {visibility: "collapse", opacity: 0}}>
|
|
||||||
<div><p className="mt-6 text-lg leading-8 text-gray-200">
|
<div><p className="mt-6 text-lg leading-8 text-gray-200">
|
||||||
{question.answer}
|
{question.answer}
|
||||||
</p>
|
</p>
|
||||||
|
@ -84,22 +76,22 @@ const QuestionView = ({ question, setState, state }: { question: Question, setSt
|
||||||
<button
|
<button
|
||||||
onClick={() => { handleAnswerClick( true )}}
|
onClick={() => { handleAnswerClick( true )}}
|
||||||
className="rounded-md bg-green-600 px-3.5 py-2.5 text-s font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
className="rounded-md bg-green-600 px-3.5 py-2.5 text-s font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
||||||
style={{minWidth:'40%', minHeight:'40%', maxWidth:'40%', maxHeight:'40%'}}
|
style={{width:'30%', height:'30%'}}
|
||||||
>
|
>
|
||||||
<CheckCircleIcon></CheckCircleIcon>
|
<CheckCircleIcon></CheckCircleIcon>
|
||||||
I knew that!
|
I knew that!
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={() => {handleAnswerClick( false )}}
|
onClick={() => {handleAnswerClick( false )}}
|
||||||
className="rounded-md bg-red-600 px-3.5 py-2.5 text-s font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
className="rounded-md bg-red-600 px-3.5 py-2.5 text-xs font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
||||||
style={{minWidth:'40%', minHeight:'40%', maxWidth:'40%', maxHeight:'40%'}}
|
style={{width:'30%', height:'30%'}}
|
||||||
>
|
>
|
||||||
<XCircleIcon></XCircleIcon>
|
<XCircleIcon></XCircleIcon>
|
||||||
I didn't know!
|
I didn't know that!
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</Transition>
|
||||||
<Transition
|
<Transition
|
||||||
show={(question && (state.opened[ question.id ])) ? false : true}
|
show={(question && (state.opened[ question.id ])) ? false : true}
|
||||||
enter="transition-opacity duration-300"
|
enter="transition-opacity duration-300"
|
||||||
|
@ -108,7 +100,7 @@ const QuestionView = ({ question, setState, state }: { question: Question, setSt
|
||||||
leave="transition-opacity duration-150"
|
leave="transition-opacity duration-150"
|
||||||
leaveFrom="opacity-90"
|
leaveFrom="opacity-90"
|
||||||
leaveTo="opacity-0">
|
leaveTo="opacity-0">
|
||||||
<Button className="leading-6 text-black back rounded-md bg-white text-sm font-semibold text-gray-900" onClick={handleOpenClick} style = {{padding: '5px'}}>
|
<Button className="text-sm font-semibold leading-6 text-gray-200" onClick={handleOpenClick}>
|
||||||
Show answer
|
Show answer
|
||||||
</Button>
|
</Button>
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { CheckIcon, XMarkIcon, QuestionMarkCircleIcon, FingerPrintIcon, LockClosedIcon } from '@heroicons/react/24/outline'
|
import { CheckIcon, XMarkIcon, QuestionMarkCircleIcon, FingerPrintIcon, LockClosedIcon } from '@heroicons/react/24/outline'
|
||||||
import Logo from './logo';
|
import Logo from './logo';
|
||||||
import { SessionState } from '../lib/session';
|
import { SessionState } from '../lib/session';
|
||||||
import LinkButton from './link-button';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const features = [
|
const features = [
|
||||||
|
@ -82,17 +81,16 @@ const ResultScreen = ({state}: {state: SessionState}) => {
|
||||||
))} */}
|
))} */}
|
||||||
<Result name="Correct Answers" key="correct" text1="Congrats for your" number={state.right} text2="correctly answered questions! Great job!" Icon={CheckIcon}/>
|
<Result name="Correct Answers" key="correct" text1="Congrats for your" number={state.right} text2="correctly answered questions! Great job!" Icon={CheckIcon}/>
|
||||||
<Result name="Wrong Answers" key="wrong" text1="You had" number={state.wrong} text2="wrong answers... It's never too late to learn!" Icon={XMarkIcon}/>
|
<Result name="Wrong Answers" key="wrong" text1="You had" number={state.wrong} text2="wrong answers... It's never too late to learn!" Icon={XMarkIcon}/>
|
||||||
<Result name="Total Answers" key="total" text1="The" number={state.answered} text2="questions you answered surely helped you learn more." Icon={QuestionMarkCircleIcon}/>
|
<Result name="Total answers" key="total" text1="The" number={state.answered} text2="questions you answered surely helped you learn more." Icon={QuestionMarkCircleIcon}/>
|
||||||
</dl>
|
</dl>
|
||||||
<br></br>
|
<br></br>
|
||||||
{/* <a
|
<a
|
||||||
href="/sessionconfig"
|
href="sessionconfig"
|
||||||
className="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-gray-100 shadow-sm hover:bg-indigo-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
className="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-gray-100 shadow-sm hover:bg-indigo-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
||||||
style={{ marginTop: '100px' }}
|
style={{ marginTop: '100px' }}
|
||||||
>
|
>
|
||||||
Go Back
|
Go Back
|
||||||
</a> */}
|
</a>
|
||||||
<LinkButton text="Learn about another topic" href="/sessionconfig"/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
'use client';
|
import { PlayIcon } from '@heroicons/react/24/outline'
|
||||||
import { motion } from 'framer-motion';
|
|
||||||
import { useState } from 'react';
|
|
||||||
import LinkButton from './link-button';
|
|
||||||
const TopicCard = ({ title, children, link }: { title: string, children: any, link: string }) => {
|
const TopicCard = ({ title, children, link }: { title: string, children: any, link: string }) => {
|
||||||
const [clicked, setClicked] = useState( false );
|
|
||||||
const [hovered, setHovered] = useState( false );
|
|
||||||
return(
|
return(
|
||||||
<motion.div className="mx-auto mt-16 max-w-2xl rounded-3xl sm:mt-20 lg:mx-0 lg:flex lg:max-w-none relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:rounded-3xl sm:px-16 md:pt-24 lg:flex lg:gap-x-20 lg:px-24 lg:pt-0" style={{marginTop: '20px', paddingTop: '0px', paddingBottom: '24px'}}
|
<div className="mx-auto mt-16 max-w-2xl rounded-3xl sm:mt-20 lg:mx-0 lg:flex lg:max-w-none relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:rounded-3xl sm:px-16 md:pt-24 lg:flex lg:gap-x-20 lg:px-24 lg:pt-0" style={{marginTop: '20px', paddingTop: '0px', paddingBottom: '24px'}}>
|
||||||
animate={{x: hovered? 10 : 0, opacity: clicked ? 0.5 : 1 }} onMouseEnter={()=>setHovered(true)} onMouseLeave={()=>setHovered(false)}>
|
|
||||||
<svg
|
<svg
|
||||||
viewBox="0 0 1024 1024"
|
viewBox="0 0 1024 1024"
|
||||||
className="absolute left-1/2 top-1/2 -z-10 h-[64rem] w-[64rem] -translate-y-1/2 [mask-image:radial-gradient(closest-side,white,transparent)] sm:left-full sm:-ml-80 lg:left-1/2 lg:ml-0 lg:-translate-x-1/2 lg:translate-y-0"
|
className="absolute left-1/2 top-1/2 -z-10 h-[64rem] w-[64rem] -translate-y-1/2 [mask-image:radial-gradient(closest-side,white,transparent)] sm:left-full sm:-ml-80 lg:left-1/2 lg:ml-0 lg:-translate-x-1/2 lg:translate-y-0"
|
||||||
|
@ -31,17 +25,16 @@ const TopicCard = ({ title, children, link }: { title: string, children: any, li
|
||||||
className="-mt-2 p-2 lg:mt-0 lg:max-w-md lg:flex-shrink-0 lg:flex lg:flex-col lg:justify-center"
|
className="-mt-2 p-2 lg:mt-0 lg:max-w-md lg:flex-shrink-0 lg:flex lg:flex-col lg:justify-center"
|
||||||
style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}
|
style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}
|
||||||
>
|
>
|
||||||
{/* <a
|
<a
|
||||||
href={link}
|
href={link}
|
||||||
className="rounded-md text-sm font-semibold border text-gray-200 shadow-sm hover:text-gray-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
className="mt-10 block w-full rounded-md bg-blue-500 text-center 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"
|
||||||
style={{ paddingLeft: '50px', paddingRight: '50px', paddingTop: '20px', paddingBottom: '20px'}}
|
style={{ paddingLeft: '50px', paddingRight: '50px', paddingTop: '20px', paddingBottom: '20px'}}
|
||||||
>
|
>
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
</a> */}
|
</a>
|
||||||
<LinkButton text="Begin" href={link} onPress={()=>setClicked(true)}/>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,15 +92,8 @@ const Page = ({ params }: { params: { category: string }}) => {
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
|
||||||
style={{
|
|
||||||
clipPath:
|
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div style={{paddingTop: '72px'}}></div>
|
||||||
|
|
||||||
{(()=>{
|
{(()=>{
|
||||||
if ( !questions[ 0 ] )
|
if ( !questions[ 0 ] )
|
||||||
|
@ -114,7 +107,13 @@ const Page = ({ params }: { params: { category: string }}) => {
|
||||||
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
||||||
|
style={{
|
||||||
|
clipPath:
|
||||||
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,87 +0,0 @@
|
||||||
import { CheckIcon } from '@heroicons/react/20/solid'
|
|
||||||
import TopicCard from '../components/topic_card'
|
|
||||||
import Logo from '../components/logo';
|
|
||||||
import { Transition } from '@headlessui/react';
|
|
||||||
|
|
||||||
const includedFeatures = [
|
|
||||||
'Private forum access',
|
|
||||||
'Member resources',
|
|
||||||
'Entry to annual conference',
|
|
||||||
'Official member t-shirt',
|
|
||||||
]
|
|
||||||
|
|
||||||
export default function Example() {
|
|
||||||
|
|
||||||
//List of topics
|
|
||||||
const cards = [
|
|
||||||
["Learn cybersecurity", "Learning cybersecurity is like becoming a guardian of the digital realm.\nIt's about mastering the art of protecting information, systems, and networks from cyber threats.\nFrom understanding encryption algorithms to detecting malware, every lesson equips you with tools to fortify against cyber-attacks.", "/learn/cybersec" ],
|
|
||||||
["Learn geography", "Geography is the study of our world's intricate tapestry — from the towering peaks of the Himalayas to the vast expanse of the Sahara Desert. It's about understanding the relationships between people, places, and the environment.", "/learn/geography"],
|
|
||||||
["Learn CPP", "As a powerful, versatile language, CPP teaches you the fundamentals of object-oriented programming while offering fine-grained control over system resources. You'll explore concepts like classes, inheritance, and polymorphism, alongside memory management and pointers.", "/learn/cpp"]
|
|
||||||
];
|
|
||||||
return (
|
|
||||||
|
|
||||||
<div className="py-24 sm:py-32" style = {{ alignItems: 'center', justifyContent: 'center' }}>
|
|
||||||
{/*Background*/}
|
|
||||||
<div
|
|
||||||
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
|
||||||
aria-hidden="true"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
|
|
||||||
style={{
|
|
||||||
clipPath:
|
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
|
||||||
style={{
|
|
||||||
clipPath:
|
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
{/*The logo*/}
|
|
||||||
<Logo/>
|
|
||||||
<div style={{paddingTop: '128px'}}></div>
|
|
||||||
<div className="mx-auto max-w-7xl px-6 lg:px-8">
|
|
||||||
<Transition
|
|
||||||
appear={true}
|
|
||||||
show={true}
|
|
||||||
enter="transition-opacity duration-300"
|
|
||||||
enterFrom="opacity-0"
|
|
||||||
enterTo="opacity-80">
|
|
||||||
<div>
|
|
||||||
{ cards.map((elem) => {
|
|
||||||
return (
|
|
||||||
<TopicCard title={elem[0]} link={elem[2]}>{elem[1]}</TopicCard>
|
|
||||||
)})}
|
|
||||||
</div>
|
|
||||||
</Transition>
|
|
||||||
{/*
|
|
||||||
<TopicCard title = "Learn cybersecurity">
|
|
||||||
Learning cybersecurity is like becoming a guardian of the digital realm.
|
|
||||||
It's about mastering the art of protecting information, systems, and networks from cyber threats.
|
|
||||||
From understanding encryption algorithms to detecting malware, every lesson equips you with tools to fortify against cyber-attacks.
|
|
||||||
</TopicCard>
|
|
||||||
<TopicCard title = "Learn geography">
|
|
||||||
Learning cybersecurity is like becoming a guardian of the digital realm.
|
|
||||||
It's about mastering the art of protecting information, systems, and networks from cyber threats.
|
|
||||||
From understanding encryption algorithms to detecting malware, every lesson equips you with tools to fortify against cyber-attacks.
|
|
||||||
</TopicCard>
|
|
||||||
<TopicCard title = "Learn C++">
|
|
||||||
Learning cybersecurity is like becoming a guardian of the digital realm.
|
|
||||||
It's about mastering the art of protecting information, systems, and networks from cyber threats.
|
|
||||||
From understanding encryption algorithms to detecting malware, every lesson equips you with tools to fortify against cyber-attacks.
|
|
||||||
</TopicCard>
|
|
||||||
*/}
|
|
||||||
</div>
|
|
||||||
{/*Background*/}
|
|
||||||
<div
|
|
||||||
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
|
||||||
aria-hidden="true"
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
const wait = (time: number): Promise<void> => {
|
|
||||||
return new Promise( res => setTimeout( res, time ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
export default wait;
|
|
32
app/page.tsx
32
app/page.tsx
|
@ -1,18 +1,14 @@
|
||||||
'use client';
|
|
||||||
import { Fragment, useState } from 'react'
|
import { Fragment } from 'react'
|
||||||
import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react'
|
import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react'
|
||||||
import { ChevronDownIcon } from '@heroicons/react/20/solid'
|
import { ChevronDownIcon } from '@heroicons/react/20/solid'
|
||||||
import Logo from './components/logo';
|
import Logo from './components/logo';
|
||||||
import { motion } from 'framer-motion';
|
|
||||||
import LinkButton from './components/link-button';
|
|
||||||
function classNames(...classes) {
|
function classNames(...classes) {
|
||||||
return classes.filter(Boolean).join(' ')
|
return classes.filter(Boolean).join(' ')
|
||||||
}
|
}
|
||||||
export default function Example() {
|
export default function Example() {
|
||||||
const [buttonPressed, setButtonPressed] = useState( false );
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{/*Background visual elements*/}
|
|
||||||
<div
|
<div
|
||||||
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
@ -24,25 +20,15 @@ export default function Example() {
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
|
||||||
style={{
|
|
||||||
clipPath:
|
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div style={{paddingTop: '128px'}}></div>
|
<div style={{paddingTop: '128px'}}></div>
|
||||||
<Logo/>
|
<Logo/>
|
||||||
<Transition
|
<Transition
|
||||||
appear={true}
|
appear={true}
|
||||||
show={!buttonPressed}
|
show={true}
|
||||||
enter="transition-opacity duration-500"
|
enter="transition-opacity duration-500"
|
||||||
enterFrom="opacity-0"
|
enterFrom="opacity-0"
|
||||||
enterTo="opacity-80"
|
enterTo="opacity-80">
|
||||||
leave="transition-opacity duration-150"
|
|
||||||
leaveFrom="opacity-80"
|
|
||||||
leaveTo="opacity-0">
|
|
||||||
<div className="mx-auto max-w-7xl py-24 sm:px-6 sm:py-32 lg:px-8">
|
<div className="mx-auto max-w-7xl py-24 sm:px-6 sm:py-32 lg:px-8">
|
||||||
<div className="relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:rounded-3xl sm:px-16 md:pt-24 lg:flex lg:gap-x-20 lg:px-24 lg:pt-0">
|
<div className="relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:rounded-3xl sm:px-16 md:pt-24 lg:flex lg:gap-x-20 lg:px-24 lg:pt-0">
|
||||||
<svg
|
<svg
|
||||||
|
@ -68,18 +54,14 @@ export default function Example() {
|
||||||
Get questions from a multitude of different subjects that include cybersecurity, geography and C++
|
Get questions from a multitude of different subjects that include cybersecurity, geography and C++
|
||||||
</p>
|
</p>
|
||||||
<div className="mt-10 flex items-center justify-center gap-x-6 lg:justify-start">
|
<div className="mt-10 flex items-center justify-center gap-x-6 lg:justify-start">
|
||||||
{/* <motion.a
|
<a
|
||||||
href="sessionconfig"
|
href="sessionconfig"
|
||||||
className="rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
className="rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
||||||
style={{ marginBottom: '40px' }}
|
style={{ marginBottom: '40px' }}
|
||||||
animate={{opacity: buttonHovered ? 0.8 : 1}}
|
|
||||||
onMouseEnter={()=>setButtonHovered(true)}
|
|
||||||
onMouseLeave={()=>setButtonHovered(false)}
|
|
||||||
onClick={()=>setButtonPressed(true)}
|
|
||||||
>
|
>
|
||||||
Get started
|
Get started
|
||||||
</motion.a> */}
|
</a>
|
||||||
<LinkButton text="Get started" href="/sessionconfig" onPress={()=>setButtonPressed(true)}/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,16 +12,14 @@ const includedFeatures = [
|
||||||
|
|
||||||
export default function Example() {
|
export default function Example() {
|
||||||
|
|
||||||
//List of topics
|
|
||||||
const cards = [
|
const cards = [
|
||||||
["Learn cybersecurity", "Learning cybersecurity is like becoming a guardian of the digital realm.\nIt's about mastering the art of protecting information, systems, and networks from cyber threats.\nFrom understanding encryption algorithms to detecting malware, every lesson equips you with tools to fortify against cyber-attacks.", "/learn/cybersec" ],
|
["Learn cybersecurity", "Learning cybersecurity is like becoming a guardian of the digital realm.\nIt's about mastering the art of protecting information, systems, and networks from cyber threats.\nFrom understanding encryption algorithms to detecting malware, every lesson equips you with tools to fortify against cyber-attacks.", "/learn/cybersec" ],
|
||||||
["Learn geography", "Geography is the study of our world's intricate tapestry — from the towering peaks of the Himalayas to the vast expanse of the Sahara Desert. It's about understanding the relationships between people, places and the environment.", "/learn/geography"],
|
["Learn geography", "Geography is the study of our world's intricate tapestry — from the towering peaks of the Himalayas to the vast expanse of the Sahara Desert. It's about understanding the relationships between people, places, and the environment.", "/learn/geography"],
|
||||||
["Learn CPP", "As a powerful, versatile language, C++ teaches you the fundamentals of object-oriented programming while offering fine-grained control over system resources. You'll explore concepts like classes, inheritance, and polymorphism, alongside memory management and pointers.", "/learn/cpp"]
|
["Learn CPP", "As a powerful, versatile language, CPP teaches you the fundamentals of object-oriented programming while offering fine-grained control over system resources. You'll explore concepts like classes, inheritance, and polymorphism, alongside memory management and pointers.", "/learn/cpp"]
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<div className="py-24 sm:py-32" style = {{ alignItems: 'center', justifyContent: 'center' }}>
|
<div className="py-24 sm:py-32" style = {{ alignItems: 'center', justifyContent: 'center' }}>
|
||||||
{/*Background*/}
|
|
||||||
<div
|
<div
|
||||||
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
className="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
@ -33,15 +31,7 @@ export default function Example() {
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
|
||||||
style={{
|
|
||||||
clipPath:
|
|
||||||
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{/*The logo*/}
|
|
||||||
<Logo/>
|
<Logo/>
|
||||||
<div style={{paddingTop: '128px'}}></div>
|
<div style={{paddingTop: '128px'}}></div>
|
||||||
<div className="mx-auto max-w-7xl px-6 lg:px-8">
|
<div className="mx-auto max-w-7xl px-6 lg:px-8">
|
||||||
|
@ -76,11 +66,17 @@ export default function Example() {
|
||||||
</TopicCard>
|
</TopicCard>
|
||||||
*/}
|
*/}
|
||||||
</div>
|
</div>
|
||||||
{/*Background*/}
|
|
||||||
<div
|
<div
|
||||||
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
className="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
className="relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
|
||||||
|
style={{
|
||||||
|
clipPath:
|
||||||
|
'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
25
package-lock.json
generated
25
package-lock.json
generated
|
@ -10,7 +10,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^2.0.4",
|
"@headlessui/react": "^2.0.4",
|
||||||
"@heroicons/react": "^2.1.3",
|
"@heroicons/react": "^2.1.3",
|
||||||
"framer-motion": "^11.2.10",
|
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18",
|
||||||
|
@ -2246,30 +2245,6 @@
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/framer-motion": {
|
|
||||||
"version": "11.2.10",
|
|
||||||
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.2.10.tgz",
|
|
||||||
"integrity": "sha512-/gr3PLZUVFCc86a9MqCUboVrALscrdluzTb3yew+2/qKBU8CX6nzs918/SRBRCqaPbx0TZP10CB6yFgK2C5cYQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.4.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@emotion/is-prop-valid": "*",
|
|
||||||
"react": "^18.0.0",
|
|
||||||
"react-dom": "^18.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@emotion/is-prop-valid": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/fs.realpath": {
|
"node_modules/fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^2.0.4",
|
"@headlessui/react": "^2.0.4",
|
||||||
"@heroicons/react": "^2.1.3",
|
"@heroicons/react": "^2.1.3",
|
||||||
"framer-motion": "^11.2.10",
|
|
||||||
"next": "14.2.3",
|
"next": "14.2.3",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18",
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 258 KiB |
Loading…
Reference in a new issue