const profile = { title: "Daniel Herrmann", subtitle: "Data Scientist | Software Engineer | Artist", claim: "Exploring the intersection of technology, art, and organic growth.", links: [ { title: "github", url: "https://github.com/scopalaffairs" }, { title: "linkedin", url: "https://www.linkedin.com/in/daniel-herrmann/" }, ], socials: [ { title: "github", url: "https://github.com/scopalaffairs" }, { title: "linkedin", url: "https://www.linkedin.com/in/daniel-herrmann/" }, ], }; const titleToIcon = [ { title: "github", icon: <i class="bi bi-github"></i>, }, { title: "twitter", icon: <i class="bi bi-twitter"></i>, }, { title: "facebook", icon: <i class="bi bi-facebook"></i>, }, { title: "whatsapp", icon: <i class="bi bi-whatsapp"></i>, }, { title: "linkedin", icon: <i class="bi bi-linkedin"></i>, }, ]; return ( <div style={{ display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", gap: 16, height: "100%", padding: "0 8px", }} > <div style={{ display: "flex", flexDirection: "column", alignItems: "center", }} > <h2 style={{ color: props.theme.textColor }}>{profile.title}</h2> <h5 style={{ color: props.theme.textColor2 }}>{profile.subtitle}</h5> </div> <div style={{ display: "flex", flexDirection: "column", gap: 8, width: "100%", maxWidth: 400, }} > {profile.claim && ( <p style={{ width: "100%", color: props.theme.textColor }}> {profile.claim} </p> )} {profile.links?.map((link) => ( <a href={link.url} target="_blank"> <button style={{ width: "100%" }}>{link.title}</button> </a> ))} </div> <div style={{ display: "flex", gap: 16 }}> {profile.socials?.map((link) => ( <a href={link.url} target="_blank" style={{ fontSize: "1.5rem" }}> {titleToIcon.find((ti) => ti.title === link.title).icon} </a> ))} </div> </div> );