Skip to content

Add faKeyboard #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion components/MastHead.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import Link from "next/link"
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faBoxOpen, faBrain, faArrowPointer } from '@fortawesome/free-solid-svg-icons'
import { faBoxOpen, faBrain, faArrowPointer, faKeyboard } from '@fortawesome/free-solid-svg-icons'
import { motion } from "framer-motion"
import Image from 'next/image';

Expand Down Expand Up @@ -71,6 +71,28 @@ export default function Home() {
>
<FontAwesomeIcon icon={faArrowPointer} className="text-2xl" />
</motion.div>
<motion.div
animate={{
x: [-1.5, 1.5, -1.5] // Half the amplitude of the y animation
}}
transition={{
duration: 1.5,
ease: "easeInOut",
times: [0 + .5, .5 + .5, 1 + .5], // as above but + .5
repeat: Infinity,
repeatDelay: 0,
}}
className="absolute" // Absolute positioning for faArrowPointer
style={{
// Center vertically
top: '50%',
//transform: 'translateY(-50%)',
top: 'calc(50% + 16px)', // as above but +16px instead of -16px
left: 'calc(50% + 32px)',
}}
>
<FontAwesomeIcon icon={faKeyboard} className="text-2xl" />
</motion.div>
</div>
</motion.div>
<FontAwesomeIcon icon={faBoxOpen} className="text-5xl" />
Expand Down