ui fixes
This commit is contained in:
parent
3323ad1b69
commit
5cf8d27ad1
@ -26,12 +26,6 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- HEADER FOR BETTER SEO -->
|
|
||||||
<svelte:head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width" />
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="w-full max-w-3xl sm:max-w-[1400px] overflow-hidden min-h-screen pb-40 pt-5 px-4 lg:px-3"
|
class="w-full max-w-3xl sm:max-w-[1400px] overflow-hidden min-h-screen pb-40 pt-5 px-4 lg:px-3"
|
||||||
>
|
>
|
||||||
@ -48,9 +42,10 @@
|
|||||||
class="relative flex justify-center items-start overflow-hidden w-full"
|
class="relative flex justify-center items-start overflow-hidden w-full"
|
||||||
>
|
>
|
||||||
<main class="w-full lg:w-3/4 lg:pr-10">
|
<main class="w-full lg:w-3/4 lg:pr-10">
|
||||||
<h1 class="mb-6 text-white text-2xl sm:text-3xl font-bold">
|
<h1 class="mb-3 text-white text-2xl sm:text-3xl font-bold">
|
||||||
{activeIdx === 0 ? "Market Flow" : "Sector Flow"}
|
{activeIdx === 0 ? "Market Flow" : "Sector Flow"}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<nav class=" border-b-[2px] overflow-x-scroll whitespace-nowrap">
|
<nav class=" border-b-[2px] overflow-x-scroll whitespace-nowrap">
|
||||||
<ul class="flex flex-row items-center w-full text-lg text-white">
|
<ul class="flex flex-row items-center w-full text-lg text-white">
|
||||||
{#each tabs as item, i}
|
{#each tabs as item, i}
|
||||||
|
|||||||
@ -43,7 +43,6 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
let activeIdx = 0;
|
let activeIdx = 0;
|
||||||
let subActiveIdx = 0;
|
|
||||||
|
|
||||||
let expandedDescriptions: { [key: string]: boolean } = {};
|
let expandedDescriptions: { [key: string]: boolean } = {};
|
||||||
|
|
||||||
@ -141,8 +140,8 @@
|
|||||||
>
|
>
|
||||||
{#each tabs as item, i}
|
{#each tabs as item, i}
|
||||||
<button
|
<button
|
||||||
on:click={() => (subActiveIdx = i)}
|
on:click={() => (activeIdx = i)}
|
||||||
class="p-2 px-5 cursor-pointer {subActiveIdx === i
|
class="p-2 px-5 cursor-pointer {activeIdx === i
|
||||||
? 'text-white bg-primary sm:hover:bg-opacity-[0.95] font-semibold'
|
? 'text-white bg-primary sm:hover:bg-opacity-[0.95] font-semibold'
|
||||||
: 'text-gray-400 sm:hover:text-white sm:hover:bg-primary sm:hover:bg-opacity-[0.95]'}"
|
: 'text-gray-400 sm:hover:text-white sm:hover:bg-primary sm:hover:bg-opacity-[0.95]'}"
|
||||||
>
|
>
|
||||||
@ -152,7 +151,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{#if subActiveIdx === 0}
|
{#if activeIdx === 0}
|
||||||
<h3
|
<h3
|
||||||
class="text-white text-lg sm:text-xl font-semibold mb-2 mt-6 border-y border-gray-800 pt-2 pb-2"
|
class="text-white text-lg sm:text-xl font-semibold mb-2 mt-6 border-y border-gray-800 pt-2 pb-2"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -1,12 +1,15 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {
|
import {
|
||||||
numberOfUnreadNotification,
|
|
||||||
displayCompanyName,
|
displayCompanyName,
|
||||||
stockTicker,
|
stockTicker,
|
||||||
analystEstimateComponent,
|
analystEstimateComponent,
|
||||||
screenWidth,
|
screenWidth,
|
||||||
} from "$lib/store";
|
} from "$lib/store";
|
||||||
import { abbreviateNumber, monthNames } from "$lib/utils";
|
import {
|
||||||
|
abbreviateNumber,
|
||||||
|
monthNames,
|
||||||
|
removeCompanyStrings,
|
||||||
|
} from "$lib/utils";
|
||||||
|
|
||||||
import { Chart } from "svelte-echarts";
|
import { Chart } from "svelte-echarts";
|
||||||
import { init, use } from "echarts/core";
|
import { init, use } from "echarts/core";
|
||||||
@ -462,9 +465,38 @@
|
|||||||
class="w-full relative flex justify-center items-center overflow-hidden"
|
class="w-full relative flex justify-center items-center overflow-hidden"
|
||||||
>
|
>
|
||||||
<div class="sm:pl-4 sm:pt-4 w-full m-auto mt-2 sm:mt-0">
|
<div class="sm:pl-4 sm:pt-4 w-full m-auto mt-2 sm:mt-0">
|
||||||
<h1 class="mb-px text-xl sm:text-2xl font-bold bp:text-3xl sm:pl-1">
|
<div
|
||||||
{$displayCompanyName} Forecast
|
class="flex flex-col sm:flex-row items-start sm:items-center sm:justify-between"
|
||||||
</h1>
|
>
|
||||||
|
<h1 class="mb-px text-xl sm:text-2xl font-bold bp:text-3xl sm:pl-1">
|
||||||
|
{removeCompanyStrings($displayCompanyName)} Forecast
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="mb-2 sm:mb-0 mt-2 sm:mt-0 inline-flex w-full rounded-md shadow-sm shadow-[#1E222D] sm:w-auto ml-auto text-sm border border-gray-800"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="w-full text-sm rounded-none rounded-l-md px-2 bp:px-3 sm:w-auto sm:px-4 py-1.5 bg-secondary text-white"
|
||||||
|
>All Analysts</button
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="text-sm w-full rounded-none rounded-r-md px-2 bp:px-3 sm:w-auto sm:px-4 py-1.5 bg-table sm:hover:bg-secondary transition duration-50 ease-out"
|
||||||
|
>Top Analysts
|
||||||
|
<svg
|
||||||
|
class="w-4 h-4 ml-1 text-icon-faded inline-block"
|
||||||
|
viewBox="0 0 20 20"
|
||||||
|
fill="currentColor"
|
||||||
|
style="max-width:40px"
|
||||||
|
><path
|
||||||
|
fill-rule="evenodd"
|
||||||
|
d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
></path></svg
|
||||||
|
></button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="w-full mb-6 mt-3">
|
<div class="w-full mb-6 mt-3">
|
||||||
<div
|
<div
|
||||||
class="rounded-sm border border-gray-600 p-0.5 xs:p-1 md:flex md:flex-col md:space-y-4 md:divide-y md:p-4 lg:flex-row lg:space-x-4 lg:space-y-0 lg:divide-x lg:divide-y-0 divide-gray-600"
|
class="rounded-sm border border-gray-600 p-0.5 xs:p-1 md:flex md:flex-col md:space-y-4 md:divide-y md:p-4 lg:flex-row lg:space-x-4 lg:space-y-0 lg:divide-x lg:divide-y-0 divide-gray-600"
|
||||||
@ -475,6 +507,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="flex items-baseline justify-between">
|
<div class="flex items-baseline justify-between">
|
||||||
<h2 class="mb-1 text-xl font-bold">Stock Price Forecast</h2>
|
<h2 class="mb-1 text-xl font-bold">Stock Price Forecast</h2>
|
||||||
|
|
||||||
<span></span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
@ -566,7 +599,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="w-full rounded-sm border border-gray-600 mt-8 sm:mt-0 p-3 divide-gray-600 lg:flex lg:space-x-4 lg:divide-x"
|
class="w-full rounded-sm border border-gray-600 mt-8 p-3 divide-gray-600 lg:flex lg:space-x-4 lg:divide-x"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col justify-between p-1 lg:max-w-[32%] text-white"
|
class="flex flex-col justify-between p-1 lg:max-w-[32%] text-white"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user