diff --git a/static/css/s2.css b/static/css/s2.css index 28864d4455..d342af84f3 100644 --- a/static/css/s2.css +++ b/static/css/s2.css @@ -7940,6 +7940,24 @@ But not to use a display block directive that might break continuous mode for ot --hebrew-font: var(--hebrew-sans-serif-font-family); border: none; } +.sheetsHomepage .button { + background-color: var(--midrash-green); +} +.button.getStartedSheets { + width: 111px; + height: 39px; + padding: 10px 15px 10px 15px; + border-radius: 6px; + border: 1px solid #CCCCCC; + display: block; + background-color: white; + color: black; + font-size: 16px; + white-space: nowrap; +} +.button.getStartedSheets:hover { + color: black; +} .button.disabled{ border: 1px solid var(--light-grey); background-color: var(--lightest-grey); @@ -13300,8 +13318,6 @@ span.ref-link-color-3 {color: blue} } } - - @media screen and (min-aspect-ratio: 2/1) { .image-in-text { max-height: calc(4/3 * 2/3 * 100vw); diff --git a/static/js/NavSidebar.jsx b/static/js/NavSidebar.jsx index 46e2f3adf0..2973bac5d5 100644 --- a/static/js/NavSidebar.jsx +++ b/static/js/NavSidebar.jsx @@ -6,6 +6,7 @@ import {NewsletterSignUpForm} from "./NewsletterSignUpForm"; import {InterfaceText, ProfileListing, Dropdown} from './Misc'; import { Promotions } from './Promotions' import {SignUpModalKind} from "./sefaria/signupModalContent"; +import Button from "./shared/Button"; const NavSidebar = ({modules}) => { return
@@ -43,6 +44,8 @@ const Modules = ({type, props}) => { "GetTheApp": GetTheApp, "StayConnected": StayConnected, "AboutLearningSchedules": AboutLearningSchedules, + "CreateASheet": CreateASheet, + "WhatIsASourceSheet": WhatIsASourceSheet, "AboutTranslatedText": AboutTranslatedText, "AboutCollections": AboutCollections, "ExploreCollections": ExploreCollections, @@ -75,14 +78,13 @@ const ModuleTitle = ({children, en, he}) => { return

{content}

; }; - -const TitledText = ({enTitle, heTitle, enText, heText}) => { +const TitledText = ({children, title, text}) => { return - - - + + + {children} + }; - const RecentlyViewedItem = ({oref}) => { const trackItem = () => { gtag('event', 'recently_viewed', {link_text: oref.ref, link_type: 'ref'}) @@ -666,7 +668,29 @@ const StayConnected = () => { // TODO: remove? looks like we are not using this ); }; +const GetStartedButton = () => { + const href = Sefaria._v({"en": "/sheets/393695", "he": "/sheets/399333"}) + return ; +} +const CreateSheetsButton = () => { + // #sheetsButton + return +} +const CreateASheet = () => ( + + + +); +const WhatIsASourceSheet = () => ( + + + +); const AboutLearningSchedules = () => ( Learning Schedules diff --git a/static/js/ReaderPanel.jsx b/static/js/ReaderPanel.jsx index 06ea5ce103..2ae7fe7b02 100644 --- a/static/js/ReaderPanel.jsx +++ b/static/js/ReaderPanel.jsx @@ -44,7 +44,7 @@ import { import {ContentText} from "./ContentText"; import SheetsWithRefPage from "./sheets/SheetsWithRefPage"; import {ElasticSearchQuerier} from "./ElasticSearchQuerier"; -import SheetsHomePage from "./sheets/SheetsHomePage"; +import {SheetsHomePage} from "./sheets/SheetsHomePage"; class ReaderPanel extends Component { diff --git a/static/js/shared/Button.jsx b/static/js/shared/Button.jsx new file mode 100644 index 0000000000..abe4403bbe --- /dev/null +++ b/static/js/shared/Button.jsx @@ -0,0 +1,13 @@ +const Button = ({ variant = 'primary', icon, children, onClick, className = '' }) => { + return ( + + ); +}; + +export default Button; \ No newline at end of file diff --git a/static/js/shared/Card.jsx b/static/js/shared/Card.jsx index 0b455151ec..d4538ec5fa 100644 --- a/static/js/shared/Card.jsx +++ b/static/js/shared/Card.jsx @@ -1,6 +1,5 @@ import {InterfaceText} from "../Misc"; import React from "react"; - const Card = ({cardTitle, cardTitleHref, oncardTitleClick, cardText}) => { return
diff --git a/static/js/sheets/SheetsHomePage.jsx b/static/js/sheets/SheetsHomePage.jsx index 75afb3a02f..818f2664fd 100644 --- a/static/js/sheets/SheetsHomePage.jsx +++ b/static/js/sheets/SheetsHomePage.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import {InterfaceText, ResponsiveNBox} from "../Misc"; import {NavSidebar} from "../NavSidebar"; import Footer from "../Footer"; @@ -21,8 +20,18 @@ const SheetsHeroBanner = ({title, message, videoOptions, posterImg}) => {
; } +const SheetsSidebar = () => { + const sidebarModules = [ + {type: "CreateASheet"}, + {type: "WhatIsASourceSheet"}, + ]; + return +} + + + const SheetsHomePage = () => { - return
+ return
{ />
+
} -export default SheetsHomePage; \ No newline at end of file +export { SheetsHomePage }; \ No newline at end of file