Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const ExampleOne = () => ( | |
<motion.div | |
whileHover={{ scale: 1.2 }} | |
whileTap={{ scale: 1.1 }} | |
drag="x" | |
dragConstraints={{ left: -100, right: 100 }} | |
style={SmallPinkSquare} | |
/> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes slideDown { | |
from { | |
transform: translateY(-100%); | |
} | |
to { | |
transform: translateY(0); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useRef, useState } from "react"; | |
import { TbMenu } from "react-icons/tb"; | |
import Flex from "~/components/buildingBlocks/flex"; | |
import FlexFull from "~/components/buildingBlocks/flexFull"; | |
import HStack from "~/components/buildingBlocks/hStack"; | |
import Icon from "~/components/buildingBlocks/icon"; | |
import Text from "~/components/buildingBlocks/text"; | |
import VStackFull from "~/components/buildingBlocks/vStackFull"; | |
import { motion } from "framer-motion"; | |
import HStackFull from "~/components/buildingBlocks/hStackFull"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from "react"; | |
import TransitionFull from "~/components/buildingBlocks/TransitionFull"; | |
import FlexFull from "~/components/buildingBlocks/flexFull"; | |
import Text from "~/components/buildingBlocks/text"; | |
import VStackFull from "~/components/buildingBlocks/vStackFull"; | |
import TeslaSmallScreenMenu from "./components/teslaSmallMenu"; | |
import Flex from "~/components/buildingBlocks/flex"; | |
import VStack from "~/components/buildingBlocks/vStack"; | |
import { motion } from "framer-motion"; | |
import TeslaLargeScreenMenu from "./components/teslaMenuLarge"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type IconBarType = { | |
icon: React.ComponentType<{ className?: string }>; | |
label: string; | |
}; | |
const iconBar = [ | |
{ icon: MdOutlinePark, label: "National Park" }, | |
{ icon: MdOutlinePool, label: "Beautiful Pools" }, | |
{ icon: MdOutlinePhotoCamera, label: "Amazing Views" }, | |
{ icon: GiSydneyOperaHouse, label: "Top Cities" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const JSONExamples = [ | |
`{ | |
"posts": [ | |
{ | |
"id": 1, | |
"title": "How to Learn JavaScript", | |
"author": "Alice Johnson", | |
"published": "2024-09-01", | |
"tags": ["JavaScript", "Programming", "Web Development"], | |
"content": "JavaScript is a versatile programming language used for web development..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface TextAreaProps | |
extends Omit< | |
React.TextareaHTMLAttributes<HTMLTextAreaElement>, | |
"value" | "onChange" | |
> { | |
className?: string; | |
value?: string; | |
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void; | |
style?: React.CSSProperties; | |
textAreaHeight?: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function JsonError({ jsonError }: { jsonError: string | null }) { | |
return ( | |
// Display JSON error message if present | |
<HStack className="absolute z-10 px-[1vh] py-[0px] bottom-[1vh] left-[1vh] bg-col-pink bg-gradient-to-br from-fuchsia-380 via-fuchsia-360 to-fuchsia-380 w-fit max-w-80% items-center border-400-lg shadowNarrowTight"> | |
<Icon icon={MdErrorOutline} iconClassName="text-col-900 text-[2.3vh]" /> | |
<Text className="text-col-900 text-stroke-5-900 text-sm"> | |
{jsonError} | |
</Text> | |
</HStack> | |
); |
OlderNewer