import { useEffect, useState } from "react" import { Link } from "react-router-dom"; import { BsSpotify, BsArrowRight } from "react-icons/bs" import { FaRegStar } from "react-icons/fa" import { BiGitRepoForked } from "react-icons/bi" /* DATA */ import { MainContext as data, useContext as useData } from "../context/userData" import User from "../data/variables.js" import Technologies from "../data/technologies"; import Colors from "../style/githubLangColors" import about from "../data/variables.js"; export default function Main(){ const { user, github } = useData(data) useEffect(async() => { console.log(user) console.log(github) }, [user]) return (
Home | Just Nyde

👋 Hello! Let me introduce myself.

{User.description}

{(user) ? () : (
)}
{(user) ? (

{user.discord_user.username}

) : (
)} {(user) ? (

An experienced web developer.

) : (
)} {(user) ? (

Do not disturb.

) : (

)}

{(user && user.listening_to_spotify) ? "LISTENING TO SPOTIFY" : "I AM NOT LISTENING ANYTHING."}

{(!user || !user.spotify) && (
)} {(user && user.spotify) && ()}
{(!user || !user.listening_to_spotify) ? (
) : (

{user.spotify.song}

)} {(!user || !user.listening_to_spotify) ? (
) : (

by {user.spotify.artist}

)} {(!user || !user.listening_to_spotify) ? (
) : (

on {user.spotify.album}

)}


👨‍💻 Technologies I Use

List of technologies I can use.

{(Technologies.data.map(tech => (
{tech.icon}

{tech.name}

)))}


📖 Github Repositories

I have {github?.length || 0} repositories now. You can support me by starring!

{(github) ? (github.map(data => (

{data.name}

Public

{data.description}

{data.language}

{data.stargazers_count}

{data.forks}

))) : (<>)}
) }