jbilcke-hf HF staff commited on
Commit
7b02e73
1 Parent(s): cac934a

trying something

Browse files
Files changed (1) hide show
  1. src/components/chrome/index.tsx +13 -4
src/components/chrome/index.tsx CHANGED
@@ -2,7 +2,16 @@ import svg1 from "./svg1.svg"
2
  import svg2 from "./svg2.svg"
3
  import svg3 from "./svg3.svg"
4
 
5
- export function HuggingFaceChrome() {
 
 
 
 
 
 
 
 
 
6
  return (
7
  <div className="
8
  from-gray-50-to-white text-md shadow-alternate fixed
@@ -13,11 +22,11 @@ export function HuggingFaceChrome() {
13
  ">
14
  <div className="flex flex-none items-center">
15
  <div className="relative mr-1.5 flex items-center">
16
- <img alt="" className="w-3.5 h-3.5 rounded-full flex-none" src="https://cdn-avatars.huggingface.co/v1/production/uploads/64f73f25098581ab15e2f5ad/d2mDoZd292LK7j6ZT4mNX.png" crossOrigin="anonymous" />
17
  </div>
18
- <a href="/jbilcke-hf" className="hover:text-blue-600">enzostvs</a>
19
  <div className="mx-0.5 text-gray-300">/</div>
20
- <a className="font-mono font-semibold text-gray-800 hover:text-blue-600" href="/spaces/jbilcke-hf/ai-stories-factory">ai-stories-factory</a>
21
  </div>
22
  <div className="inline-flex items-center overflow-hidden whitespace-nowrap rounded-md border bg-white text-sm leading-none text-gray-500 flex-none self-center ">
23
  <button className="relative flex items-center overflow-hidden from-red-50 to-transparent dark:from-red-900 p-1 hover:bg-gradient-to-t focus:outline-none" title="Unlike">
 
2
  import svg2 from "./svg2.svg"
3
  import svg3 from "./svg3.svg"
4
 
5
+ export function HuggingFaceChrome({
6
+ space = "ai-stories-factory",
7
+ username = "jbilcke-hf",
8
+ avatar = "https://cdn-avatars.huggingface.co/v1/production/uploads/noauth/2RK8J_YSNAK2ob8XZH7w2.jpeg"
9
+ }: {
10
+ space: string
11
+ username: string
12
+ avatar: string
13
+ }) {
14
+
15
  return (
16
  <div className="
17
  from-gray-50-to-white text-md shadow-alternate fixed
 
22
  ">
23
  <div className="flex flex-none items-center">
24
  <div className="relative mr-1.5 flex items-center">
25
+ <img alt="" className="w-3.5 h-3.5 rounded-full flex-none" src={`${avatar}`} crossOrigin="anonymous" />
26
  </div>
27
+ <a href={`/${username}`} className="hover:text-blue-600">{username}</a>
28
  <div className="mx-0.5 text-gray-300">/</div>
29
+ <a className="font-mono font-semibold text-gray-800 hover:text-blue-600" href={`/spaces/${username}/${space}`}>{space}</a>
30
  </div>
31
  <div className="inline-flex items-center overflow-hidden whitespace-nowrap rounded-md border bg-white text-sm leading-none text-gray-500 flex-none self-center ">
32
  <button className="relative flex items-center overflow-hidden from-red-50 to-transparent dark:from-red-900 p-1 hover:bg-gradient-to-t focus:outline-none" title="Unlike">