This repository has been archived on 2026-02-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
diarywhisper/app/page.tsx

115 lines
2.6 KiB
TypeScript

'use client';
import React from 'react';
export default function Home() {
const commands = [
'expense add -desc "Coffee" -cost 3.50 -cat "Food"',
'expense report -from "2024-01-01" -to "2024-01-31"',
'expense daylog -text "Added team lunch" -date "2024-01-18"'
];
return (
<>
<div className='container'>
<div className='header'>
<h1>DiaryWhisper v1.0.0</h1>
<p>Your expenses and day logs tracked via Siri Shortcuts</p>
</div>
<div className='terminal'>
<div>Loading system components...</div>
<div>Initializing expense database... OK</div>
<div>Starting expense tracking daemon... OK</div>
<div>System ready_</div>
</div>
<div className='commands'>
<h2>Available Commands:</h2>
{commands.map((cmd, i) => (
<div key={i} className='command'>
<span>$ </span>
{cmd}
</div>
))}
</div>
<div className='status'>
<span>Status: OPERATIONAL</span>
<span>Database: CONNECTED</span>
<span>Last Backup: 2024-01-18 14:30 UTC</span>
</div>
</div>
<style jsx global>{`
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
background: #0a0a0a;
}
`}</style>
<style jsx>{`
.container {
min-height: 100vh;
padding: 2rem;
background: #0a0a0a;
color: #00ff00;
font-family: monospace;
}
.header {
text-align: center;
margin-bottom: 2rem;
}
.terminal {
background: #000;
border: 1px solid #00ff00;
padding: 1rem;
margin: 2rem 0;
max-width: 800px;
margin: 2rem auto;
}
.terminal div {
margin-bottom: 0.5rem;
}
.commands {
max-width: 800px;
margin: 2rem auto;
}
.command {
margin-bottom: 0.5rem;
}
.status {
max-width: 800px;
margin: 2rem auto;
padding-top: 1rem;
border-top: 1px solid #00ff00;
display: flex;
justify-content: space-between;
font-size: 0.9rem;
}
@media (max-width: 768px) {
.status {
flex-direction: column;
gap: 0.5rem;
}
}
`}</style>
</>
);
}