Skip to content

Commit

Permalink
Merge branch 'feat/landing'
Browse files Browse the repository at this point in the history
  • Loading branch information
lludol committed Sep 16, 2024
2 parents 0881c6e + 807c959 commit 9b07cb2
Show file tree
Hide file tree
Showing 11 changed files with 156 additions and 81 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-carrots-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blandui/blandui-react": patch
---

as props added to Button
11 changes: 11 additions & 0 deletions apps/blandui-landing/app/coming-soon/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Typography } from '@blandui/blandui-react';

export default function ComingSoon() {
return (
<main className="flex items-center justify-center h-[50vh]">
<Typography size="lg" type='title' as="h1">
Coming soon...
</Typography>
</main>
);
}
12 changes: 6 additions & 6 deletions apps/blandui-landing/app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ const Footer = () => (

<div className="flex sm:flex-row flex-col gap-3xl sm:gap-2xl">
<div className="flex gap-xl sm:gap-2xl">
<a href="#">Docs</a>
<a href="#">Components</a>
<a href="#">Playground</a>
<a href="#">About</a>
<a href="/coming-soon" className="hover:underline">Docs</a>
<a href="/coming-soon" className="hover:underline">Components</a>
<a href="https://playground.blandui.com" target='_blank' className="hover:underline">Playground</a>
<a href="/coming-soon" className="hover:underline">About</a>
</div>

<div className="flex justify-center gap-xl sm:gap-2xl">
<a href="#">
<a href="https://www.figma.com/community/file/1354188872568801069/bland-ui-kit-for-figma" target='_blank'>
<SiFigma size="1.5rem"/>
</a>

<a href="#">
<a href="https://github.com/Bland-UI/blandui" target='_blank'>
<SiGithub size="1.5rem"/>
</a>
</div>
Expand Down
23 changes: 16 additions & 7 deletions apps/blandui-landing/app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { SiFigma, SiGithub, SiX } from '@icons-pack/react-simple-icons';
import {
Component, FileText, Info, Menu,
} from 'lucide-react';
import Link from 'next/link';
import Logo from './Logo';

const Header = () => (
Expand All @@ -14,16 +15,19 @@ const Header = () => (
<div className="p-xs flex sm:hidden items-center justify-center bg-surface-3 rounded-sm text-bold">
<Menu size="1.25rem"/>
</div>
<Logo />

<a href="/">
<Logo />
</a>
</div>

<div className="hidden sm:flex gap-lg">
<Button type="button" variant="secondary" color='brand'>
<Button type="button" variant="secondary" color='brand' as={Link} href="/coming-soon">
<FileText size="1.25rem"/>
Docs
</Button>

<Button type="button" variant="secondary" color='brand'>
<Button type="button" variant="secondary" color='brand' as={Link} href="/coming-soon">
<Component size="1.25rem"/>
Components
</Button>
Expand All @@ -32,20 +36,25 @@ const Header = () => (
<div className="hidden sm:block flex-1"></div>

<div className="hidden sm:flex gap-lg">
<Button type="button" variant="secondary" color='brand'>
<Button type="button" variant="secondary" color='brand' as={Link} href="/coming-soon">
<Info size="1.25rem"/>
About
</Button>

<Button type="button" variant="primary" color='brand'>
<Button type="button" variant="primary" color='brand' as={Link} href="https://www.figma.com/community/file/1354188872568801069/bland-ui-kit-for-figma" target="_blank">
View
<SiFigma size="1.25rem"/>
</Button>
</div>

<div className="flex gap-xl sm:gap-lg">
<SiX size="1.5rem" />
<SiGithub size="1.5rem"/>
<a href="https://x.com/gdwn__" target='_blank'>
<SiX size="1.5rem" />
</a>

<a href="https://github.com/Bland-UI/blandui" target='_blank'>
<SiGithub size="1.5rem"/>
</a>
</div>
</div>
</header>
Expand Down
118 changes: 84 additions & 34 deletions apps/blandui-landing/app/components/Section1.tsx
Original file line number Diff line number Diff line change
@@ -1,53 +1,103 @@
import { Button, Typography } from '@blandui/blandui-react';
'use client';

import {
Badge, Button, Checkbox, RadioButton, TextInput, Toggle, Typography,
} from '@blandui/blandui-react';
import { SiFigma } from '@icons-pack/react-simple-icons';
import { ExternalLink } from 'lucide-react';
import Link from 'next/link';
import { useState } from 'react';

const Section1 = () => {
const [toggle, setToggle] = useState(false);

const Section1 = () => (
<section className="w-11/12 sm:w-8/12 m-auto py-4xl sw:py-2xl flex gap-xl sm:gap-lg flex-col sm:flex-row">
<div className="flex flex-col gap-xl flex-[0.5]">
<Typography type="heading" size='md' className="font-semibold sm:hidden block">
return (
<section className="w-11/12 sm:w-8/12 m-auto py-4xl sw:py-2xl flex gap-xl sm:gap-lg flex-col sm:flex-row">
<div className="flex flex-col gap-xl flex-[0.5]">
<Typography type="heading" size='md' className="font-semibold sm:hidden block">
Basic building block for your ideas.
</Typography>
<Typography type="display" size='sm' className="font-semibold hidden sm:block">
</Typography>
<Typography type="display" size='sm' className="font-semibold hidden sm:block">
Basic building block for your ideas.
</Typography>
</Typography>

<Typography type="body" size='md' className="sm:hidden block">
<Typography type="body" size='md' className="sm:hidden block">
Bland gives you core components to bring your ideas to life, skipping the fancy stuff to focus on the essentials. Our components let you design freely, making sure you are in control the whole time.
</Typography>
<Typography type="body" size='lg' className="hidden sm:block">
</Typography>
<Typography type="body" size='lg' className="hidden sm:block">
Bland gives you core components to bring your ideas to life, skipping the fancy stuff to focus on the essentials. Our components let you design freely, making sure you are in control the whole time.
</Typography>
</Typography>

<div className="flex gap-md">
<Button color='brand' variant='primary' size="md">
<SiFigma size="1.25rem"/>
Get This UI Kit
</Button>
<div className="flex gap-md">
<Button color='brand' variant='primary' size="md" as={Link} href="https://www.figma.com/community/file/1354188872568801069/bland-ui-kit-for-figma" target="_blank">
<SiFigma size="1.25rem"/>
Get This UI Kit
</Button>

<Button color='brand' variant='secondary' size="md">
View Docs
</Button>
<Button color='brand' variant='secondary' size="md" as={Link} href="/coming-soon">
View Docs
</Button>
</div>
</div>
</div>

<div className="flex flex-col justify-center gap-md flex-[0.5]">
<div className="p-2xl bg-surface-2 rounded-lg gap-xl">
<div className="flex gap-2xl items-center">
<Button color='brand' variant='primary' size="md">
<div className="flex flex-col justify-center gap-lg flex-[0.5]">
<div className="flex flex-col p-2xl bg-surface-2 rounded-lg gap-xl text-bold">
<div className="flex gap-2xl items-center">
<Button color='brand' variant='primary' size="md">
Click Me
</Button>
</Button>
</div>

<div className="flex gap-2xl items-center">
<label className="flex gap-md">
<Checkbox size="md" />
<Typography type="body" size='md'>
Interact with me
</Typography>
</label>

<label className="flex gap-md">
<RadioButton radioSize="md" />
<Typography type="body" size='md'>
Click to select me
</Typography>
</label>

<Badge size="xl" color='red' variant='primary'>
Label
</Badge>
</div>

<div className="flex gap-2xl items-center">
<label className="flex gap-md items-center">
<Toggle size="md" onChange={() => { setToggle((prev) => !prev); }}/>
<Typography type="body" size='md'>
Switched { toggle ? 'on' : 'off' }
</Typography>
</label>
</div>

<div className="flex gap-2xl items-center">
<TextInput
label="Label" value="User input" readOnly
inputSize="md" variant='warning'
helperText="I am giving a warning here"
/>
</div>

<div className="flex gap-2xl items-center">
</div>
</div>
</div>

<div className="hidden sm:flex justify-center">
<Button color='brand' variant='primary' size="md" className="shadow-brand-far-subtle">
<div className="hidden sm:flex justify-center">
<Button color='brand' variant='primary' size="md" className="shadow-brand-far-subtle" as={Link} href="https://playground.blandui.com" target="_blank">
Explore in Playground
<ExternalLink size="1.25rem"/>
</Button>
<ExternalLink size="1.25rem"/>
</Button>
</div>
</div>
</div>
</section>
);
</section>
);
};

export default Section1;
8 changes: 4 additions & 4 deletions apps/blandui-landing/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const firaSans = Fira_Sans({
});

export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
title: 'BlandUI',
description: 'A UI kit for those that want to be in control',
};

export default function RootLayout({
Expand All @@ -28,9 +28,9 @@ export default function RootLayout({
return (
<html lang="en">
<head>
<PlausibleProvider domain="blandui.up.railway.app" customDomain='https://plausible-analytics-pulpopush.up.railway.app' selfHosted/>
<PlausibleProvider domain="blandui.com" customDomain='https://plausible-analytics-pulpopush.up.railway.app' selfHosted/>
</head>
<body className={`${firaSans.className} antialiased bg-surface-4`}>
<body className={`${firaSans.className} antialiased bg-surface-4 min-h-screen`}>
<Header />
{children}
<Footer/>
Expand Down
22 changes: 7 additions & 15 deletions apps/blandui-landing/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
import { Metadata } from 'next';
import Section1 from './components/Section1';
import Section2 from './components/Section2';
import Section3 from './components/Section3';
import Section4 from './components/Section4';
import Section5 from './components/Section5';

export const metadata: Metadata = {
title: 'BlandUI',
description: 'TODO',
};

export default function Home() {
return (
<div className="">
<main className="">
<Section1/>
<Section2/>
<Section3/>
<Section4/>
<Section5/>
</main>
</div>
<main>
<Section1/>
<Section2/>
<Section3/>
<Section4/>
<Section5/>
</main>
);
}
4 changes: 3 additions & 1 deletion apps/blandui-landing/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { withPlausibleProxy } from 'next-plausible';

/** @type {import('next').NextConfig} */
const nextConfig = withPlausibleProxy()({});
const nextConfig = withPlausibleProxy({
customDomain: 'https://plausible-analytics-pulpopush.up.railway.app',
})({});

export default nextConfig;
1 change: 1 addition & 0 deletions apps/blandui-landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@blandui/blandui-react": "workspace:*",
"@icons-pack/react-simple-icons": "^10.0.0",
"@tailwindcss/forms": "^0.5.7",
"lucide-react": "^0.395.0",
"next": "14.2.11",
"next-plausible": "^3.12.2",
Expand Down
30 changes: 16 additions & 14 deletions apps/blandui-landing/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import type { Config } from "tailwindcss";
import type { Config } from 'tailwindcss';
import { content, plugin } from '@blandui/blandui-react/tailwind';
import forms from '@tailwindcss/forms';

const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
content(),
],
theme: {
extend: {
},
},
plugins: [
plugin(),
],
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
content(),
],
theme: {
extend: {
},
},
plugins: [
forms,
plugin(),
],
};
export default config;
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b07cb2

Please sign in to comment.