Skip to content
Merged
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
Binary file added apps/lms/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/lms/app/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions apps/lms/app/icon0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/lms/app/icon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions apps/lms/app/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "BeeWise",
"short_name": "BeeWise",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
10 changes: 8 additions & 2 deletions apps/lms/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,20 @@ const nextConfig: NextConfig = {
],
},
async rewrites() {
if (!apiBaseUrl) {
return [];
}

const formattedBaseUrl = apiBaseUrl.replace(/\/$/, "");

return [
{
source: "/api/ai/:path*",
destination: `${apiBaseUrl}/api/ai/:path*`,
destination: `${formattedBaseUrl}/api/ai/:path*`,
},
{
source: "/api/:path*",
destination: `${apiBaseUrl}/:path*`,
destination: `${formattedBaseUrl}/:path*`,
},
];
},
Expand Down
Binary file added apps/sale/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/sale/app/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions apps/sale/app/icon0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/sale/app/icon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions apps/sale/app/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "BeeWise",
"short_name": "BeeWise",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
18 changes: 8 additions & 10 deletions apps/sale/features/auth/components/AuthLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,27 @@ export function AuthLayout({ children, variant = "login" }: AuthLayoutProps) {
className="flex items-center gap-3"
aria-label="BeeWise - Về trang chủ"
>
<div className="relative w-10 h-10 rounded-full bg-white overflow-hidden shrink-0">
<div className="relative w-18 h-18 rounded-full bg-white overflow-hidden shrink-0">
<Image
src="/brand/beewise-logo-nobackground.PNG"
src="https://res.cloudinary.com/xcrm6ykz/image/upload/v1789964842/Logo_1.png"
alt="BeeWise Logo"
fill
sizes="40px"
className="object-contain p-1"
/>
</div>
<span
className="text-white text-lg leading-none"
style={{ fontFamily: "var(--font-nunito-family)", fontWeight: 800 }}
>
Cộng Đồng Gia Sư
</span>
</Link>

<div className="text-white/90">
<blockquote
className="text-2xl leading-snug mb-4"
style={{ fontFamily: "var(--font-nunito-family)", fontWeight: 800 }}
style={{
fontFamily: "var(--font-nunito-family)",
fontWeight: 800,
}}
>
&quot;Gia nhập BeeWise,<br />
&quot;Gia nhập BeeWise,
<br />
Kiến tạo tương lai.&quot;
</blockquote>
<p className="text-sm text-white/70">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const SHOWCASE_ITEMS: ShowcaseItem[] = [
title: "Gia Sư Được Xác Thực",
subtitle: "Hồ sơ minh bạch, uy tín tuyệt đối",
description:
"Mọi gia sư trên BeeWise đều phải hoàn thành quy trình xác thực đa tầng gồm kiểm tra thông tin, bằng cấp chuyên môn, chứng chỉ quốc tế và phỏng vấn trực tiếp trước khi nhận lớp.",
"Mọi gia sư trên BeeWise đều phải hoàn thành quy trình xác thực đa tầng gồm kiểm tra thông tin, bằng cấp chuyên môn, chứng chỉ quốc tế và phỏng vấn trước khi nhận lớp.",
benefits: [
"100% hồ sơ được kiểm duyệt thực tế",
"Bằng cấp, chứng chỉ rõ ràng, công khai",
Expand Down
97 changes: 73 additions & 24 deletions apps/sale/features/landing/components/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import Link from "next/link";
import { HeroMotion } from "@workspace/ui/components/HeroMotion";
import { HeroCarousel } from "./HeroCarousel";
import { LightningIcon } from "@phosphor-icons/react";
import { FunnelIcon } from "lucide-react";

export function HeroSection() {
const router = useRouter();
const [query, setQuery] = useState("");
const [isFocused, setIsFocused] = useState(false);

const handleSearch = () => {
if (query.trim()) {
Expand Down Expand Up @@ -69,43 +71,90 @@ export function HeroSection() {
}}
aria-hidden="true"
/>
<div className="relative z-10 rounded-[14.5px] p-3.5 flex items-center gap-3 bg-card w-full h-full">
<input
type="text"
id="hero-ai-search"
placeholder='Ví dụ: "Gia sư Toán lớp 12, học online, 200.000đ/buổi"'
className="flex-1 bg-transparent text-sm text-foreground placeholder-foreground/35 outline-none min-w-0"
aria-label="Nhập nhu cầu tìm gia sư"
value={query}
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") handleSearch();
}}
/>
<div className="relative z-10 rounded-[14.5px] p-2.5 sm:p-3.5 flex items-center gap-2 sm:gap-3 bg-card w-full">
<div className="relative flex-1 min-w-0 flex items-center overflow-hidden py-1">
<input
type="text"
id="hero-ai-search"
placeholder='Ví dụ: "Gia sư Toán lớp 12, học online, 200.000đ/buổi"'
className="w-full bg-transparent text-xs sm:text-sm text-foreground outline-none placeholder:text-foreground/35 placeholder:opacity-0 sm:placeholder:opacity-100 min-w-0 relative z-10 leading-normal"
aria-label="Nhập nhu cầu tìm gia sư"
value={query}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") handleSearch();
}}
/>

{/* Running placeholder marquee for mobile when input is empty & not focused */}
{!query && !isFocused && (
<div
aria-hidden="true"
className="absolute inset-y-0 left-0 right-0 pointer-events-none flex items-center overflow-hidden sm:hidden select-none"
style={{
maskImage:
"linear-gradient(to right, black 75%, transparent 95%)",
WebkitMaskImage:
"linear-gradient(to right, black 75%, transparent 95%)",
}}
>
<div className="animate-marquee-text text-xs text-foreground/35 leading-normal flex items-center flex-nowrap whitespace-nowrap">
<span className="whitespace-nowrap shrink-0 pr-12">
Ví dụ: &quot;Gia sư Toán lớp 12, học online,
200.000đ/buổi&quot;
</span>
<span className="whitespace-nowrap shrink-0 pr-12">
Ví dụ: &quot;Gia sư Toán lớp 12, học online,
200.000đ/buổi&quot;
</span>
</div>
</div>
)}
</div>

<button
type="button"
onClick={handleSearch}
id="hero-cta-primary"
className="shrink-0 inline-flex h-9 items-center justify-center rounded-full bg-primary px-5 text-sm font-bold text-primary-foreground transition-all duration-200 hover:bg-primary/90 active:scale-[0.98] whitespace-nowrap shadow-lg shadow-primary/30"
className="shrink-0 inline-flex h-9 items-center justify-center rounded-full bg-primary px-3.5 sm:px-5 text-xs sm:text-sm font-bold text-primary-foreground transition-all duration-200 hover:bg-primary/90 active:scale-[0.98] whitespace-nowrap shadow-lg shadow-primary/30"
>
<LightningIcon
size={16}
className="mr-2"
size={15}
className="mr-1 sm:mr-2"
aria-hidden="true"
/>
Tìm Ngay
</button>
</div>
</div>

<div className="flex items-center gap-4">
<Link
href="/tutors?mode=manual"
id="hero-cta-secondary"
className="inline-flex h-10 items-center justify-center rounded-full border-2 border-primary px-6 text-sm font-semibold text-primary transition-all duration-200 hover:bg-primary hover:text-primary-foreground active:scale-[0.98]"
>
Tìm kiếm thủ công
</Link>
<div className="flex flex-wrap items-center justify-between gap-y-2 gap-x-4 px-1 text-xs sm:text-sm text-foreground/60">
<div className="flex items-center gap-2">
<span className="text-foreground/50">Hoặc:</span>
<Link
href="/tutors?mode=manual"
id="hero-cta-secondary"
className="inline-flex items-center gap-1.5 rounded-full border border-primary/25 bg-accent/5 px-3.5 py-1 text-xs font-semibold text-accent transition-all duration-200 hover:bg-primary/10 hover:border-primary/40 active:scale-[0.98] group"
>
<span>Xem danh sách gia sư</span>
</Link>
</div>

<div className="flex items-center gap-1.5">
<span className="text-xs text-foreground/45">Gợi ý:</span>
{["Toán 12", "IELTS", "Tiếng Anh"].map((tag) => (
<button
key={tag}
type="button"
onClick={() => setQuery(`Gia sư ${tag}`)}
className="rounded-full bg-accent/70 px-2.5 py-0.5 text-xs font-medium text-primary/75 transition-all hover:bg-primary/10 hover:text-primary cursor-pointer active:scale-95"
>
{tag}
</button>
))}
</div>
</div>
</div>
</HeroMotion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function VideoIntroSection() {
<PlayCircle
size={48}
weight="fill"
className="text-primary ml-1 sm:ml-2 sm:w-[56px] sm:h-[56px]"
className="text-primary sm:w-[56px] sm:h-[56px]"
/>
</div>
</div>
Expand Down
Loading
Loading