diff --git a/.roo/rules/rules.md b/.roo/rules/rules.md index c59aae1913..59c5135cfc 100644 --- a/.roo/rules/rules.md +++ b/.roo/rules/rules.md @@ -44,7 +44,7 @@ The frontend uses yarn (berry). ### Styling -- We use tailwind v4 to style. Custom stuff is defined in tailwindsetup.css. +- We use **Tailwind v4** to style. Custom stuff is defined in frontend/tailwindsetup.css - _never_ use cursor-help (it looks terrible) - We have custom CSS setup as well, so it is a hybrid system. For new code we prefer tailwind, and are working to migrate code to all use tailwind. diff --git a/frontend/app/modals/tos.scss b/frontend/app/modals/tos.scss deleted file mode 100644 index 1db743d367..0000000000 --- a/frontend/app/modals/tos.scss +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright 2024, Command Line Inc. -// SPDX-License-Identifier: Apache-2.0 - -.tos-modal { - width: 560px; - border-radius: 10px; - padding: 0; - - .modal-inner { - display: flex; - flex-direction: column; - overflow-y: auto; - padding: 30px; - width: 100%; - - header.tos-header { - flex-direction: column; - gap: 8px; - border-bottom: none; - padding: 0; - margin-bottom: 36px; - width: 100%; - - .logo { - margin-bottom: 10px; - display: flex; - justify-content: center; - } - - .modal-title { - text-align: center; - font-size: 25px; - font-weight: 400; - color: var(--main-text-color); - } - - .modal-subtitle { - color: var(--main-text-color); - text-align: center; - - font-style: normal; - font-weight: 300; - line-height: 20px; - } - } - - .tos-content { - display: flex; - flex-direction: column; - align-items: flex-start; - gap: 32px; - width: 100%; - margin-bottom: 0; - margin-bottom: 20px; - - .check-toggle-wrapper .toggle-label { - color: var(--secondary-text-color); - } - - .tips-wrapper { - display: flex; - flex-direction: row; - justify-content: center; - width: 100%; - - .tips-section { - display: flex; - flex-direction: column; - flex-grow: 1; - gap: 5px; - - .tip-section-header { - font-weight: bold; - margin-bottom: 5px; - margin-top: 10px; - - &:first-child { - margin-top: 0; - } - } - - .tip { - display: flex; - flex-direction: row; - align-items: center; - - .keybinding2 { - font: var(--fixed-font); - background-color: var(--highlight-bg-color); - color: var(--main-text-color); - padding: 2px 8px; - border-radius: 4px; - } - - .keybinding-group { - display: flex; - flex-direction: row; - align-items: center; - margin-left: 5px; - margin-right: 5px; - - &:first-child { - margin-left: 0; - } - } - - .keybinding { - display: inline-block; - padding: 0.1em 0.4em; - margin: 0 0.1em; - font-family: "SF Pro Text", "Segoe UI", sans-serif; - font-size: 0.85em; - color: #e0e0e0; - background-color: #333; - border-radius: 4px; - border: 1px solid #444; - box-shadow: none; - } - - .keybinding3 { - color: black; - display: inline-block; - padding: 0.2em 0.4em; - min-width: 24px; - height: 22px; - margin: 0 0.1em; - font-family: "SF Pro Text", "Segoe UI", sans-serif; - font-size: 0.9em; - border: 1px solid #aaa; - border-radius: 4px; - background-color: #ddd; - color: var(--invert-text-color); - box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1); - text-align: center; - } - - .icon-wrap { - background-color: var(--highlight-bg-color); - padding: 2px; - color: var(--secondary-text-color); - font-size: 12px; - border-radius: 2px; - margin-right: 5px; - - svg { - position: relative; - top: 3px; - left: 1px; - height: 13px; - #arrow1, - #arrow2 { - fill: var(--main-text-color); - } - } - } - } - } - } - - .content-section { - display: flex; - width: 100%; - align-items: center; - gap: 18px; - - .icon-wrapper { - .icon { - font-size: 32px; - color: rgba(255, 255, 255, 0.5); - } - - .fa-people-group { - font-size: 25px; - } - } - - .content-section-inner { - display: flex; - flex-direction: column; - align-items: flex-start; - gap: 4px; - flex: 1 0 0; - - .content-section-title { - color: var(--main-text-color); - font-style: normal; - line-height: 18px; - font-size: 16px; - margin-bottom: 5px; - } - - .content-section-text { - color: var(--secondary-text-color); - font-style: normal; - line-height: 20px; - - b { - color: var(--main-text-color); - } - } - - .content-section-field { - display: flex; - align-items: center; - gap: 8px; - } - - .check-toggle-wrapper { - margin-top: 5px; - - label { - font-size: 13px; - } - } - } - } - } - - footer { - .content-section-text { - text-align: center; - color: rgba(255, 255, 255, 0.7); - font-size: 11px; - } - - .button-wrapper { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - - button { - padding: 8px 20px; - font-size: 14px; - } - - button:not(:first-child) { - margin-left: 10px; - } - - button.disabled-button { - cursor: default; - } - } - } - } -} diff --git a/frontend/app/modals/tos.tsx b/frontend/app/modals/tos.tsx index 3dc900f29d..73cae01ef6 100644 --- a/frontend/app/modals/tos.tsx +++ b/frontend/app/modals/tos.tsx @@ -14,7 +14,6 @@ import { atoms, getApi } from "@/app/store/global"; import { modalsModel } from "@/app/store/modalmodel"; import { fireAndForget } from "@/util/util"; import { atom, PrimitiveAtom, useAtom, useAtomValue, useSetAtom } from "jotai"; -import "./tos.scss"; const pageNumAtom: PrimitiveAtom = atom(1); @@ -43,22 +42,22 @@ const ModalPage1 = () => { return ( <> -
-
+
+
-
Welcome to Wave Terminal
+
Welcome to Wave Terminal
-
-
-
+
+
+ -
-
Support us on GitHub
-
+
+
Support us on GitHub
+
We're open source and committed to providing a free terminal for individual users. Please show your support by giving us a star on{" "} @@ -67,15 +66,15 @@ const ModalPage1 = () => {
-
-
+
+ -
-
Join our Community
-
+
+
Join our Community
+
Get help, submit feature requests, report bugs, or just chat with fellow terminal enthusiasts.
@@ -85,13 +84,13 @@ const ModalPage1 = () => {
-
-
- +
+
+
-
-
Telemetry
-
+
+
Telemetry
+