Initial commit
This commit is contained in:
401
.superdesign/design_iterations/recycle_c_end_1.html
Normal file
401
.superdesign/design_iterations/recycle_c_end_1.html
Normal file
@@ -0,0 +1,401 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<title>废品回收C端原型</title>
|
||||
|
||||
<!-- Tailwind CSS for utility classes -->
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
|
||||
<!-- Lucide Icons -->
|
||||
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
|
||||
|
||||
<!-- Link to our generated theme -->
|
||||
<link rel="stylesheet" href="design_iterations/recycle_theme_1.css">
|
||||
|
||||
<style>
|
||||
/* General Body Styling */
|
||||
body {
|
||||
background-color: #f0f2f5; /* A neutral background to highlight the app */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
min-height: 100vh;
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
font-family: var(--font-sans) !important;
|
||||
}
|
||||
|
||||
/* App container to simulate a phone screen */
|
||||
.app-container {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
height: 850px;
|
||||
background-color: var(--background);
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: var(--shadow-2xl);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border: 8px solid #111;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.status-bar {
|
||||
height: 30px;
|
||||
background-color: #111;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 1rem;
|
||||
color: white;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.status-bar .camera-notch {
|
||||
width: 120px;
|
||||
height: 20px;
|
||||
background: #111;
|
||||
border-radius: 0 0 10px 10px;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
color: var(--foreground);
|
||||
flex-shrink: 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.page {
|
||||
flex-grow: 1;
|
||||
overflow-y: auto;
|
||||
padding: 1.5rem;
|
||||
background-color: var(--background);
|
||||
animation: fadeIn 0.4s ease-out;
|
||||
}
|
||||
|
||||
.page.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Custom styles using theme variables */
|
||||
h2 {
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: 700;
|
||||
color: var(--foreground);
|
||||
margin-bottom: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
h2 i {
|
||||
margin-right: 0.75rem;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: var(--card);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.5rem;
|
||||
box-shadow: var(--shadow);
|
||||
margin-bottom: 1.5rem;
|
||||
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
||||
}
|
||||
.card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.main-action-card {
|
||||
background: linear-gradient(135deg, var(--primary), oklch(0.75 0.20 145));
|
||||
color: var(--primary-foreground);
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.main-action-card h3 {
|
||||
font-size: var(--font-size-2xl);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.price-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
|
||||
gap: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
.price-item .price {
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
.price-item .unit {
|
||||
font-size: 0.8rem;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
|
||||
/* Navigation Bar */
|
||||
.nav-bar {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 0.75rem 0;
|
||||
background-color: var(--card);
|
||||
border-top: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.nav-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
font-size: 0.8rem;
|
||||
color: var(--muted-foreground);
|
||||
cursor: pointer;
|
||||
transition: color 0.2s, transform 0.2s;
|
||||
}
|
||||
.nav-item.active {
|
||||
color: var(--primary);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.nav-item i {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
/* QR Code Modal */
|
||||
.qr-modal {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(8px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 50;
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
transition: opacity 0.4s ease-out, transform 0.4s ease-out;
|
||||
pointer-events: none;
|
||||
}
|
||||
.qr-modal.visible {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
pointer-events: auto;
|
||||
}
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 45px;
|
||||
right: 20px;
|
||||
cursor: pointer;
|
||||
color: var(--foreground);
|
||||
}
|
||||
|
||||
/* Animation Keyframes */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes balance-update {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.15); color: var(--accent); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
.balance-amount {
|
||||
animation: balance-update 0.8s ease-out;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="app-container">
|
||||
<div class="status-bar">
|
||||
<span>14:30</span>
|
||||
<div class="camera-notch"></div>
|
||||
<div class="flex items-center space-x-1">
|
||||
<i data-lucide="bar-chart-2" class="w-4 h-4"></i>
|
||||
<i data-lucide="wifi" class="w-4 h-4"></i>
|
||||
<span>90%</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main Content Area -->
|
||||
<main class="flex-grow overflow-hidden">
|
||||
<!-- Home Page -->
|
||||
<div id="home-page" class="page">
|
||||
<div id="qr-code-button" class="card main-action-card">
|
||||
<h3 class="mb-2">我的卖品码</h3>
|
||||
<div class="mx-auto bg-white p-2 rounded-md w-32 h-32 mb-2 flex items-center justify-center">
|
||||
<img src="https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=userID-12345" alt="QR Code">
|
||||
</div>
|
||||
<p class="text-sm opacity-90">点击展示二维码</p>
|
||||
</div>
|
||||
|
||||
<h2><i data-lucide="map-pin"></i>附近小站</h2>
|
||||
<div class="card">
|
||||
<div class="flex items-center justify-between">
|
||||
<div>
|
||||
<p class="font-bold text-lg text-gray-800">幸福社区回收站</p>
|
||||
<p class="text-sm text-gray-500">营业时间: 08:00 - 20:00</p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p class="font-bold text-green-600">500米</p>
|
||||
<a href="#" class="text-sm text-blue-500">去这里 ></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><i data-lucide="tag"></i>今日回收价</h2>
|
||||
<div class="card">
|
||||
<div class="price-grid">
|
||||
<div class="price-item">
|
||||
<p class="font-bold">纸壳</p>
|
||||
<p class="price">1.2</p>
|
||||
<p class="unit">元/斤</p>
|
||||
</div>
|
||||
<div class="price-item">
|
||||
<p class="font-bold">塑料瓶</p>
|
||||
<p class="price">2.0</p>
|
||||
<p class="unit">元/斤</p>
|
||||
</div>
|
||||
<div class="price-item">
|
||||
<p class="font-bold">铁皮</p>
|
||||
<p class="price">0.8</p>
|
||||
<p class="unit">元/斤</p>
|
||||
</div>
|
||||
<div class="price-item">
|
||||
<p class="font-bold">旧衣服</p>
|
||||
<p class="price">0.5</p>
|
||||
<p class="unit">元/斤</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- "My" Page -->
|
||||
<div id="my-page" class="page hidden">
|
||||
<div class="card text-center">
|
||||
<p class="text-gray-500 text-lg">我的余额</p>
|
||||
<p class="font-bold text-5xl my-4 text-gray-800 balance-amount">¥ 128.50</p>
|
||||
<button class="w-full bg-green-500 text-white font-bold py-3 rounded-lg text-lg hover:bg-green-600 transition-colors">
|
||||
提 现
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<h2><i data-lucide="history"></i>交易记录</h2>
|
||||
<div class="card divide-y divide-gray-200 p-0">
|
||||
<div class="p-4 flex justify-between items-center">
|
||||
<div>
|
||||
<p class="font-bold text-gray-800">卖纸壳</p>
|
||||
<p class="text-sm text-gray-500">12月21日 14:30</p>
|
||||
</div>
|
||||
<p class="font-bold text-green-600 text-xl">+ ¥6.00</p>
|
||||
</div>
|
||||
<div class="p-4 flex justify-between items-center">
|
||||
<div>
|
||||
<p class="font-bold text-gray-800">卖塑料瓶</p>
|
||||
<p class="text-sm text-gray-500">12月20日 10:15</p>
|
||||
</div>
|
||||
<p class="font-bold text-green-600 text-xl">+ ¥6.00</p>
|
||||
</div>
|
||||
<div class="p-4 text-center text-blue-500 cursor-pointer hover:bg-gray-50">
|
||||
查看更多
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><i data-lucide="phone"></i>联系客服</h2>
|
||||
<div class="card">
|
||||
<p class="font-bold text-gray-800">客服热线: 400-888-8888</p>
|
||||
<p class="text-sm text-gray-500">工作时间: 09:00 - 18:00</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Navigation Bar -->
|
||||
<nav class="nav-bar">
|
||||
<div id="nav-home" class="nav-item active">
|
||||
<i data-lucide="home"></i>
|
||||
<span>首页</span>
|
||||
</div>
|
||||
<div id="nav-my" class="nav-item">
|
||||
<i data-lucide="user"></i>
|
||||
<span>我的</span>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- QR Code Modal -->
|
||||
<div id="qr-modal" class="qr-modal">
|
||||
<div id="close-qr-modal" class="close-btn">
|
||||
<i data-lucide="x" class="w-10 h-10"></i>
|
||||
</div>
|
||||
<p class="text-2xl font-bold text-gray-800 mb-4">我的卖品码</p>
|
||||
<div class="bg-white p-6 rounded-2xl shadow-xl">
|
||||
<img src="https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=userID-12345" alt="Full QR Code">
|
||||
</div>
|
||||
<p class="mt-4 text-lg text-gray-600">请站长扫描此二维码</p>
|
||||
<p class="mt-2 text-xl font-bold text-gray-800">王大妈 (ID: 158****2345)</p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Initialize Lucide Icons
|
||||
lucide.createIcons();
|
||||
|
||||
// Page Navigation
|
||||
const pages = {
|
||||
home: document.getElementById('home-page'),
|
||||
my: document.getElementById('my-page')
|
||||
};
|
||||
const navItems = {
|
||||
home: document.getElementById('nav-home'),
|
||||
my: document.getElementById('nav-my')
|
||||
};
|
||||
|
||||
function showPage(pageName) {
|
||||
Object.values(pages).forEach(page => page.classList.add('hidden'));
|
||||
pages[pageName].classList.remove('hidden');
|
||||
|
||||
Object.values(navItems).forEach(item => item.classList.remove('active'));
|
||||
navItems[pageName].classList.add('active');
|
||||
}
|
||||
|
||||
navItems.home.addEventListener('click', () => showPage('home'));
|
||||
navItems.my.addEventListener('click', () => {
|
||||
showPage('my');
|
||||
// Re-trigger balance animation for demo
|
||||
const balanceEl = document.querySelector('.balance-amount');
|
||||
balanceEl.style.animation = 'none';
|
||||
setTimeout(() => {
|
||||
balanceEl.style.animation = '';
|
||||
}, 10);
|
||||
});
|
||||
|
||||
// QR Code Modal
|
||||
const qrModal = document.getElementById('qr-modal');
|
||||
const qrCodeButton = document.getElementById('qr-code-button');
|
||||
const closeQrModalButton = document.getElementById('close-qr-modal');
|
||||
|
||||
qrCodeButton.addEventListener('click', () => {
|
||||
qrModal.classList.add('visible');
|
||||
// Simulate increasing screen brightness
|
||||
document.querySelector('.app-container').style.filter = 'brightness(110%)';
|
||||
});
|
||||
|
||||
closeQrModalButton.addEventListener('click', () => {
|
||||
qrModal.classList.remove('visible');
|
||||
document.querySelector('.app-container').style.filter = 'brightness(100%)';
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
91
.superdesign/design_iterations/recycle_theme_1.css
Normal file
91
.superdesign/design_iterations/recycle_theme_1.css
Normal file
@@ -0,0 +1,91 @@
|
||||
:root {
|
||||
/* 基础颜色 */
|
||||
--background: oklch(0.9900 0 0);
|
||||
--foreground: oklch(0.2000 0 0);
|
||||
|
||||
/* 主色调 - 清新绿色 */
|
||||
--primary: oklch(0.6800 0.1800 142.4953);
|
||||
--primary-foreground: oklch(1.0000 0 0);
|
||||
|
||||
/* 次要色调 - 浅灰色 */
|
||||
--secondary: oklch(0.9500 0.0100 0);
|
||||
--secondary-foreground: oklch(0.3000 0 0);
|
||||
|
||||
/* 静音色 - 更浅的灰色 */
|
||||
--muted: oklch(0.9700 0.0050 0);
|
||||
--muted-foreground: oklch(0.5000 0 0);
|
||||
|
||||
/* 强调色 - 温暖橙色 */
|
||||
--accent: oklch(0.7200 0.1500 50.0000);
|
||||
--accent-foreground: oklch(1.0000 0 0);
|
||||
|
||||
/* 破坏性操作 - 柔和红色 */
|
||||
--destructive: oklch(0.5770 0.2000 27.3250);
|
||||
--destructive-foreground: oklch(1.0000 0 0);
|
||||
|
||||
/* 边框和输入框 */
|
||||
--border: oklch(0.9200 0.0100 0);
|
||||
--input: oklch(0.9800 0 0);
|
||||
--ring: oklch(0.6800 0.1800 142.4953);
|
||||
|
||||
/* 卡片和弹出层 */
|
||||
--card: oklch(1.0000 0 0);
|
||||
--card-foreground: oklch(0.2000 0 0);
|
||||
--popover: oklch(1.0000 0 0);
|
||||
--popover-foreground: oklch(0.2000 0 0);
|
||||
|
||||
/* 图表颜色 */
|
||||
--chart-1: oklch(0.6800 0.1800 142.4953);
|
||||
--chart-2: oklch(0.7200 0.1500 50.0000);
|
||||
--chart-3: oklch(0.6000 0.1500 200.0000);
|
||||
--chart-4: oklch(0.7500 0.1200 100.0000);
|
||||
--chart-5: oklch(0.6500 0.1000 300.0000);
|
||||
|
||||
/* 侧边栏 */
|
||||
--sidebar: oklch(0.9800 0 0);
|
||||
--sidebar-foreground: oklch(0.2000 0 0);
|
||||
--sidebar-primary: oklch(0.6800 0.1800 142.4953);
|
||||
--sidebar-primary-foreground: oklch(1.0000 0 0);
|
||||
--sidebar-accent: oklch(0.7200 0.1500 50.0000);
|
||||
--sidebar-accent-foreground: oklch(1.0000 0 0);
|
||||
--sidebar-border: oklch(0.9200 0.0100 0);
|
||||
--sidebar-ring: oklch(0.6800 0.1800 142.4953);
|
||||
|
||||
/* 字体 - 使用思源黑体和苹方,确保中文显示效果 */
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Microsoft YaHei", "WenQuanYi Micro Hei", "Open Sans", sans-serif;
|
||||
--font-serif: "Source Han Serif CN", "Songti SC", "SimSun", serif;
|
||||
--font-mono: "JetBrains Mono", "Source Code Pro", "Consolas", monospace;
|
||||
|
||||
/* 圆角 - 适中的圆角,友好但不失专业 */
|
||||
--radius: 0.75rem;
|
||||
--radius-sm: 0.5rem;
|
||||
--radius-md: 0.75rem;
|
||||
--radius-lg: 1rem;
|
||||
--radius-xl: 1.5rem;
|
||||
|
||||
/* 阴影 - 柔和的阴影效果 */
|
||||
--shadow-2xs: 0 1px 2px 0px rgba(0, 0, 0, 0.03);
|
||||
--shadow-xs: 0 1px 3px 0px rgba(0, 0, 0, 0.05);
|
||||
--shadow-sm: 0 2px 4px 0px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
|
||||
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
--shadow-md: 0 6px 10px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
||||
--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
|
||||
|
||||
/* 字间距 */
|
||||
--tracking-normal: 0.02em;
|
||||
|
||||
/* 间距 - 较大的基础间距,适合老年用户 */
|
||||
--spacing: 0.375rem;
|
||||
|
||||
/* 特殊变量 - 适老化设计 */
|
||||
--font-size-base: 18px;
|
||||
--font-size-lg: 20px;
|
||||
--font-size-xl: 24px;
|
||||
--font-size-2xl: 28px;
|
||||
--font-size-3xl: 36px;
|
||||
--line-height-relaxed: 1.75;
|
||||
--button-height: 56px;
|
||||
--tap-target-min: 48px;
|
||||
}
|
||||
Reference in New Issue
Block a user