Skip to content

Commit d95dc4c

Browse files
authored
πŸ‘Œ IMPROVE: Landing page UI (#91)
* πŸ› FIX: Mobile design * πŸ‘Œ IMPROVE: Code * πŸ‘Œ IMPROVE: Top * πŸ‘Œ IMPROVE: View height * πŸ‘Œ IMPROVE: View height * πŸ‘Œ IMPROVE: Top * πŸ› FIX: BaseAI name * πŸ‘Œ IMPROVE: Desktop top placement * πŸ‘Œ IMPROVE: Code * πŸ‘Œ IMPROVE: Code
1 parent 27e2cb2 commit d95dc4c

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

β€Žapps/baseai.dev/src/components/home/hero.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import WebGLInitializer from './webgl';
1010
import Link from 'next/link';
1111
const inter = Inter({ subsets: ['latin'] });
1212

13-
export default function Hero({}) {
13+
export default function Hero({ }) {
1414
return (
15-
<div className="align-center flex flex h-screen flex-col items-center justify-center justify-center">
16-
<div className="xmin-h-screen webgl absolute absolute -top-[10vh] flex w-full sm:top-0">
15+
<div className="flex align-center min-h-[91vh] flex-col items-center justify-center relative">
16+
<div className="xmin-h-screen h-full webgl absolute -top-[17vh] flex w-full sm:-top-10">
1717
<WebGLInitializer />
1818
</div>
1919
<Content />
@@ -23,7 +23,7 @@ export default function Hero({}) {
2323

2424
function Content() {
2525
return (
26-
<div className="z-10 mt-24 grid min-h-[75vh] w-[90vw] grid-rows-[auto_1fr_auto] gap-4 p-6 sm:mt-28 sm:min-h-[85vh] sm:w-[76vw]">
26+
<div className="z-10 grid min-h-[75vh] w-[90vw] grid-rows-[auto_1fr_auto] gap-4 px-6 sm:p-6 sm:mt-28 sm:min-h-[85vh] sm:w-[76vw]">
2727
<div className="col-span-2 flex items-center justify-between">
2828
<div className={cn('flex items-center', inter.className)}>
2929
<div className="mr-4 hidden size-4 rounded-full bg-muted-foreground/70 sm:block"></div>
@@ -46,14 +46,14 @@ function Content() {
4646
<div className={cn('self-end lg:max-w-[60%]', inter.className)}>
4747
<div
4848
className="text-center text-sm text-sm lg:text-left lg:text-left
49-
49+
5050
2xl:text-[1vw] 2xl:text-[1vw] 2xl:leading-[1.5vw] 2xl:leading-[1.5vw]"
5151
>
5252
<div className="flex items-center justify-center lg:justify-start">
5353
<div className="mr-4 hidden size-4 rounded-full bg-muted-foreground/70 sm:block"></div>
5454
<span className="text-sm text-muted-foreground/70 2xl:text-[1vw] 2xl:leading-[1vw]">
5555
<strong className="mr-2 text-white">
56-
Base AI
56+
BaseAI
5757
</strong>
5858
<span className="text-muted-foreground/90">
5959
The first Web AI Framework.

β€Žapps/baseai.dev/src/mdx/rehype.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import theme from './themes/shades-of-purple.json' assert { type: 'json' };
88
import lang from './languages.mjs';
99

1010
export function rehypeParseCodeBlocks() {
11-
return (tree) => {
11+
return tree => {
1212
visit(tree, 'element', (node, _nodeIndex, parentNode) => {
1313
if (node.tagName === 'code' && node.properties.className) {
1414
parentNode.properties.language =
@@ -21,10 +21,10 @@ export function rehypeParseCodeBlocks() {
2121
let highlighter;
2222

2323
export function rehypeShiki() {
24-
return async (tree) => {
24+
return async tree => {
2525
highlighter =
2626
highlighter ??
27-
(await shiki.getHighlighter({ theme: theme , langs: lang }));
27+
(await shiki.getHighlighter({ theme: theme, langs: lang }));
2828

2929
visit(tree, 'element', node => {
3030
if (
@@ -56,7 +56,7 @@ export function rehypeShiki() {
5656
}
5757

5858
export function rehypeSlugify() {
59-
return (tree) => {
59+
return tree => {
6060
let slugify = slugifyWithCounter();
6161
visit(tree, 'element', node => {
6262
if (node.tagName === 'h2' && !node.properties.id) {
@@ -67,7 +67,7 @@ export function rehypeSlugify() {
6767
}
6868

6969
export function rehypeAddMDXExports(getExports) {
70-
return (tree) => {
70+
return tree => {
7171
let exports = Object.entries(getExports(tree));
7272

7373
for (let [name, value] of exports) {
@@ -123,7 +123,7 @@ export const rehypePlugins = [
123123
rehypeSlugify,
124124
[
125125
rehypeAddMDXExports,
126-
(tree) => ({
126+
tree => ({
127127
sections: `[${getSections(tree).join()}]`
128128
})
129129
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import shadesOfPurple from './shades-of-purple.json' assert { type: 'json' }
1+
import shadesOfPurple from './shades-of-purple.json' assert { type: 'json' };
22

3-
export default { shadesOfPurple }
3+
export default { shadesOfPurple };
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import shadesOfPurple from './shades-of-purple.json' assert { type: 'json' }
1+
import shadesOfPurple from './shades-of-purple.json' assert { type: 'json' };
22

3-
export default { shadesOfPurple }
3+
export default { shadesOfPurple };

0 commit comments

Comments
Β (0)