summaryrefslogtreecommitdiff
path: root/examples/basics/src
diff options
context:
space:
mode:
authorGravatar doodlemarks <doodlemarks@users.noreply.github.com> 2023-07-24 21:43:14 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-07-24 21:43:14 +0000
commit81c460e30b3318b9727a609390243f42e112ad24 (patch)
tree368141129edc07694c6b075a4db4032a8b342254 /examples/basics/src
parent13120a0493483d0b10ae3b6c32346aa96ea1cf2d (diff)
downloadastro-81c460e30b3318b9727a609390243f42e112ad24.tar.gz
astro-81c460e30b3318b9727a609390243f42e112ad24.tar.zst
astro-81c460e30b3318b9727a609390243f42e112ad24.zip
[ci] format
Diffstat (limited to 'examples/basics/src')
-rw-r--r--examples/basics/src/components/Card.astro6
-rw-r--r--examples/basics/src/pages/index.astro32
2 files changed, 28 insertions, 10 deletions
diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro
index 5ce15cca4..bd6d5971e 100644
--- a/examples/basics/src/components/Card.astro
+++ b/examples/basics/src/components/Card.astro
@@ -24,13 +24,13 @@ const { href, title, body } = Astro.props;
list-style: none;
display: flex;
padding: 1px;
- background-color: #23262D;
+ background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
- box-shadow: inset 0 0 0 1px rgba(255,255,255, 0.1);
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
@@ -39,7 +39,7 @@ const { href, title, body } = Astro.props;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
- background-color: #23262D;
+ background-color: #23262d;
opacity: 0.8;
}
h2 {
diff --git a/examples/basics/src/pages/index.astro b/examples/basics/src/pages/index.astro
index e75451bb6..fa55169f5 100644
--- a/examples/basics/src/pages/index.astro
+++ b/examples/basics/src/pages/index.astro
@@ -5,15 +5,33 @@ import Card from '../components/Card.astro';
<Layout title="Welcome to Astro.">
<main>
- <svg class="astro-a" width="495" height="623" viewBox="0 0 495 623" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M167.19 364.254C83.4786 364.254 0 404.819 0 404.819C0 404.819 141.781 19.4876 142.087 18.7291C146.434 7.33701 153.027 0 162.289 0H332.441C341.703 0 348.574 7.33701 352.643 18.7291C352.92 19.5022 494.716 404.819 494.716 404.819C494.716 404.819 426.67 364.254 327.525 364.254L264.41 169.408C262.047 159.985 255.147 153.581 247.358 153.581C239.569 153.581 232.669 159.985 230.306 169.408L167.19 364.254ZM160.869 530.172C160.877 530.18 160.885 530.187 160.894 530.195L160.867 530.181C160.868 530.178 160.868 530.175 160.869 530.172ZM136.218 411.348C124.476 450.467 132.698 504.458 160.869 530.172C160.997 529.696 161.125 529.242 161.248 528.804C161.502 527.907 161.737 527.073 161.917 526.233C165.446 509.895 178.754 499.52 195.577 500.01C211.969 500.487 220.67 508.765 223.202 527.254C224.141 534.12 224.23 541.131 224.319 548.105C224.328 548.834 224.337 549.563 224.347 550.291C224.563 566.098 228.657 580.707 237.264 593.914C245.413 606.426 256.108 615.943 270.749 622.478C270.593 621.952 270.463 621.508 270.35 621.126C270.045 620.086 269.872 619.499 269.685 618.911C258.909 585.935 266.668 563.266 295.344 543.933C298.254 541.971 301.187 540.041 304.12 538.112C310.591 533.854 317.059 529.599 323.279 525.007C345.88 508.329 360.09 486.327 363.431 457.844C364.805 446.148 363.781 434.657 359.848 423.275C358.176 424.287 356.587 425.295 355.042 426.275C351.744 428.366 348.647 430.33 345.382 431.934C303.466 452.507 259.152 455.053 214.03 448.245C184.802 443.834 156.584 436.019 136.218 411.348Z" fill="url(#paint0_linear_1805_24383)"/>
+ <svg
+ class="astro-a"
+ width="495"
+ height="623"
+ viewBox="0 0 495 623"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M167.19 364.254C83.4786 364.254 0 404.819 0 404.819C0 404.819 141.781 19.4876 142.087 18.7291C146.434 7.33701 153.027 0 162.289 0H332.441C341.703 0 348.574 7.33701 352.643 18.7291C352.92 19.5022 494.716 404.819 494.716 404.819C494.716 404.819 426.67 364.254 327.525 364.254L264.41 169.408C262.047 159.985 255.147 153.581 247.358 153.581C239.569 153.581 232.669 159.985 230.306 169.408L167.19 364.254ZM160.869 530.172C160.877 530.18 160.885 530.187 160.894 530.195L160.867 530.181C160.868 530.178 160.868 530.175 160.869 530.172ZM136.218 411.348C124.476 450.467 132.698 504.458 160.869 530.172C160.997 529.696 161.125 529.242 161.248 528.804C161.502 527.907 161.737 527.073 161.917 526.233C165.446 509.895 178.754 499.52 195.577 500.01C211.969 500.487 220.67 508.765 223.202 527.254C224.141 534.12 224.23 541.131 224.319 548.105C224.328 548.834 224.337 549.563 224.347 550.291C224.563 566.098 228.657 580.707 237.264 593.914C245.413 606.426 256.108 615.943 270.749 622.478C270.593 621.952 270.463 621.508 270.35 621.126C270.045 620.086 269.872 619.499 269.685 618.911C258.909 585.935 266.668 563.266 295.344 543.933C298.254 541.971 301.187 540.041 304.12 538.112C310.591 533.854 317.059 529.599 323.279 525.007C345.88 508.329 360.09 486.327 363.431 457.844C364.805 446.148 363.781 434.657 359.848 423.275C358.176 424.287 356.587 425.295 355.042 426.275C351.744 428.366 348.647 430.33 345.382 431.934C303.466 452.507 259.152 455.053 214.03 448.245C184.802 443.834 156.584 436.019 136.218 411.348Z"
+ fill="url(#paint0_linear_1805_24383)"></path>
<defs>
- <linearGradient id="paint0_linear_1805_24383" x1="247.358" y1="0" x2="247.358" y2="622.479" gradientUnits="userSpaceOnUse">
- <stop stop-opacity="0.9"/>
- <stop offset="1" stop-opacity="0.2"/>
- </linearGradient>
+ <linearGradient
+ id="paint0_linear_1805_24383"
+ x1="247.358"
+ y1="0"
+ x2="247.358"
+ y2="622.479"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stop-opacity="0.9"></stop>
+ <stop offset="1" stop-opacity="0.2"></stop>
+ </linearGradient>
</defs>
- </svg>
+ </svg>
<h1>Welcome to <span class="text-gradient">Astro</span></h1>
<p class="instructions">
To get started, open the directory <code>src/pages</code> in your project.<br />