mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 07:04:36 +00:00
added search and nav
This commit is contained in:
1 parent
7d0ec0dedc
commit
570f5fe111
5 files changed
+117
-27
No files matched your search
@@ -6,11 +6,18 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
icon?: IconDefinition;
|
||||
label?: string;
|
||||
textArea?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function Input({ label, icon, textArea, ...rest }: InputProps) {
|
||||
export default function Input({
|
||||
label,
|
||||
icon,
|
||||
textArea,
|
||||
className,
|
||||
...rest
|
||||
}: InputProps) {
|
||||
return (
|
||||
<div>
|
||||
<div className={className}>
|
||||
{label && <label className="sub-title">{label}</label>}
|
||||
|
||||
<div className={`form-group ${icon ? "input-icon" : ""}`}>
|
||||
|
||||
@@ -10,6 +10,8 @@ import {
|
||||
faFaceViewfinder,
|
||||
faCloudUpload,
|
||||
faWandMagicSparkles,
|
||||
faHome,
|
||||
faCompass,
|
||||
} from "@fortawesome/pro-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import Button from "components/common/Button/Button";
|
||||
@@ -231,7 +233,42 @@ export default function SideNav(props: SideNavProps) {
|
||||
className={`sidebar ${shouldShowSidebar ? "visible" : ""}`}
|
||||
>
|
||||
<ul className="sidebar-nav">
|
||||
<li className="sidebar-heading">{t("speechTitle")}</li>
|
||||
<li>
|
||||
<NavLink
|
||||
exact={true}
|
||||
to="/"
|
||||
activeClassName="active-link"
|
||||
onClick={handleNavLinkClick}
|
||||
>
|
||||
<FontAwesomeIcon icon={faHome} className="sidebar-heading-icon" />
|
||||
Home
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/pricing"
|
||||
activeClassName="active-link"
|
||||
onClick={handleNavLinkClick}
|
||||
>
|
||||
<FontAwesomeIcon icon={faStar} className="sidebar-heading-icon" />
|
||||
{t("infoPricing")}
|
||||
</NavLink>
|
||||
</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/explore"
|
||||
activeClassName="active-link"
|
||||
onClick={handleNavLinkClick}
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
icon={faCompass}
|
||||
className="sidebar-heading-icon"
|
||||
/>
|
||||
Explore
|
||||
</NavLink>
|
||||
</li>
|
||||
<hr className="mb-3 mt-3" />
|
||||
<li className="sidebar-heading">AI Tools</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/tts"
|
||||
@@ -271,8 +308,6 @@ export default function SideNav(props: SideNavProps) {
|
||||
{"Voice Designer"}
|
||||
</NavLink>
|
||||
</li>
|
||||
<hr className="mb-3 mt-3" />
|
||||
<li className="sidebar-heading">{t("videoTitle")}</li>
|
||||
<li>
|
||||
<NavLink
|
||||
to="/face-animator"
|
||||
@@ -331,17 +366,6 @@ export default function SideNav(props: SideNavProps) {
|
||||
</NavLink>
|
||||
</li>
|
||||
<hr className="mb-3 mt-3" />
|
||||
<li>
|
||||
<NavLink
|
||||
to="/pricing"
|
||||
activeClassName="active-link"
|
||||
onClick={handleNavLinkClick}
|
||||
>
|
||||
<FontAwesomeIcon icon={faStar} className="sidebar-heading-icon" />
|
||||
{t("infoPricing")}
|
||||
</NavLink>
|
||||
</li>
|
||||
<hr className="mb-3 mt-3" />
|
||||
<li className="sidebar-heading">{t("queueTitle")}</li>
|
||||
<li className="ps-4 fs-7 mb-5">
|
||||
<div>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { Button } from "components/common";
|
||||
import { faSearch } from "@fortawesome/pro-solid-svg-icons";
|
||||
import { Gravatar } from "@storyteller/components/src/elements/Gravatar";
|
||||
import { Button, Input, Select } from "components/common";
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
@@ -12,14 +14,36 @@ export default function TopNav(props: TopNavProps) {
|
||||
<img
|
||||
src="/fakeyou/FakeYou-Logo.png"
|
||||
alt="FakeYou: Cartoon and Celebrity Text to Speech"
|
||||
height="36"
|
||||
className="mb-2"
|
||||
height="34"
|
||||
className="mb-1"
|
||||
/>
|
||||
</Link>
|
||||
<div className="sidebar-buttons d-flex gap-2 mt-4">
|
||||
{/* {userOrLoginButton}
|
||||
|
||||
{/* Search Bar */}
|
||||
<div className="search-bar-container d-flex justify-content-center">
|
||||
<div className="d-flex">
|
||||
<Input
|
||||
placeholder="Search for a model weight..."
|
||||
className="search-bar zi-3"
|
||||
/>
|
||||
<Button
|
||||
icon={faSearch}
|
||||
onClick={() => {}}
|
||||
variant="secondary"
|
||||
className="search-bar-button"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="d-flex align-items-center gap-3">
|
||||
<div className="sidebar-buttons d-flex gap-2">
|
||||
{/* {userOrLoginButton}
|
||||
{signupOrLogOutButton} */}
|
||||
<Button label="Login" small={true} />
|
||||
<Button label="Login" small={true} />
|
||||
</div>
|
||||
<div>
|
||||
<Gravatar size={40} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
$topbar-height: 70px;
|
||||
$topbar-height: 66px;
|
||||
|
||||
#sidebar-wrapper {
|
||||
z-index: 1000;
|
||||
@@ -69,7 +69,7 @@ $topbar-height: 70px;
|
||||
background: $panel;
|
||||
border-color: rgba(255, 255, 255, 0.0705882353) !important;
|
||||
border-right: 1px solid;
|
||||
padding-top: 1.5rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.sidebar-nav li a {
|
||||
@@ -77,7 +77,7 @@ $topbar-height: 70px;
|
||||
text-decoration: none;
|
||||
color: rgba($white, 0.7);
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
font-size: 15px;
|
||||
margin: 0rem 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.5rem;
|
||||
@@ -170,9 +170,40 @@ $topbar-height: 70px;
|
||||
.topbar-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
padding: 0 1.5rem;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-bar-container {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
width: 500px;
|
||||
|
||||
.form-control {
|
||||
padding: 7px 0.75rem !important;
|
||||
border-radius: 0.5rem 0 0 0.5rem !important;
|
||||
|
||||
&::placeholder {
|
||||
color: rgba($white, 0.3) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar-button {
|
||||
border-radius: 0 0.5rem 0.5rem 0 !important;
|
||||
border-color: lighten($secondary, 5%) !important;
|
||||
background-color: lighten($secondary, 5%) !important;
|
||||
|
||||
&:hover {
|
||||
border-color: lighten($secondary, 10%) !important;
|
||||
background-color: lighten($secondary, 10%) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
|
||||
@@ -18,13 +18,17 @@ styles with important tags:
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: rgba($bg, 1) !important;
|
||||
background-color: $panel !important;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
p {
|
||||
font-weight: 400;
|
||||
margin-bottom: 0;
|
||||
|
||||
Reference in new issue
Block a user