Skip to content

Commit

Permalink
adds loading icon / more sassy message
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfriesen committed Aug 19, 2024
1 parent e9b2e2f commit 2ae8eef
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
36 changes: 36 additions & 0 deletions web/src/components/IconLoading.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { useId } from 'react'

export function IconLoading(props) {
let id = useId()

return (
<svg width="44" height="44" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" aria-hidden="true" {...props}>
<g fill="none" fillRule="evenodd" strokeWidth="2">
<circle cx="22" cy="22" r="1">
<animate attributeName="r" begin="0s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite"></animate>
<animate
attributeName="stroke-opacity"
begin="0s"
dur="1.8s"
values="1; 0"
calcMode="spline"
keyTimes="0; 1"
keySplines="0.3, 0.61, 0.355, 1"
repeatCount="indefinite"></animate>
</circle>
<circle cx="22" cy="22" r="1">
<animate attributeName="r" begin="-0.9s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite"></animate>
<animate
attributeName="stroke-opacity"
begin="-0.9s"
dur="1.8s"
values="1; 0"
calcMode="spline"
keyTimes="0; 1"
keySplines="0.3, 0.61, 0.355, 1"
repeatCount="indefinite"></animate>
</circle>
</g>
</svg>
)
}
11 changes: 9 additions & 2 deletions web/src/components/Intro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Link from 'next/link'
import { IconLink } from '@/components/IconLink'
import { Logo } from '@/components/Logo'
import { FeedbackForm } from '@/components/FeedbackForm'
import { IconLoading } from '@/components/IconLoading'

function BookIcon(props) {
return (
Expand Down Expand Up @@ -90,8 +91,14 @@ export function Intro() {
extension to build <span className="text-sky-300">context rich links</span>
</h1>
<div className="mt-6 mb-6 bg-yellow-900 border-l-4 border-yellow-600 text-yellow-200 p-4 rounded">
<p className="font-bold">⚠️ Extension Under Review</p>
<p className="text-sm">The QuickCite Chrome extension is currently under review and will be available in the Chrome Web Store soon. Thank you for your patience!</p>
<div className="flex items-center">
<IconLoading className="mr-2 h-4 w-4 flex-none" />
<p className="font-bold">Extension Under Review</p>
</div>
<p className="text-sm">
The QuickCite Chrome extension is currently stuck in Google&apos;s review purgatory. We&apos;re as impatient as you are for it to grace the Chrome Web Store. Thanks for
hanging in there while Google takes their sweet time!
</p>
</div>
<p className="mt-4 text-sm/6 text-gray-300">
QuickCite is a chrome extension designed to enhance productivity by allowing users to quickly copy formatted information from various websites, including GitHub, LinkedIn,
Expand Down

0 comments on commit 2ae8eef

Please sign in to comment.