Skip to content

Commit ed37151

Browse files
committed
feat: update jumbo banner content on KIN homepage
1 parent 897e3e9 commit ed37151

File tree

4 files changed

+21
-32
lines changed

4 files changed

+21
-32
lines changed

frontend/components/home/kin/GradientBorderButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
export default function GradientBorderButton({text, url, target = '_self', minWidth = '9rem'}: { text: string, url: string, target?: string, minWidth?: string }) {
77
return <a href={url} className="cursor-pointer" target={target}>
8-
<button style={{minWidth}} className="group m-2 p-[0.125rem] rounded transition duration-500 bg-gradient-to-tl to-base-400 via-base-500 from-primary bg-size-200 bg-pos-0 hover:bg-pos-100">
8+
<button style={{minWidth}} className="group p-[0.125rem] rounded transition duration-500 bg-gradient-to-tl to-base-400 via-base-500 from-primary bg-size-200 bg-pos-0 hover:bg-pos-100">
99
<span className="flex w-full bg-base-800 p-4 rounded justify-center pointer-events-non group-hover:bg-base-700 transition duration-300 text-base-400 group-hover:text-base-100">
1010
{text}
1111
</span></button>

frontend/components/home/kin/JumboBanner.tsx

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
//
44
// SPDX-License-Identifier: Apache-2.0
55

6+
import GradientBorderButton from './GradientBorderButton'
7+
import {config} from './config'
8+
const {button} = config
9+
610
export default function JumboBanner() {
711
return (
812
<div className="max-w-screen-xl mx-auto p-4 grid lg:grid-cols-[3fr,2fr] gap-8 md:gap-20 lg:my-20 md:px-10">
@@ -11,37 +15,22 @@ export default function JumboBanner() {
1115
data-aos="fade" data-aos-offset="200" data-aos-delay="50" data-aos-duration="1000"
1216
>
1317
<h1 className="text-3xl xl:text-4xl font-rsd-titles font-bold">
14-
Accelerating Transitions Together
18+
VEDA for climate research
1519
</h1>
1620
<p className="mt-8 text-lg">
17-
The Netherlands has what it takes to make the major transitions needed for a sustainable future. Civil society players are working hard to change the system. Companies and organisations are taking action, governments are adapting policies and much has been invested in scientific knowledge. However, to prevent the worst climate change, this has to happen faster! This is only possible if knowledge from practice and science cooperate more intensively.
21+
VEDA offers an overview of climate related research in the Netherlands. Explore projects and contribute by adding your reseach programme.
22+
</p>
23+
<p className="mt-8">
24+
<GradientBorderButton
25+
text={button.discover.label}
26+
url={button.discover.url}
27+
target={button.discover.target}
28+
// minWidth='14rem'
29+
/>
1830
</p>
19-
{/* <p>
20-
The KIN brings all parties together. Together, we want to make a substantial contribution to accelerating the transitions needed to be a sustainable, climate-neutral society by 2050 as soon as possible.
21-
</p> */}
2231
</div>
23-
24-
<iframe
25-
src="https://www.youtube.com/embed/UxVfwZjGCHI?si=pHraOMBOYR5xt104"
26-
title="YouTube video player"
27-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" referrerPolicy="strict-origin-when-cross-origin"
28-
allowFullScreen
29-
className='rounded-lg w-[28rem] h-[20rem] m-auto xl:w-[32rem] xl:h-[20rem]'
30-
>
31-
</iframe>
32-
{/* Video: it will only load once the page is rendered, and only when the user clicks on play. And it will strea the video after. */}
33-
{/* <video width="100%"
34-
height="auto"
35-
className='rounded-lg'
36-
controls preload="metadata"
37-
// poster="/video/rsd-video-cover.webp"
38-
data-aos="fade" data-aos-delay="100"
39-
data-aos-duration="600"
40-
data-aos-easing="ease-in-out">
41-
<source src="https://www.youtube.com/watch?v=UxVfwZjGCHI" type="video/mp4" />
42-
<source src="https://www.youtube.com/watch?v=UxVfwZjGCHI" type="video/webm" />
43-
Your browser does not support HTML5 video.
44-
</video> */}
32+
{/* use image instead of video */}
33+
<img src="/images/veda-banner.svg" alt="Veda by KIN" />
4534
</div>
4635
)
4736
}

frontend/components/home/kin/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
export const config = {
99
button: {
1010
discover: {
11-
label: 'Discover Software',
12-
url: '/software?order=mention_cnt',
11+
label: 'Explore VEDA',
12+
url: '/projects?order=impact_cnt',
1313
target:'_self'
1414
},
1515
signUp: {

frontend/components/home/kin/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import OurProgramsSection from './OurProgramsSection'
2222
import ContributeSection from './ContributeSection'
2323
import TopNewsSection from './TopNewsSection'
2424

25-
export default function RsdHome({news}:{news:TopNewsProps[]}) {
25+
export default function RsdHome({news}:Readonly<{news:TopNewsProps[]}>) {
2626
// Initialize AOS library
2727
useEffect(() => {
2828
AOS.init({offset: 16})
@@ -38,7 +38,7 @@ export default function RsdHome({news}:{news:TopNewsProps[]}) {
3838

3939
<div className="bg-base-800">
4040
{/* Arc separator */}
41-
<Arc className="w-full text-base-100 dark:text-base-900 -translate-y-1"></Arc>
41+
<Arc className="w-full text-base-100 dark:text-base-900 -translate-y-1"/>
4242
{/* Top 3 news items, ONLY if there are some */}
4343
<TopNewsSection news={news} />
4444
{/* Our Programs Section */}

0 commit comments

Comments
 (0)