Skip to content
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