Skip to content

Commit 7c6d98a

Browse files
authored
Merge pull request #539 from shubhagarwal1/future
Add future page
2 parents 41831df + 2274215 commit 7c6d98a

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
"use client"
2+
import React from 'react';
3+
4+
const predictions = [
5+
{
6+
author: "Jane Doe",
7+
type: "Video",
8+
content: "Short video predicting how AI will impact software development over the next decade.",
9+
mediaUrl: "/videos/ai_future.mp4"
10+
},
11+
{
12+
author: "John Smith",
13+
type: "Written Post",
14+
content: "I believe that quantum computing will revolutionize the way we handle data encryption and processing within the next 10 years.",
15+
},
16+
{
17+
author: "Emily Johnson",
18+
type: "Infographic",
19+
content: "Infographic showcasing the future of autonomous vehicles and their integration into urban environments.",
20+
mediaUrl: "/images/autonomous_vehicles.png"
21+
}
22+
];
23+
24+
const FutureTechPredictions = () => {
25+
return (
26+
<div className="min-h-screen bg-gradient-to-br from-purple-900 via-purple-800 to-purple-900 text-white p-6 sm:p-12">
27+
<header className="text-center mb-16">
28+
<h1 className="text-4xl sm:text-6xl font-bold mb-4">Future of Tech Predictions</h1>
29+
<p className="text-xl sm:text-2xl">Community members share their predictions for the future of technology over the next 5-10 years.</p>
30+
</header>
31+
32+
<div className="max-w-5xl mx-auto grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
33+
{predictions.map((prediction, index) => (
34+
<div key={index} className="bg-gradient-to-b from-white/10 to-white/5 rounded-lg shadow-lg p-6 sm:p-8 transition-transform transform hover:scale-105 hover:shadow-2xl">
35+
<h3 className="text-2xl font-bold mb-4">{prediction.author}</h3>
36+
<span className="block text-sm text-white/70 mb-4">Type: {prediction.type}</span>
37+
<p className="text-lg text-white/80 mb-4">{prediction.content}</p>
38+
{prediction.mediaUrl && (
39+
prediction.type === "Video" ? (
40+
<video controls className="w-full rounded-lg">
41+
<source src={prediction.mediaUrl} type="video/mp4" />
42+
Your browser does not support the video tag.
43+
</video>
44+
) : (
45+
<img src={prediction.mediaUrl} alt="Infographic" className="w-full rounded-lg" />
46+
)
47+
)}
48+
</div>
49+
))}
50+
</div>
51+
</div>
52+
);
53+
};
54+
55+
export default FutureTechPredictions;

0 commit comments

Comments
 (0)