feat(splash): add latest message entry

This commit is contained in:
2026-07-08 17:05:36 +08:00
parent c46b9b4cdd
commit 2704c7f307
10 changed files with 274 additions and 73 deletions
@@ -0,0 +1,63 @@
.root {
position: fixed;
right: max(calc((100vw - var(--app-max-width, 540px)) / 2), 0px);
bottom: 0;
left: max(calc((100vw - var(--app-max-width, 540px)) / 2), 0px);
z-index: 30;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
box-sizing: border-box;
width: min(100vw, var(--app-max-width, 540px));
margin: 0 auto;
padding:
10px
calc(var(--app-safe-right, 0px) + 14px)
calc(var(--app-safe-bottom, 0px) + 10px)
calc(var(--app-safe-left, 0px) + 14px);
border-top: 1px solid rgba(44, 29, 34, 0.08);
background: rgba(255, 255, 255, 0.86);
box-shadow: 0 -18px 48px rgba(53, 34, 40, 0.09);
backdrop-filter: blur(18px);
}
.button {
display: flex;
min-height: 54px;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px solid transparent;
border-radius: 18px;
background: transparent;
color: #8d777e;
cursor: pointer;
font: inherit;
font-size: clamp(12px, 2.963vw, 14px);
font-weight: 820;
transition:
background 0.18s ease,
color 0.18s ease,
transform 0.18s ease;
}
.button:hover {
background: rgba(255, 116, 159, 0.08);
color: #2d2024;
}
.button:active {
transform: scale(0.98);
}
.button:focus-visible {
outline: 2px solid #ff5d95;
outline-offset: 3px;
}
.active {
border-color: rgba(255, 116, 159, 0.2);
background: linear-gradient(135deg, rgba(255, 244, 236, 0.98), rgba(255, 232, 241, 0.96));
color: #201417;
box-shadow: 0 10px 24px rgba(255, 116, 159, 0.12);
}
@@ -0,0 +1,46 @@
"use client";
import { Camera, MessageCircle } from "lucide-react";
import styles from "./app-bottom-nav.module.css";
export type AppBottomNavItem = "chat" | "privateRoom";
export interface AppBottomNavProps {
activeItem?: AppBottomNavItem | null;
onChatClick: () => void;
onPrivateRoomClick: () => void;
}
export function AppBottomNav({
activeItem = null,
onChatClick,
onPrivateRoomClick,
}: AppBottomNavProps) {
return (
<nav className={styles.root} aria-label="Primary navigation">
<button
type="button"
className={getButtonClass(activeItem === "chat")}
aria-current={activeItem === "chat" ? "page" : undefined}
onClick={onChatClick}
>
<MessageCircle size={20} aria-hidden="true" />
<span>Chat</span>
</button>
<button
type="button"
className={getButtonClass(activeItem === "privateRoom")}
aria-current={activeItem === "privateRoom" ? "page" : undefined}
onClick={onPrivateRoomClick}
>
<Camera size={20} aria-hidden="true" />
<span>Elio Private room</span>
</button>
</nav>
);
}
function getButtonClass(active: boolean): string {
return [styles.button, active ? styles.active : ""].filter(Boolean).join(" ");
}
+1
View File
@@ -2,6 +2,7 @@
* @file Automatically generated by barrelsby.
*/
export * from "./app-bottom-nav";
export * from "./bottom-sheet";
export * from "./checkbox";
export * from "./dialog";