import 'react-responsive-carousel/lib/styles/carousel.min.css'; // requires a loader
import React from 'react';
import { Carousel } from 'react-responsive-carousel';
import Head from '@docusaurus/Head';
import Link from '@docusaurus/Link';
import useBaseUrl from '@docusaurus/useBaseUrl';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import { SocialCard, SocialCardProps } from '../components/homepage/SocialCard';
const features = [
{
title: 'Radio Mesh Text Messaging',
imageUrl: 'img/homepage/messages.svg',
description: (
<>
Off-grid messaging using inexpensive hardware to create your personal
mesh. Radios forward messages to the next to flood the network.
Communicate kilometers/miles between nodes. Internet-connected relay
nodes enable the conversation to move online too.
>
),
},
{
title: 'Encryption',
imageUrl: 'img/homepage/encryption.svg',
description: (
<>
Messages are AES256 encrypted. Only radios supplied with your channel
settings (which includes the key) should be able to read your messages.
Using multichannel settings you can send encrypted messages on one
channel and still participate in a default Meshtastic mesh.
>
),
},
{
title: 'Conserve Battery',
imageUrl: 'img/homepage/battery.svg',
description: (
<>
Go for days on end and on a single battery or extend it infinitely with
a solar cell. Power management ensures the device will last the duration
of your use.
>
),
},
{
title: 'Extensible',
imageUrl: 'img/homepage/extendable.svg',
description: (
<>
Create a highly scalable mesh with hardware on a multitude of platforms
to fit your unique requirements: Create an environment monitoring mesh
and produce real-time heatmaps, or maybe decentralized, encrypted
messaging network, your imagination is the limit.
>
),
},
{
title: 'Platform Agnostic',
imageUrl: 'img/homepage/platforms.svg',
description: (
<>
Meshtastic clients are built or being built for all major desktop and
mobile platforms. Linux, Windows, Mac, Android, and iOS are all
supported or well on their way to being supported.
>
),
},
{
title: 'Open Source',
imageUrl: 'img/homepage/opensource.svg',
description: (
<>
All Meshtastic software is open source. If you want an improvement,
submit a pull request or file an issue on Github. Happy coding!
>
),
},
];
const SocialCards: SocialCardProps[] = [
{
color: 'bg-[#5865F2]',
link: 'https://discord.com/invite/UQJ5QuM7vq',
children: (
),
},
{
color: 'bg-[#ffffff]',
link: 'https://twitter.com/TheMeshtastic',
children: (
),
},
{
color: 'bg-[#FF0000]',
link: 'https://www.youtube.com/meshtastic',
children: (
),
},
{
color: 'bg-[#ffffff]',
link: 'https://meshtastic.discourse.group',
children: (
),
},
{
color: 'bg-[#FF4500]',
link: 'https://reddit.com/r/meshtastic',
children: (
),
},
{
color: 'bg-[#ffffff]',
link: 'https://github.com/meshtastic',
children: (
),
},
];
function Feature({ imageUrl, title, description }) {
const imgUrl = useBaseUrl(imageUrl);
return (