Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adjust dialog size on mobile and change bg color docs #32

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/www/src/app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function DocsLayout({
<div className="hidden md:block">
<Sidebar />
</div>
<div className="docs md:ml-[300px] min-h-[100vh] w-auto md:w-[full-250px] bg-[#00EB90] px-5 pt-[80px] border-l">
<div className="docs md:ml-[300px] min-h-[100vh] w-auto md:w-[full-250px] bg-[#4dfe4d] px-5 pt-[80px] border-l">
<div className="mx-auto w-full max-w-[700px] pt-20">{children}</div>
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@
.square-pattern {
opacity: 1;
background-image: linear-gradient(#fff6f4 3px, transparent 3px), linear-gradient(to right, #fff6f4 3px, #fff 1px);
background-size: 40px 40px;
background-size: 70px 70px;
}
2 changes: 1 addition & 1 deletion apps/www/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${bricolage.className} bg-[#00EB90] selection:bg-blue-500/50`}
className={`${bricolage.className} bg-[#121212] selection:bg-blue-500/50`}
>
<Navbar />
{children}
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function Home() {
</div>
</div>
</div>
<Footer></Footer>
<Footer />
</main>
);
}
7 changes: 5 additions & 2 deletions apps/www/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ export default function SearchBar() {
onClick={handleClose}
>
<button className="w-full flex items-center gap-3 p-2 text-left rounded hover:bg-zinc-300">
<RxComponent1 className="text-xs" />
<h1 className="font-light">{result.name}</h1>
<RxComponent1 className="w-4" />
<div className="w-full">
<h1 className="font-light">{result.name}</h1>
<h1 className="text-xs font-light line-clamp-1">{result.sub}</h1>
</div>
</button>
</Link>
))}
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Sidebar() {
const year = new Date().getFullYear();

return (
<aside className="scrollbar fixed top-20 h-[calc(100vh-80px)] max-h-[calc(100vh-80px)] w-[303px] py-7 bg-[#ff7d7d] overflow-y-auto border-r-4 border-black">
<aside className="scrollbar fixed top-20 h-[calc(100vh-80px)] max-h-[calc(100vh-80px)] w-[303px] py-7 bg-[#ff7a7a] overflow-y-auto border-r-4 border-black">
<div className="block border-black p-4 text-xl font-bold uppercase">
Getting Started
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/components/neobruu/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type DialogFooterProps = {
};

const dialogVariants = cva(
"z-10 w-[425px] md:w-[500px] overflow-y-auto border-2 border-black p-2 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]",
"z-10 w-[calc(93svw)] md:w-[500px] overflow-y-auto border-2 border-black p-2 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]",
{
variants: {
variant: {
Expand Down
5 changes: 0 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
"name": "@neobruu/ui",
"version": "0.0.0",
"private": true,
"exports": {
"./button": "./src/button.tsx",
"./card": "./src/card.tsx",
"./code": "./src/code.tsx"
},
"scripts": {
"lint": "eslint . --max-warnings 0",
"generate:component": "turbo gen react-component"
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@neobruu/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",
"module": "NodeNext"
},
"include": ["../../apps/www/src/components/neobruu", "../../apps/www/src/components/neobruu"],
"exclude": ["node_modules", "dist"]
Expand Down
Loading