diff --git a/app/components/discourserankedlist.js b/app/components/discourserankedlist.js
index dfc996fb..afe8b596 100644
--- a/app/components/discourserankedlist.js
+++ b/app/components/discourserankedlist.js
@@ -28,81 +28,8 @@ function TimeSince(date) {
return Math.floor(seconds) + ' seconds ago';
}
-function Discourserankedlist(props) {
- const Data = [
- {
- id: 1,
- title:
- 'Upload stuck at 0% again after initially fixing with chanding site url in General admin options',
- time: '6:57 PM',
- upvotes: '89',
- comments: '91',
- },
- {
- id: 2,
- title: 'Why can’t we have thumbnails for video uploads on mobile?',
- time: '4:00 PM',
- upvotes: '500',
- comments: '4',
- },
- {
- id: 3,
- title: 'Can’t find “Users must use Two Factor Authentication” Option',
- time: '12:53 PM',
- upvotes: '456',
- comments: '75',
- },
- {
- id: 4,
- title: 'Can’t “forget/remove my data” directly in RC 4.3.0 in livechat',
- time: '8:36 AM',
- upvotes: '234',
- comments: '199',
- },
- {
- id: 5,
- title: 'Not migrating, control is locked',
- time: '11:30 PM',
- upvotes: '441',
- comments: '74',
- },
- {
- id: 6,
- title:
- 'Upload stuck at 0% again after initially fixing with chanding site url in General admin options',
- time: '7:14 PM',
- upvotes: '972',
- comments: '42',
- },
- {
- id: 7,
- title: 'Can’t find “Users must use Two Factor Authentication” Option',
- time: '3:36 PM',
- upvotes: '4279',
- comments: '98',
- },
- {
- id: 8,
- title: 'Cannot Chat Log Level - Option has disappeared',
- time: '11:06 AM',
- upvotes: '51',
- comments: '291',
- },
- {
- id: 9,
- title: 'Wrong IP Server',
- time: '2:00 PM',
- upvotes: '478',
- comments: '25',
- },
- {
- id: 10,
- title: 'Not migrating, control is locked',
- time: '11:03 PM',
- upvotes: '16',
- comments: '15',
- },
- ];
+function Discourserankedlist({activities}) {
+
//generates random colour for border styling
const color = [
'border-primary',
@@ -130,7 +57,7 @@ function Discourserankedlist(props) {
- {Data.map(item => (
+ {activities.map(item => (
-
-
-
- {process.browser && (
-
- )}
-
-
- Users
-
-
-
-
- {process.browser && (
-
- )}
-
- Messages
-
+
+ {counters.map((count, index) => {
+ return (
+
+
+ {process.browser && (
+
+ )}
+
-
-
- {process.browser && (
-
- )}
-
- Online
-
+
{count.title}
+
+ );
+ })}
>
);
diff --git a/app/components/infotiles.js b/app/components/infotiles.js
index 12a695ef..2d7f2028 100644
--- a/app/components/infotiles.js
+++ b/app/components/infotiles.js
@@ -2,10 +2,11 @@ import Image from "next/image";
import Link from "next/link";
import Styles from "../styles/Infotiles.module.css";
-export default function Infotiles({ data }) {
+export default function Infotiles(props) {
+
return (
<>
- {data.map((obj) => (
+ {props?.infotiles?.map((obj) => (
)}
-
{obj.name}
+
{obj.title}
{obj.bio &&
{obj.bio}
}
-
{obj.content}
+
{obj.description}
{obj.live &&
}
diff --git a/app/components/newscarousel.js b/app/components/newscarousel.js
index d6628a17..a9b6506b 100644
--- a/app/components/newscarousel.js
+++ b/app/components/newscarousel.js
@@ -48,13 +48,21 @@ function Newscarousel(props) {
},
},
{
- breakpoint: 600,
+ breakpoint: 800,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
initialSlide: 2,
},
},
+ {
+ breakpoint: 600,
+ settings: {
+ slidesToShow: 1,
+ slidesToScroll: 2,
+ initialSlide: 2,
+ },
+ },
]}
prevArrow={