diff --git a/static/css/s2.css b/static/css/s2.css index 9b974973ca..613e1efdcf 100644 --- a/static/css/s2.css +++ b/static/css/s2.css @@ -293,6 +293,54 @@ body, .sans-serif { display: none; } } + + /* Hide on desktop screens */ + @media (min-width: 768px) { + .hide-on-desktop { + display: none; + } + } + + /* Trending_topic_box */ + + .trending-topics-box { + background-color: #f0f0f0; /* Grey background */ + padding: 2px 8px 25px; + border-radius: 8px; /* Rounded corners */ + margin: 20px 0; /* Margin to separate it from other elements */ + } + + .box-title { + font-family: 'roboto', sans-serif; + font-size: 1.5em; + margin: 0; + color: #333; /* Darker text for contrast */ + border-bottom: 1px solid #ddd; /* Light line beneath the title */ + padding-bottom: 5px; /* Space between title text and the line */ +} + + .topics-list { + font-family: 'roboto', sans-serif; + display: flex; + flex-direction: column; /* Stack topics vertically */ + gap: 10px; /* Space between each topic */ + padding-right: 20px; + padding-top: 20px; + } + + .topic-item { + font-size: 1em; + } + + .topic-item a { + text-decoration: none; + color: #21130d; /* Link color */ + } + + .topic-item a:hover { + text-decoration: underline; + } + .serif { diff --git a/static/js/NavSidebar.jsx b/static/js/NavSidebar.jsx index 4c00fc9ad9..8a62b8b40a 100644 --- a/static/js/NavSidebar.jsx +++ b/static/js/NavSidebar.jsx @@ -487,9 +487,11 @@ const AboutTopics = ({hideTitle}) => ( const TrendingTopics = () => ( +
topic.trend +
{Sefaria.trendingTopics.map((topic, i) => -
+
)} diff --git a/static/js/TopicsPage.jsx b/static/js/TopicsPage.jsx index b142263c85..6c0640f45d 100644 --- a/static/js/TopicsPage.jsx +++ b/static/js/TopicsPage.jsx @@ -57,15 +57,38 @@ const TopicsPage = ({setNavTopic, multiPanel, initialWidth}) => { {type: "SupportSefaria"}, ]; + const TrendingTopicsBox = () => ( +
+

Trending Topics

+
+ {Sefaria.trendingTopics.map((topic, i) => ( +
+ + {topic.en} + +
+ ))} +
+
+ ); + + + return (
+
+ +
-

topic.expore

+

topic.expore



+
+ Selection of texts and user created source sheets about thousands of subjects +
{ about }