mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 09:17:00 +00:00
prettier config and tailwindcss
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "14.1.0",
|
"eslint-config-next": "14.1.0",
|
||||||
"postcss": "^8",
|
"postcss": "^8",
|
||||||
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||||
"tailwindcss": "^3.3.0",
|
"tailwindcss": "^3.3.0",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+64
@@ -88,6 +88,9 @@ devDependencies:
|
|||||||
postcss:
|
postcss:
|
||||||
specifier: ^8
|
specifier: ^8
|
||||||
version: 8.4.35
|
version: 8.4.35
|
||||||
|
prettier-plugin-tailwindcss:
|
||||||
|
specifier: ^0.5.14
|
||||||
|
version: 0.5.14([email protected])
|
||||||
tailwindcss:
|
tailwindcss:
|
||||||
specifier: ^3.3.0
|
specifier: ^3.3.0
|
||||||
version: 3.4.1
|
version: 3.4.1
|
||||||
@@ -2852,6 +2855,67 @@ packages:
|
|||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/[email protected]([email protected]):
|
||||||
|
resolution: {integrity: sha512-Puaz+wPUAhFp8Lo9HuciYKM2Y2XExESjeT+9NQoVFXZsPPnc9VYss2SpxdQ6vbatmt8/4+SN0oe0I1cPDABg9Q==}
|
||||||
|
engines: {node: '>=14.21.3'}
|
||||||
|
peerDependencies:
|
||||||
|
'@ianvs/prettier-plugin-sort-imports': '*'
|
||||||
|
'@prettier/plugin-pug': '*'
|
||||||
|
'@shopify/prettier-plugin-liquid': '*'
|
||||||
|
'@trivago/prettier-plugin-sort-imports': '*'
|
||||||
|
'@zackad/prettier-plugin-twig-melody': '*'
|
||||||
|
prettier: ^3.0
|
||||||
|
prettier-plugin-astro: '*'
|
||||||
|
prettier-plugin-css-order: '*'
|
||||||
|
prettier-plugin-import-sort: '*'
|
||||||
|
prettier-plugin-jsdoc: '*'
|
||||||
|
prettier-plugin-marko: '*'
|
||||||
|
prettier-plugin-organize-attributes: '*'
|
||||||
|
prettier-plugin-organize-imports: '*'
|
||||||
|
prettier-plugin-sort-imports: '*'
|
||||||
|
prettier-plugin-style-order: '*'
|
||||||
|
prettier-plugin-svelte: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@ianvs/prettier-plugin-sort-imports':
|
||||||
|
optional: true
|
||||||
|
'@prettier/plugin-pug':
|
||||||
|
optional: true
|
||||||
|
'@shopify/prettier-plugin-liquid':
|
||||||
|
optional: true
|
||||||
|
'@trivago/prettier-plugin-sort-imports':
|
||||||
|
optional: true
|
||||||
|
'@zackad/prettier-plugin-twig-melody':
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-astro:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-css-order:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-import-sort:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-jsdoc:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-marko:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-organize-attributes:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-organize-imports:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-sort-imports:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-style-order:
|
||||||
|
optional: true
|
||||||
|
prettier-plugin-svelte:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
prettier: 3.2.5
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/[email protected]:
|
||||||
|
resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
hasBin: true
|
||||||
|
dev: true
|
||||||
|
|
||||||
/[email protected]:
|
/[email protected]:
|
||||||
resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
|
resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": true,
|
||||||
|
"plugins": ["prettier-plugin-tailwindcss"]
|
||||||
|
}
|
||||||
@@ -9,13 +9,13 @@ interface HomepageModuleProps {
|
|||||||
|
|
||||||
const HomepageModule = ({ title, children }: HomepageModuleProps) => {
|
const HomepageModule = ({ title, children }: HomepageModuleProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col h-80 bg-card rounded-lg 2xl:h-full">
|
<div className="flex h-80 flex-col rounded-lg bg-card 2xl:h-full">
|
||||||
<div className="flex justify-between px-2 py-2 pb-0">
|
<div className="flex justify-between px-2 py-2 pb-0">
|
||||||
<div className="flex items-center text-lg px-2 font-semibold">
|
<div className="flex items-center px-2 text-lg font-semibold">
|
||||||
{title}
|
{title}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-grow w-full overflow-hidden mt-2 border-t border-neutral-700">
|
<div className="mt-2 w-full flex-grow overflow-hidden border-t border-neutral-700">
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -107,38 +107,38 @@ export const MoversModule = () => {
|
|||||||
return (
|
return (
|
||||||
<HomepageModule title="Movers">
|
<HomepageModule title="Movers">
|
||||||
<div className="flex justify-between 2xl:px-2">
|
<div className="flex justify-between 2xl:px-2">
|
||||||
<div className="px-4 mt-4 2xl:mt-6">
|
<div className="mt-4 px-4 2xl:mt-6">
|
||||||
<div className="text-lg">Gainers</div>
|
<div className="text-lg">Gainers</div>
|
||||||
<div className="mt-4 grid grid-cols-2 grid-rows-5 gap-y-4 gap-x-2 2xl:gap-y-6 2xl:gap-x-10">
|
<div className="mt-4 grid grid-cols-2 grid-rows-5 gap-x-2 gap-y-4 2xl:gap-x-10 2xl:gap-y-6">
|
||||||
{winnerMovers.map((item) => (
|
{winnerMovers.map((item) => (
|
||||||
<div
|
<div
|
||||||
className="flex border-b border-neutral-400 pb-1 text-sm 2xl:text-base"
|
className="flex border-b border-neutral-400 pb-1 text-sm 2xl:text-base"
|
||||||
key={item.symbol}
|
key={item.symbol}
|
||||||
>
|
>
|
||||||
<div className="w-32 font-bold 2xl:w-24">{item.symbol}</div>
|
<div className="w-32 font-bold 2xl:w-24">{item.symbol}</div>
|
||||||
<div className="text-xs text-right text-neutral-400 2xl:w-20 2xl:text-base">
|
<div className="text-right text-xs text-neutral-400 2xl:w-20 2xl:text-base">
|
||||||
{item.stockPrice}
|
{item.stockPrice}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-xs ml-2 rounded-lg bg-green-500 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
|
<div className="ml-2 w-20 rounded-lg bg-green-500 bg-opacity-90 text-center text-xs 2xl:ml-4 2xl:text-base">
|
||||||
+{item.percentChange}%
|
+{item.percentChange}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="px-4 mt-4 2xl:mt-6">
|
<div className="mt-4 px-4 2xl:mt-6">
|
||||||
<div className="text-lg">Losers</div>
|
<div className="text-lg">Losers</div>
|
||||||
<div className="mt-4 grid grid-cols-2 grid-rows-5 gap-y-4 gap-x-2 2xl:gap-y-6 2xl:gap-x-10">
|
<div className="mt-4 grid grid-cols-2 grid-rows-5 gap-x-2 gap-y-4 2xl:gap-x-10 2xl:gap-y-6">
|
||||||
{loserMovers.map((item) => (
|
{loserMovers.map((item) => (
|
||||||
<div
|
<div
|
||||||
className="flex border-b border-neutral-400 pb-1 text-sm 2xl:text-base"
|
className="flex border-b border-neutral-400 pb-1 text-sm 2xl:text-base"
|
||||||
key={item.symbol}
|
key={item.symbol}
|
||||||
>
|
>
|
||||||
<div className="w-32 font-bold 2xl:w-24">{item.symbol}</div>
|
<div className="w-32 font-bold 2xl:w-24">{item.symbol}</div>
|
||||||
<div className="text-xs text-right text-neutral-400 2xl:w-20 2xl:text-base">
|
<div className="text-right text-xs text-neutral-400 2xl:w-20 2xl:text-base">
|
||||||
{item.stockPrice}
|
{item.stockPrice}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-xs ml-2 rounded-lg bg-red-500 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
|
<div className="ml-2 w-20 rounded-lg bg-red-500 bg-opacity-90 text-center text-xs 2xl:ml-4 2xl:text-base">
|
||||||
{item.percentChange}%
|
{item.percentChange}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -177,18 +177,18 @@ export const MarketsModule = () => {
|
|||||||
return (
|
return (
|
||||||
<HomepageModule title="Markets">
|
<HomepageModule title="Markets">
|
||||||
<div className="flex h-full items-center py-2 2xl:py-4">
|
<div className="flex h-full items-center py-2 2xl:py-4">
|
||||||
<div className="flex flex-col grow max-w-[40%] justify-between h-full px-2">
|
<div className="flex h-full max-w-[40%] grow flex-col justify-between px-2">
|
||||||
{markets.map((marketItem) => (
|
{markets.map((marketItem) => (
|
||||||
<div
|
<div
|
||||||
key={marketItem.symbol}
|
key={marketItem.symbol}
|
||||||
className="rounded-md hover:bg-neutral-700 hover:cursor-pointer"
|
className="rounded-md hover:cursor-pointer hover:bg-neutral-700"
|
||||||
>
|
>
|
||||||
<div className="flex items-center pl-2 py-1 justify-between border-b border-neutral-700">
|
<div className="flex items-center justify-between border-b border-neutral-700 py-1 pl-2">
|
||||||
<div className="text-sm font-semibold 2xl:text-base">
|
<div className="text-sm font-semibold 2xl:text-base">
|
||||||
{marketItem.symbol}
|
{marketItem.symbol}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-between space-x-4 text-sm pr-2">
|
<div className="flex justify-between space-x-4 pr-2 text-sm">
|
||||||
<div className="text-sm w-12 text-right">
|
<div className="w-12 text-right text-sm">
|
||||||
{getLastPrice(marketItem.chart)}
|
{getLastPrice(marketItem.chart)}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -196,7 +196,7 @@ export const MarketsModule = () => {
|
|||||||
getPriceDifference(marketItem.chart, 1) > 0
|
getPriceDifference(marketItem.chart, 1) > 0
|
||||||
? "text-green-500"
|
? "text-green-500"
|
||||||
: "text-red-500",
|
: "text-red-500",
|
||||||
"text-sm w-10 text-right 2xl:w-12"
|
"w-10 text-right text-sm 2xl:w-12",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{getPriceDifference(marketItem.chart, 1)}
|
{getPriceDifference(marketItem.chart, 1)}
|
||||||
@@ -215,7 +215,7 @@ export const MarketsModule = () => {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div className="h-full grow max-w-[60%] relative">
|
<div className="relative h-full max-w-[60%] grow">
|
||||||
<div className="absolute ml-4 mt-1">S&P 500</div>
|
<div className="absolute ml-4 mt-1">S&P 500</div>
|
||||||
<Chart
|
<Chart
|
||||||
series={[sp500IndexLine, sma5Line]}
|
series={[sp500IndexLine, sma5Line]}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export const PriceModule = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<HomepageModule title="Price Chart">
|
<HomepageModule title="Price Chart">
|
||||||
<div className="h-full relative">
|
<div className="relative h-full">
|
||||||
<Chart
|
<Chart
|
||||||
series={[symbolLine]}
|
series={[symbolLine]}
|
||||||
colors={{}}
|
colors={{}}
|
||||||
@@ -45,8 +45,8 @@ export const PriceModule = () => {
|
|||||||
export const DescriptionModule = () => {
|
export const DescriptionModule = () => {
|
||||||
return (
|
return (
|
||||||
<HomepageModule title="Company Description">
|
<HomepageModule title="Company Description">
|
||||||
<div className="space-y-2 2xl:space-y-4 px-4 2xl:px-6">
|
<div className="space-y-2 px-4 2xl:space-y-4 2xl:px-6">
|
||||||
<div className="flex justify-between items-center pt-4">
|
<div className="flex items-center justify-between pt-4">
|
||||||
<div className="text-lg 2xl:text-2xl">Apple Inc</div>
|
<div className="text-lg 2xl:text-2xl">Apple Inc</div>
|
||||||
<Image
|
<Image
|
||||||
alt="apple"
|
alt="apple"
|
||||||
@@ -55,7 +55,7 @@ export const DescriptionModule = () => {
|
|||||||
height={20}
|
height={20}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-sm 2xl:text-base font-light text-justify">
|
<div className="text-justify text-sm font-light 2xl:text-base">
|
||||||
Apple Inc (Apple) designs, manufactures, and markets smartphones,
|
Apple Inc (Apple) designs, manufactures, and markets smartphones,
|
||||||
tablets, personal computers, and wearable devices. The company offers
|
tablets, personal computers, and wearable devices. The company offers
|
||||||
software applications and related services, accessories, and
|
software applications and related services, accessories, and
|
||||||
@@ -68,28 +68,28 @@ export const DescriptionModule = () => {
|
|||||||
Arcade, Apple News+, Apple Fitness+, Apple Card, Apple TV+, and Apple
|
Arcade, Apple News+, Apple Fitness+, Apple Card, Apple TV+, and Apple
|
||||||
Music.
|
Music.
|
||||||
</div>
|
</div>
|
||||||
<div className="grid gap-x-2 gap-y-1 grid-cols-2 grid-rows-3 font-light 2xl:gap-x-6 2xl:gap-y-2">
|
<div className="grid grid-cols-2 grid-rows-3 gap-x-2 gap-y-1 font-light 2xl:gap-x-6 2xl:gap-y-2">
|
||||||
<div className="border-b border-neutral-700 flex justify-between text-xs 2xl:font-base">
|
<div className="2xl:font-base flex justify-between border-b border-neutral-700 text-xs">
|
||||||
<div>Sector</div>
|
<div>Sector</div>
|
||||||
<div>Technology</div>
|
<div>Technology</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="border-b border-neutral-700 flex justify-between text-xs 2xl:font-base">
|
<div className="2xl:font-base flex justify-between border-b border-neutral-700 text-xs">
|
||||||
<div>Website</div>
|
<div>Website</div>
|
||||||
<div>https://apple.com</div>
|
<div>https://apple.com</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="border-b border-neutral-700 flex justify-between text-xs 2xl:font-base">
|
<div className="2xl:font-base flex justify-between border-b border-neutral-700 text-xs">
|
||||||
<div>Industry</div>
|
<div>Industry</div>
|
||||||
<div>Consumer Electronics</div>
|
<div>Consumer Electronics</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="border-b border-neutral-700 flex justify-between text-xs 2xl:font-base">
|
<div className="2xl:font-base flex justify-between border-b border-neutral-700 text-xs">
|
||||||
<div>Address</div>
|
<div>Address</div>
|
||||||
<div>One Apple Park Way, Cupertino, California, 95014</div>
|
<div>One Apple Park Way, Cupertino, California, 95014</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="border-b border-neutral-700 flex justify-between text-xs 2xl:font-base">
|
<div className="2xl:font-base flex justify-between border-b border-neutral-700 text-xs">
|
||||||
<div>CEO</div>
|
<div>CEO</div>
|
||||||
<div>Tim Cook</div>
|
<div>Tim Cook</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="border-b border-neutral-700 flex justify-between text-xs 2xl:font-base">
|
<div className="2xl:font-base flex justify-between border-b border-neutral-700 text-xs">
|
||||||
<div>Employees</div>
|
<div>Employees</div>
|
||||||
<div>161,000</div>
|
<div>161,000</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -179,7 +179,7 @@ export const KPIModule = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> */}
|
</div> */}
|
||||||
<div className="grid grid-cols-4 grid-rows-4 gap-x-6 gap-y-3 p-4 pt-3 font-light text-xs">
|
<div className="grid grid-cols-4 grid-rows-4 gap-x-6 gap-y-3 p-4 pt-3 text-xs font-light">
|
||||||
<div className="flex justify-between border-b border-neutral-700">
|
<div className="flex justify-between border-b border-neutral-700">
|
||||||
<div>Previous Close</div>
|
<div>Previous Close</div>
|
||||||
<div>171.37</div>
|
<div>171.37</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user