summaryrefslogtreecommitdiff
path: root/docs/src/components/Examples/Thumbnail.astro
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/components/Examples/Thumbnail.astro')
-rw-r--r--docs/src/components/Examples/Thumbnail.astro124
1 files changed, 124 insertions, 0 deletions
diff --git a/docs/src/components/Examples/Thumbnail.astro b/docs/src/components/Examples/Thumbnail.astro
new file mode 100644
index 000000000..c4364396d
--- /dev/null
+++ b/docs/src/components/Examples/Thumbnail.astro
@@ -0,0 +1,124 @@
+---
+import {Markdown} from 'astro/components'
+import formatName from './function/format-name.js'
+const {data:{name,pkgJSON:{description}}} = Astro.props
+---
+ <!-- Example 1 -->
+<!-- <div class="thumbnail">
+
+ <a href={`/example/${name}`}>
+ <h3>{formatName(name)}
+ </h3>
+ <img src="/default-og-image.png" alt="">
+ </a>
+
+ <pre data-lang='bash'>--template {name}</pre>
+</div> -->
+
+<!-- Example 2 -->
+<!-- <div class="thumbnail">
+
+ <a href={`/example/${name}`}>
+ <img src="/default-og-image.png" alt="">
+ <h3>{formatName(name)}
+ </h3>
+ </a>
+ <pre data-lang='bash'>--template {name}</pre>
+</div> -->
+
+<!-- Example 3 -->
+<div class="wrapper">
+ <div class="thumbnail">
+ <div class="title">
+ <a href={`/example/${name}`}>
+ <h3 >{formatName(name)}
+ </h3>
+ </a>
+ <code class="code-inline">{name}</code>
+ </div>
+ <p class="description">{description}</p>
+ <pre data-lang='bash' class="code-block">--template {name}</pre>
+ </div>
+</div>
+
+<style lang="scss">
+ .wrapper{
+ box-sizing: border-box;
+ width: 45%;
+ display:flex;
+ flex-direction:column;
+
+ border-radius: 5rem;
+ box-shadow: 2px 2px 2px #cacaca;
+ }
+ .thumbnail{
+ flex-basis:1;
+ flex-grow: 1;
+ transition: all 0.25s ease-out ;
+ transform: perspective(1000rem); //hack but needed,
+ &:hover{
+ transform: scale(1.015);
+ }
+ > a h3{
+ margin:0.5rem;
+ }
+ > a img{
+ margin-top:0.5rem;
+ border-radius: 1rem;
+ }
+ > a{
+ color:var(--theme-accent)
+ }
+ >p{
+ word-break: keep-all;
+ white-space: wrap;
+ overflow: hidden;
+ text-overflow: ellipsis
+ }
+ > pre{
+ width:99%;
+ margin-top: 0.85rem;
+ margin-left:0;
+ overflow: auto;
+
+ &::-webkit-scrollbar{
+ height:10px;
+ background-color: #383740;
+ color:white;
+
+ }
+ &::-webkit-scrollbar-track{
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
+ }
+ &::-webkit-scrollbar-thumb {
+ width: 25%;
+ background-color: darkgrey;
+ outline: 1px solid slategrey;
+ border-radius: 5rem;
+ }
+ }
+
+ .title{
+ display: flex;
+ flex-wrap: wrap;
+ flex-direction: row;
+ align-items: baseline;
+ > * + * {
+ margin-inline-start: 0.5rem;
+ }
+
+ }
+ }
+ @media(max-width:603px){
+ .thumbnail{
+ width: 100%;
+ height: fit-content;
+ >pre{
+ border-radius:0.5rem;
+ overflow: auto;
+ }
+ }
+ }
+
+
+</style>
tar' /> tweenietomatoes 1-1/+1 2022-09-27[ci] release (#4846)create-astro@1.1.0astro@1.3.1@astrojs/webapi@1.1.0@astrojs/vercel@2.0.1@astrojs/mdx@0.11.2@astrojs/image@0.8.0Gravatar Fred K. Bot 60-185/+169 2022-09-27fix: post API routes in SSG should warn or error during dev mode (#4878)Gravatar Rishi Raj Jain 3-2/+17 2022-09-27docs: Fix links to Tailwind examples (#4883)Gravatar Deanmv 1-1/+1 2022-09-27Set SSR target webworker for Vercel edge (#4884)Gravatar Bjorn Lu 2-0/+6 2022-09-27[ci] update lockfile (#4885)Gravatar Fred K. Bot 1-86/+79 2022-09-26[ci] formatGravatar bholmesdev 3-23/+19 2022-09-26Fix: correctly transform `import.meta.env.*` in MDX (#4858)Gravatar Ben Holmes 12-233/+454 2022-09-26Change negative lookbehind to lookahead (#4866)Gravatar Rishi Raj Jain 1-1/+1 2022-09-26add double check on astro file return type to display more human readable err...Gravatar Steven Yung 6-2/+61 2022-09-26[ci] update lockfile (#4862)Gravatar Fred K. Bot 1-81/+81 2022-09-26fix: Script with innerHTML not working on Safari (#4861)Gravatar Rishi Raj Jain 3-3/+10 2022-09-26Prevent /undefined catch-all routes in dev (#4873)Gravatar Bjorn Lu 6-9/+66 2022-09-26fix: 🐛 BUG: class:list directive adding class attribute when undefined (#4...Gravatar Rishi Raj Jain 2-2/+9 2022-09-26docs: Standardize common integration READMEs (#4874)Gravatar Jake Strawn 7-6/+66 2022-09-26docs: Update references to support channel in Discord. (#4872)Gravatar Jake Strawn 12-12/+12 2022-09-26[ci] formatGravatar bluwy 1-1/+1 2022-09-26fix: "chunks" directory appears in build output, if custom modules are import...Gravatar Rishi Raj Jain 2-6/+34 2022-09-23[ci] formatGravatar matthewp 1-1/+1 2022-09-23Define toStringTag another way (#4855)Gravatar Matthew Phillips 2-4/+12 2022-09-23update SSR example to match recent change on Astro API Context (#4854)Gravatar Steven Yung 2-4/+6 2022-09-23[ci] update lockfile (#4852)Gravatar Fred K. Bot 1-373/+402