Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:05:49 +00:00
2 changed files with 32 additions and 44 deletions

View File

@@ -15,7 +15,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="mediumSmall"
sizing="largeSmallSizeLargeTitles"
background="aurora"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="shadow"
secondaryButtonStyle="radial-glow"
@@ -42,7 +42,7 @@ export default function LandingPage() {
<HeroCentered
title="Discover Something New"
description="Unlock random facts, quotes, ideas, and brain teasers that inspire curiosity and expand your mind. Click the button below to reveal something amazing."
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
avatars={[
{
src: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", alt: "curious person thinking exploring ideas"
@@ -70,27 +70,27 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Surprising Facts", description: "Learn mind-blowing facts about science, history, nature, and the world around us.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg?_wi=1", imageAlt: "Surprising facts illustration"
title: "Surprising Facts", description: "Learn mind-blowing facts about science, history, nature, and the world around us.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", imageAlt: "Surprising facts illustration"
},
{
id: 2,
title: "Motivational Quotes", description: "Receive inspiring words to fuel your day and keep you motivated on your journey.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg?_wi=2", imageAlt: "Motivational quotes illustration"
title: "Motivational Quotes", description: "Receive inspiring words to fuel your day and keep you motivated on your journey.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", imageAlt: "Motivational quotes illustration"
},
{
id: 3,
title: "Business Ideas", description: "Explore innovative business concepts and entrepreneurial opportunities to spark your creativity.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg?_wi=3", imageAlt: "Business ideas illustration"
title: "Business Ideas", description: "Explore innovative business concepts and entrepreneurial opportunities to spark your creativity.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", imageAlt: "Business ideas illustration"
},
{
id: 4,
title: "Brain Teasers", description: "Challenge your mind with puzzles and riddles that make you think outside the box.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg?_wi=4", imageAlt: "Brain teasers illustration"
title: "Brain Teasers", description: "Challenge your mind with puzzles and riddles that make you think outside the box.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", imageAlt: "Brain teasers illustration"
},
{
id: 5,
title: "World Exploration", description: "Discover fascinating places around the globe and learn about unique cultures and destinations.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg?_wi=5", imageAlt: "World exploration illustration"
title: "World Exploration", description: "Discover fascinating places around the globe and learn about unique cultures and destinations.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", imageAlt: "World exploration illustration"
},
{
id: 6,
title: "Life Tips", description: "Get practical and fun tips to improve your daily life and add more joy to your routine.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg?_wi=6", imageAlt: "Life tips illustration"
title: "Life Tips", description: "Get practical and fun tips to improve your daily life and add more joy to your routine.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smart-speaker-home_23-2150171768.jpg", imageAlt: "Life tips illustration"
}
]}
textboxLayout="default"
@@ -111,6 +111,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-vector/looking-idea-background_1132-6.jpg"
imageAlt="Learning and growth journey"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
ariaLabel="About section explaining curiosity"
/>

View File

@@ -1,51 +1,38 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
fontSize?: number;
fontWeight?: number | string;
fill?: string;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 24,
fontWeight = 'bold',
fill = 'currentColor',
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * (fontSize * 0.6)} ${fontSize * 1.5}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;