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
55 changes: 55 additions & 0 deletions src/apps/UnitConverter/UnitConverter.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,58 @@
border: 1px solid var(--color-border);
border-radius: 6px;
}

.converter.app-design {
padding: 24px;
gap: 20px;
}

.converter > label {
flex: 0;
}

.converter__units {
padding: 18px;
border: 1px solid var(--color-border);
border-radius: 18px;
background: var(--color-surface);
gap: 18px;
}

.converter label {
color: var(--color-text-dim);
gap: 9px;
}

.converter__units label {
min-width: 130px;
}

.converter__result {
padding: 24px;
background: linear-gradient(120deg, var(--app-tint), var(--color-surface));
border: 1px solid
color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
border-radius: 18px;
font-size: clamp(28px, 8cqw, 42px);
font-weight: 650;
letter-spacing: -0.04em;
box-shadow: 0 8px 20px #0001;
}

.converter__actions button {
flex: 1;
font-weight: 600;
}

.converter > p {
font-size: 12px;
color: var(--color-text-dim);
line-height: 1.6;
}

@media (max-width: 600px) {
.converter.app-design {
padding: 14px;
}
}
9 changes: 8 additions & 1 deletion src/apps/UnitConverter/UnitConverter.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AppHeading } from "../shared/AppHeading";
import { ArrowLeftRight } from "lucide-react";
import { useState } from "react";
import type { AppProps } from "../../types";
import { useConverterStore } from "../../stores/useConverterStore";
Expand Down Expand Up @@ -30,7 +32,12 @@ export function UnitConverter(_props: AppProps) {
}

return (
<section className="converter" aria-label="Unit Converter">
<section className="converter app-design" aria-label="Unit Converter">
<AppHeading
icon={ArrowLeftRight}
title="Unit Converter"
subtitle="EVERYDAY CALCULATIONS"
/>
<label>
Category
<select
Expand Down
2 changes: 1 addition & 1 deletion src/apps/registry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const appRegistry: Record<AppId, AppDefinition> = {
icon: "ArrowLeftRight",
component: UnitConverter,
defaultWidth: 440,
defaultHeight: 560,
defaultHeight: 740,
minWidth: 300,
minHeight: 320,
singleInstance: true,
Expand Down
Loading