-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve website layout and content organization
- Add Section component for consistent section styling - Implement Tabs component for showcasing integration code and visuals - Reorganize content into distinct sections with titles and subtitles - Improve layout and spacing across various components - Update Pricing section with an ID for smooth scrolling - Add smooth scrolling functionality to Footer links - Refactor background stars opacity based on scroll position - Clean up unused code and remove UserTypeSwitch component
- Loading branch information
Showing
14 changed files
with
285 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import { | |
MailIcon, | ||
CalendarIcon, | ||
DollarSignIcon, | ||
HomeIcon, | ||
} from 'lucide-react' | ||
import { Button } from '@/components/ui/button' | ||
import { Input } from '@/components/ui/input' | ||
|
@@ -29,6 +30,20 @@ const iconVariants = { | |
} | ||
} | ||
|
||
|
||
// Helper function for smooth scrolling | ||
const scrollToPricing = (e: React.MouseEvent) => { | ||
e.preventDefault() | ||
const pricingSection = document.getElementById('pricing') | ||
pricingSection?.scrollIntoView({ behavior: 'smooth' }) | ||
} | ||
|
||
// Helper function for smooth scrolling | ||
const scrollToTop = (e: React.MouseEvent) => { | ||
e.preventDefault() | ||
window.scrollTo({ top: 0, behavior: 'smooth' }) | ||
} | ||
|
||
const socialLinks = [ | ||
{ | ||
name: "X", | ||
|
@@ -40,10 +55,13 @@ const socialLinks = [ | |
] | ||
|
||
const resourceLinks = [ | ||
{ name: "Home", href: "/", icon: HomeIcon, onClick: scrollToTop }, | ||
{ name: "Documentation", href: "https://docs.asteroid.ai", icon: BookIcon }, | ||
{ name: "Blog", href: "https://blog.asteroid.ai", icon: LibraryIcon }, | ||
{ name: "Contact", href: "mailto:[email protected]", icon: MailIcon }, | ||
{ name: "Pricing", href: "/pricing", icon: DollarSignIcon }, | ||
{ | ||
name: "Pricing", href: "#pricing", icon: DollarSignIcon, onClick: scrollToPricing | ||
}, | ||
{ name: "Demo", href: "https://calendly.com/founders-asteroid-hhaf/30min", icon: CalendarIcon }, | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as React from 'react' | ||
|
||
interface SectionProps { | ||
title: string | ||
subtitle?: string | ||
children: React.ReactNode | ||
id?: string | ||
} | ||
|
||
export default function Section({ title, subtitle, children, id }: SectionProps) { | ||
return ( | ||
<div id={id} className="container max-w-6xl mx-auto"> | ||
<div className="w-full space-y-12"> | ||
<div className="space-y-4"> | ||
<h1 className="text-4xl font-bold text-center text-white"> | ||
{title} | ||
</h1> | ||
{subtitle && ( | ||
<p className="text-lg text-center text-muted-foreground"> | ||
{subtitle} | ||
</p> | ||
)} | ||
</div> | ||
{children} | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.