Skip to content

Commit

Permalink
feat: add oss eu news
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett committed Sep 18, 2023
1 parent 40a808e commit 10e42d6
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 11 deletions.
Binary file modified apps/web/public/images/home/report1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/images/questionnaire/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 40 additions & 4 deletions apps/web/src/common/components/Questionnaire.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const Questionnaire = () => {
return (
<div className="z-modal fixed bottom-[100px] right-10 ">
<Link
href="https://mp.weixin.qq.com/s?__biz=MzkxMDQzNjc2MQ==&mid=2247484166&idx=1&sn=8744720b2b60b5c353aa468fe91d85f0&chksm=c12a33f0f65dbae6a4dc38ec08ab9594545cd2ec3427ae32e4c4523e787ae787f3b270c91ec0&token=1781014651&lang=zh_CN#rd"
href="https://www.youtube.com/watch?v=FNK3--dtR_4"
target="_blank"
className="h-[124px] w-[136px]"
>
<Image
src="/images/questionnaire/icon.png"
src="/images/questionnaire/OSSUMMIT@zh.png"
width={124}
height={144}
alt={''}
Expand All @@ -27,7 +27,7 @@ const Questionnaire = () => {
/>
</Link>
<span
className="absolute top-0 right-0 cursor-pointer p-1"
className="absolute top-0 right-0 cursor-pointer"
onClick={() => {
setClose(true);
}}
Expand All @@ -46,7 +46,43 @@ const Questionnaire = () => {
</div>
);
}
return null;
return (
<div className="z-modal fixed bottom-[100px] right-10 ">
<Link
href="https://www.youtube.com/watch?v=FNK3--dtR_4"
target="_blank"
className="h-[124px] w-[136px]"
>
<Image
src="/images/questionnaire/[email protected]"
width={124}
height={144}
alt={''}
style={{
maxWidth: '100%',
height: 'auto',
}}
/>
</Link>
<span
className="absolute top-0 right-0 cursor-pointer"
onClick={() => {
setClose(true);
}}
>
<Image
src="/images/questionnaire/[email protected]"
width={22}
height={22}
alt={''}
style={{
maxWidth: '100%',
height: 'auto',
}}
/>
</span>
</div>
);
};

export default Questionnaire;
8 changes: 5 additions & 3 deletions apps/web/src/modules/home/LatestNews/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const DatePicker = () => {
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const popoverRef = useRef<HTMLDivElement>(null);

const bookedDays = [new Date(2023, 7, 23)];
const bookedDays = [new Date(2023, 8, 21)];
const bookedStyle = { border: '2px solid #3A5BEF', borderRadius: 'none' };

useClickAway(popoverRef, () => {
Expand Down Expand Up @@ -44,8 +44,10 @@ const DatePicker = () => {
>
<div className="mt-1.5 h-2 w-2 rounded-full bg-[#00B400]"></div>
<div className="w-[200px] text-xs">
Compass围炉夜话——“开源”LLMs是不是真开源
<div className="mt-1 text-xs text-[#727272]">19:30 (UTC-8)</div>
Compass Talk——Open Source Summit Europe 2023
<div className="mt-1 text-xs text-[#727272]">
11:00 - 11:40 (UTC+2)
</div>
</div>
</div>
</Popper>
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/modules/home/LatestNews/NewsData.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
},
{
"type": "Report",
"title": "Explore Compass Lab, take you easy to create the open source LLMs project evaluation model!",
"title_cn": "探秘Compass实验室,带你轻松玩转开源LLMs项目评估模型!",
"title": "OSS Compass at OSS EU 2023",
"title_cn": "OSS Compass参加2023欧洲开源峰会",
"img": "/images/home/report1.png",
"url": "/blog/explore-compass-lab"
"url": "/blog/compass-at-oss-eu"
},
{
"type": "Event",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Home: React.FC = (props) => {
<NoSsr>
<Explain />
<ExplainMobile />
{/* <Questionnaire /> */}
<Questionnaire />
</NoSsr>
<SpecialThank />
</main>
Expand Down

0 comments on commit 10e42d6

Please sign in to comment.