summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/BlogHeader.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src/components/BlogHeader.astro')
-rw-r--r--examples/blog/src/components/BlogHeader.astro166
1 files changed, 83 insertions, 83 deletions
diff --git a/examples/blog/src/components/BlogHeader.astro b/examples/blog/src/components/BlogHeader.astro
index 92d0cbfb1..4d32e87d8 100644
--- a/examples/blog/src/components/BlogHeader.astro
+++ b/examples/blog/src/components/BlogHeader.astro
@@ -1,90 +1,90 @@
+<header class="wrapper">
+ <article>
+ <h1>
+ <a href="/">
+ <svg class="logo" width="32" height="32" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <style>
+ #flame {
+ fill: #ff5d01;
+ }
+ #a {
+ fill: #000014;
+ }
+ </style>
+ <title>Logo</title>
+ <path
+ id="a"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M163.008 18.929c1.944 2.413 2.935 5.67 4.917 12.181l43.309 142.27a180.277 180.277 0 00-51.778-17.53l-28.198-95.29a3.67 3.67 0 00-7.042.01l-27.857 95.232a180.225 180.225 0 00-52.01 17.557l43.52-142.281c1.99-6.502 2.983-9.752 4.927-12.16a15.999 15.999 0 016.484-4.798c2.872-1.154 6.271-1.154 13.07-1.154h31.085c6.807 0 10.211 0 13.086 1.157a16.004 16.004 0 016.487 4.806z"
+ ></path>
+ <path
+ id="flame"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M168.19 180.151c-7.139 6.105-21.39 10.268-37.804 10.268-20.147 0-37.033-6.272-41.513-14.707-1.602 4.835-1.961 10.367-1.961 13.902 0 0-1.056 17.355 11.015 29.426 0-6.268 5.081-11.349 11.349-11.349 10.743 0 10.731 9.373 10.721 16.977v.679c0 11.542 7.054 21.436 17.086 25.606a23.27 23.27 0 01-2.339-10.2c0-11.008 6.463-15.107 13.974-19.87 5.976-3.79 12.616-8.001 17.192-16.449a31.024 31.024 0 003.743-14.82c0-3.299-.513-6.479-1.463-9.463z"
+ ></path>
+ </svg>
+ <span>My Blog</span>
+ </a>
+ </h1>
+ </article>
+</header>
+
<style>
-header {
- padding-top: 1rem;
- padding-bottom: 1rem;
- height: 5rem;
-}
-article {
- display: flex;
- align-items: center;
- justify-content: space-between;
-}
-.header-subitem {
- display: flex;
- flex-grow: 0;
- gap: 0.5em;
- align-items: center;
- justify-content: center;
- color: var(--theme-text-lighter);
- font-size: initial;
- padding: 0.5rem;
-}
-.header-subitem:hover {
- color: var(--theme-accent);
-}
-.header-subitem svg {
- width: 1.5rem;
- height: 1.5rem;
-}
+ header {
+ padding-top: 1rem;
+ padding-bottom: 1rem;
+ height: 5rem;
+ }
+ article {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
+ .header-subitem {
+ display: flex;
+ flex-grow: 0;
+ gap: 0.5em;
+ align-items: center;
+ justify-content: center;
+ color: var(--theme-text-lighter);
+ font-size: initial;
+ padding: 0.5rem;
+ }
+ .header-subitem:hover {
+ color: var(--theme-accent);
+ }
+ .header-subitem svg {
+ width: 1.5rem;
+ height: 1.5rem;
+ }
-@media (max-width: 32em) {
- .header-subitem {
- display: none;
- }
-}
+ @media (max-width: 32em) {
+ .header-subitem {
+ display: none;
+ }
+ }
-h1 {
- margin: 0;
- font-size: 1.5rem;
- max-width: 100%;
- display: flex;
- flex-grow: 1;
-}
+ h1 {
+ margin: 0;
+ font-size: 1.5rem;
+ max-width: 100%;
+ display: flex;
+ flex-grow: 1;
+ }
-.logo {
- transform: translateY(0.25rem);
-}
+ .logo {
+ transform: translateY(0.25rem);
+ }
-svg {
- width: 2.5rem;
- height: 2.5rem;
-}
+ svg {
+ width: 2.5rem;
+ height: 2.5rem;
+ }
-h1 a {
- text-decoration: none;
- display: inline-flex;
-}
+ h1 a {
+ text-decoration: none;
+ display: inline-flex;
+ }
</style>
-
-<header class="wrapper">
- <article>
- <h1>
- <a href="/">
- <svg class="logo" width="32" height="32" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
- <style>
- #flame {
- fill: #ff5d01;
- }
- #a {
- fill: #000014;
- }
- </style>
- <title>Logo</title>
- <path
- id="a"
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M163.008 18.929c1.944 2.413 2.935 5.67 4.917 12.181l43.309 142.27a180.277 180.277 0 00-51.778-17.53l-28.198-95.29a3.67 3.67 0 00-7.042.01l-27.857 95.232a180.225 180.225 0 00-52.01 17.557l43.52-142.281c1.99-6.502 2.983-9.752 4.927-12.16a15.999 15.999 0 016.484-4.798c2.872-1.154 6.271-1.154 13.07-1.154h31.085c6.807 0 10.211 0 13.086 1.157a16.004 16.004 0 016.487 4.806z"
- />
- <path
- id="flame"
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M168.19 180.151c-7.139 6.105-21.39 10.268-37.804 10.268-20.147 0-37.033-6.272-41.513-14.707-1.602 4.835-1.961 10.367-1.961 13.902 0 0-1.056 17.355 11.015 29.426 0-6.268 5.081-11.349 11.349-11.349 10.743 0 10.731 9.373 10.721 16.977v.679c0 11.542 7.054 21.436 17.086 25.606a23.27 23.27 0 01-2.339-10.2c0-11.008 6.463-15.107 13.974-19.87 5.976-3.79 12.616-8.001 17.192-16.449a31.024 31.024 0 003.743-14.82c0-3.299-.513-6.479-1.463-9.463z"
- />
- </svg>
- <span>My Blog</span>
- </a>
- </h1>
- </article>
-</header>