Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ccards #5733

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Ccards #5733

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
2 changes: 1 addition & 1 deletion website/content/terminal/menus/forecast.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The Forecast menu is entered from the Main menu, `forecast`, or with the absolut

![The Forecast Menu](https://user-images.githubusercontent.com/85772166/233540050-071524c6-f374-4241-aa31-cf33b7685e22.png)

There are also methods for entering the menu with a loaded ticker symbol from either of the [`/crypto` menu](/terminal/menus/crypto/introduction.md) and [`/stocks` menu](/terminal/menus/stocks/introduction.md)
There are also methods for entering the menu with a loaded ticker symbol from either of the [`/crypto` menu](/terminal/menus/crypto) and [`/stocks` menu](/terminal/menus/stock)

The menu is divided into sections for:

Expand Down
2 changes: 1 addition & 1 deletion website/content/terminal/menus/stocks/tradinghours.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This set of features is for checking the operating status of markets globally.

## Usage

Enter, `th`, from the [`/stocks/`](/terminal/menus/stocks/introduction.md) menu. Or, with the absolute path:
Enter, `th`, from the [`/stocks/`](/terminal/menus/stocks) menu. Or, with the absolute path:

```console
/stocks/th
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The `about` command opens the browser to the OpenBB documentation pages for the
(🦋) / $ about stocks
```

The command above will open a browser to [Introduction to the Stocks menu](/terminal/menus/stocks/introduction.md).
The command above will open a browser to [Introduction to the Stocks menu](/terminal/menus/stocks).

### Support

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ A menu is a collection of commands (and sub-menus). A menu can be distinguished

Navigating through the Terminal menus is similar to traversing folders from any operating system's command line prompt. The `/home` screen is the main directory where everything begins, and the menus are paths branched from the main. Instead of `C:\Users\OpenBB\Documents`, you'll have something like `/stocks/options`. Instead of `cd ..`, you can do `..` to return the menu right above. To go back to the root menu you can do `/`.

Absolute paths are also valid to-and-from any point. From the [`/stocks/options`](/terminal/menus/stocks/options) menu, you can go directly to [`crypto`](/terminal/menus/crypto/introduction.md) menu with: `/crypto`. Note the forward slash at the start to denote the "absolute" path.
Absolute paths are also valid to-and-from any point. From the [`/stocks/options`](/terminal/menus/stocks/options) menu, you can go directly to [`crypto`](/terminal/menus/crypto) menu with: `/crypto`. Note the forward slash at the start to denote the "absolute" path.


<TutorialVideo
Expand Down
20 changes: 11 additions & 9 deletions website/src/components/General/NewReferenceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export default function NewReferenceCard({
return (
<Link
className={clsx(
"rounded border-2 hover:!text-black dark:hover:!text-white !no-underline p-6 cursor-pointer relative overflow-hidden hover:shadow-2xl hover:-translate-y-2 transform transition-all duration-300 ease-in-out font-bold shadow-2xl",
"rounded border-2 hover:!text-black dark:hover:!text-white !no-underline p-6 cursor-pointer relative overflow-hidden hover:-translate-y-2 transform transition-all duration-300 ease-in-out font-bold shadow-md",
{
"bg-[#b186bb] border-[#b186bb] hover:border-black dark:bg-[#3a204f] dark:border-[#3a204f] dark:hover:border-white": cleanedPath.startsWith("/bot"),
"bg-[#669DCB] border-[#669DCB] hover:border-black dark:bg-[#004A87] dark:border-[#004A87] dark:hover:border-white": cleanedPath.startsWith("/terminal"),
"bg-[#F5B166] border-[#F5B166] hover:border-black dark:bg-[#511d11] dark:border-[#511d11] dark:hover:border-white": cleanedPath.startsWith("/sdk") || cleanedPath.startsWith("/platform"),
"hover:bg-[#669DCB] border-[#669DCB] dark:hover:bg-[#004A87] dark:border-[#004A87]": cleanedPath.startsWith("/terminal"),
"hover:bg-[#b186bb] border-[#b186bb] dark:hover:bg-[#3a204f] dark:border-[#3a204f]": cleanedPath.startsWith("/bot"),
"hover:bg-[#F5B166] border-[#F5B166] dark:hover:bg-[#511d11] dark:border-[#511d11]": cleanedPath.startsWith("/sdk") || cleanedPath.startsWith("/platform"),
header_docs:
!cleanedPath.startsWith("/terminal") &&
!cleanedPath.startsWith("/sdk") &&
Expand All @@ -38,11 +38,13 @@ export default function NewReferenceCard({
to={url}
>
<div className="absolute top-0 right-0 left-0 bottom-0" />
<p className={"py-2 font-bold text-lg my-0"}>
{title}
{something}
</p>
<ChevronRightIcon className="absolute top-0 right-0 bottom-0 my-auto mr-4" />
<div className="flex items-center">
<p className={"py-2 font-bold text-lg my-0"}>
{title}
{something}
</p>
<ChevronRightIcon className="ml-auto mr-4" />
</div>
{description ? (
<p className="text-grey-900 dark:text-grey-200 text-xs font-medium mt-2 mb-0">{description}</p>
) : null}
Expand Down
Loading