Skip to content
Open
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
19 changes: 13 additions & 6 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import "@/styles/globals.css";
import { Metadata } from "next";
import { Fira_Code as FontMono, Inter as FontSans } from "next/font/google";
import {
Fira_Code as FontMono,
Inter as FontSans,
Space_Grotesk as FontGrotesk,
} from "next/font/google";

import NavBar from "@/components/NavBar";

const fontSans = FontSans({
subsets: ["latin"],
Expand All @@ -14,6 +17,11 @@ const fontMono = FontMono({
variable: "--font-geist-mono",
});

const fontGrotesk = FontGrotesk({
subsets: ["latin"],
variable: "--font-grotesk",
});

export const metadata: Metadata = {
title: {
default: "HeyGen Interactive Avatar SDK Demo",
Expand All @@ -32,13 +40,12 @@ export default function RootLayout({
return (
<html
suppressHydrationWarning
className={`${fontSans.variable} ${fontMono.variable} font-sans`}
className={`${fontSans.variable} ${fontMono.variable} ${fontGrotesk.variable} font-sans`}
lang="en"
>
<head />
<body className="min-h-screen bg-black text-white">
<main className="relative flex flex-col gap-6 h-screen w-screen">
<NavBar />
<body className="min-h-screen bg-white text-[#0f1011]">
<main className="flex flex-col min-h-screen w-full">
{children}
</main>
</body>
Expand Down
31 changes: 25 additions & 6 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
"use client";

import InteractiveAvatar from "@/components/InteractiveAvatar";
export default function App() {

export default function Home() {
return (
<div className="w-screen h-screen flex flex-col">
<div className="w-[900px] flex flex-col items-start justify-start gap-5 mx-auto pt-4 pb-20">
<div className="w-full">
<InteractiveAvatar />
<div className="bg-white">
<section className="max-w-5xl mx-auto px-4 py-8 space-y-4">
<img
src="/nlace-logo.svg"
alt="NLACE logo"
className="h-12 mx-auto"
/>
<h1 className="bg-[#0f1011] text-white text-4xl md:text-6xl font-grotesk rounded-lg p-6">
Hablemos de IA
</h1>
<p className="bg-[#5869f7] text-white rounded-md p-4 text-base md:text-lg opacity-80 font-sans">
Estoy aquí para guiarte en el proceso de integrar Inteligencia Artificial para tu empresa. Preguntame lo que quieras
</p>
</section>
<section className="bg-gradient-to-b from-[#fefbff] to-[#ffffff] py-10">
<div className="max-w-5xl mx-auto px-4">
<div
id="avatar-container"
className="w-full mx-auto aspect-video rounded-xl shadow-md overflow-hidden"
>
<InteractiveAvatar />
</div>
</div>
</div>
</section>
</div>
);
}
8 changes: 8 additions & 0 deletions public/nlace-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
fontFamily: {
sans: ["var(--font-sans)"],
mono: ["var(--font-geist-mono)"],
grotesk: ["var(--font-grotesk)"],
},
},
},
Expand Down