Download app/src/components/Reference.astro from seonglae/ControlRL: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/spaces/seonglae/ControlRL/resolve/main/app/src/components/Reference.astro
- Command line
-
hf download hf://spaces/seonglae/ControlRL/app/src/components/Reference.astro
-
curl -L -o Reference.astro https://huggingface.co/spaces/seonglae/ControlRL/resolve/main/app/src/components/Reference.astro
923 Bytes
| --- | |
| interface Props { | |
| /** ID unique pour la référence */ | |
| id: string; | |
| /** Légende HTML pour la référence */ | |
| caption: string; | |
| } | |
| const { id, caption } = Astro.props as Props; | |
| --- | |
| <div class="reference-wrapper" id={id}> | |
| <figure class="reference"> | |
| <div class="reference__content"> | |
| <slot /> | |
| </div> | |
| <figcaption class="reference__caption" set:html={caption} /> | |
| </figure> | |
| </div> | |
| <style> | |
| .reference-wrapper { | |
| margin: 0; | |
| } | |
| .reference { | |
| margin: 0; | |
| } | |
| .reference__content { | |
| /* Le contenu peut être n'importe quoi */ | |
| } | |
| .reference__caption { | |
| text-align: left; | |
| font-size: 0.9rem; | |
| color: var(--muted-color); | |
| margin-top: 6px; | |
| background: var(--page-bg); | |
| position: relative; | |
| z-index: var(--z-elevated); | |
| display: block; | |
| width: 100%; | |
| } | |
| </style> | |