generated from mrsimonemms/new
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df38870
commit 5fd9399
Showing
17 changed files
with
450 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
export interface Props { | ||
src: string; | ||
alt: string; | ||
content?: string; | ||
} | ||
const { src, alt, content = null } = Astro.props; | ||
--- | ||
|
||
<div class="card"> | ||
<div class="card-image"> | ||
<figure class="image"> | ||
<a href={src} target="_blank"> | ||
<img {src} {alt} title={alt} /> | ||
</a> | ||
</figure> | ||
</div> | ||
|
||
{ | ||
content !== null && ( | ||
<div class="card-content"> | ||
<div class="content">{content}</div> | ||
</div> | ||
) | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
import { SITE_DESCRIPTION, SITE_TITLE ,TWITTER_USER} from '../consts'; | ||
const currentYear = new Date().getUTCFullYear(); | ||
const copyrightYear = currentYear; | ||
const copyrightHolder = SITE_TITLE; | ||
const description = SITE_DESCRIPTION; | ||
--- | ||
|
||
<footer class="footer has-background-black-ter has-text-white py-6"> | ||
<div class="container"> | ||
<div class="columns has-text-centered-touch"> | ||
<div class="column is-half">{description}</div> | ||
|
||
<div class="column is-half has-text-right-desktop"> | ||
<a | ||
href=`https://twitter.com/${TWITTER_USER}` | ||
target="_blank" | ||
class="icon has-text-white" | ||
> | ||
<i class="mdi mdi-24px mdi-twitter"></i> | ||
</a> | ||
</div> | ||
</div> | ||
<hr class="has-background-grey-dark" /> | ||
<p class="has-text-centered"> | ||
© {copyrightYear} | ||
{copyrightHolder} All rights reserved | ||
</p> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,103 @@ | ||
<nav class="navbar" role="navigation" aria-label="main navigation"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="https://bulma.io"> | ||
<svg | ||
width="640" | ||
height="160" | ||
viewBox="0 0 640 160" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M170 132.571V27.5908C170 25.5451 170.915 23.93 172.746 22.7456C174.576 21.5612 176.729 20.969 179.206 20.969H210.377C232.019 20.969 242.84 30.4441 242.84 49.3943C242.84 62.5303 238.264 71.0902 229.112 75.074C234.603 77.2275 238.748 80.2692 241.548 84.1992C244.347 88.1292 245.747 93.8627 245.747 101.4V104.791C245.747 116.743 242.84 125.437 237.026 130.875C231.211 136.312 223.351 139.031 213.445 139.031H179.206C176.514 139.031 174.307 138.385 172.584 137.093C170.861 135.801 170 134.293 170 132.571ZM190.834 120.619H209.085C219.529 120.619 224.751 114.751 224.751 103.015V100.431C224.751 94.401 223.432 90.0404 220.794 87.3486C218.156 84.6568 214.253 83.3109 209.085 83.3109H190.834V120.619ZM190.834 66.8371H208.923C213.122 66.8371 216.326 65.5989 218.533 63.1225C220.74 60.646 221.844 57.2544 221.844 52.9475C221.844 48.7483 220.686 45.4374 218.371 43.0148C216.057 40.5922 212.853 39.3809 208.762 39.3809H190.834V66.8371ZM260.283 103.015V27.4293C260.283 25.2759 261.306 23.6608 263.351 22.5841C265.397 21.5074 267.873 20.969 270.781 20.969C273.688 20.969 276.164 21.5074 278.21 22.5841C280.256 23.6608 281.279 25.2759 281.279 27.4293V103.015C281.279 115.397 287.2 121.588 299.044 121.588C310.888 121.588 316.81 115.397 316.81 103.015V27.4293C316.81 25.2759 317.833 23.6608 319.879 22.5841C321.925 21.5074 324.401 20.969 327.308 20.969C330.215 20.969 332.692 21.5074 334.738 22.5841C336.783 23.6608 337.806 25.2759 337.806 27.4293V103.015C337.806 115.72 334.28 125.061 327.227 131.036C320.175 137.012 310.781 140 299.044 140C287.308 140 277.914 137.039 270.861 131.117C263.809 125.195 260.283 115.828 260.283 103.015ZM356.703 132.409V27.4293C356.703 25.2759 357.725 23.6608 359.771 22.5841C361.817 21.5074 364.293 20.969 367.201 20.969C370.108 20.969 372.584 21.5074 374.63 22.5841C376.676 23.6608 377.699 25.2759 377.699 27.4293V120.619H417.106C419.044 120.619 420.579 121.534 421.709 123.365C422.84 125.195 423.405 127.349 423.405 129.825C423.405 132.301 422.84 134.455 421.709 136.285C420.579 138.116 419.044 139.031 417.106 139.031H365.908C363.432 139.031 361.279 138.439 359.448 137.254C357.618 136.07 356.703 134.455 356.703 132.409ZM434.872 132.409V31.467C434.872 27.9138 435.868 25.2759 437.86 23.5532C439.852 21.8304 442.355 20.969 445.37 20.969C449.354 20.969 452.423 21.6689 454.576 23.0686C456.729 24.4684 459.098 27.4832 461.682 32.1131L481.548 68.2907L501.413 32.1131C503.997 27.4832 506.393 24.4684 508.6 23.0686C510.808 21.6689 513.903 20.969 517.887 20.969C520.902 20.969 523.405 21.8304 525.397 23.5532C527.389 25.2759 528.385 27.9138 528.385 31.467V132.409C528.385 134.455 527.335 136.07 525.236 137.254C523.136 138.439 520.686 139.031 517.887 139.031C514.98 139.031 512.503 138.439 510.458 137.254C508.412 136.07 507.389 134.455 507.389 132.409V62.961L488.493 96.5545C486.985 99.354 484.616 100.754 481.386 100.754C478.264 100.754 475.949 99.354 474.441 96.5545L455.868 61.6689V132.409C455.868 134.455 454.818 136.07 452.719 137.254C450.619 138.439 448.17 139.031 445.37 139.031C442.463 139.031 439.987 138.439 437.941 137.254C435.895 136.07 434.872 134.455 434.872 132.409ZM539.529 130.31C539.529 130.094 539.637 129.556 539.852 128.694L571.023 27.1063C571.669 24.8452 573.257 23.0956 575.787 21.8573C578.318 20.6191 581.198 20 584.428 20C587.658 20 590.565 20.6191 593.149 21.8573C595.734 23.0956 597.349 24.8452 597.995 27.1063L629.166 128.694C629.381 129.556 629.489 130.094 629.489 130.31C629.489 132.678 628.035 134.724 625.128 136.447C622.221 138.17 619.26 139.031 616.245 139.031C612.261 139.031 609.892 137.631 609.139 134.832L603.001 113.351H566.016L559.879 134.832C559.125 137.631 556.756 139.031 552.773 139.031C549.65 139.031 546.662 138.197 543.809 136.528C540.956 134.859 539.529 132.786 539.529 130.31ZM570.377 96.8775H598.479L584.428 47.2948L570.377 96.8775Z" | ||
fill="black" | ||
class="bd-svg-black"></path> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M0 110L10 40L50 0L100 50L70 80L110 120L50 160L0 110Z" | ||
fill="#00D1B2"></path> | ||
</svg> | ||
</a> | ||
|
||
<a | ||
role="button" | ||
class="navbar-burger" | ||
aria-label="menu" | ||
aria-expanded="false" | ||
data-target="navbarBasicExample" | ||
> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</a> | ||
</div> | ||
--- | ||
import { ETSY_URL } from '../consts'; | ||
<div id="navbarBasicExample" class="navbar-menu"> | ||
<div class="navbar-start"> | ||
<a class="navbar-item"> Home </a> | ||
interface ILinks { | ||
name: string; | ||
url: string; | ||
exactMatch?: boolean; | ||
external?: boolean; | ||
} | ||
<a class="navbar-item"> Documentation </a> | ||
const nav: ILinks[] = [ | ||
{ | ||
name: 'Shop', | ||
url: ETSY_URL, | ||
external: true, | ||
}, | ||
{ | ||
name: 'About', | ||
url: '#about', | ||
}, | ||
{ | ||
name: 'Gallery', | ||
url: '#gallery', | ||
}, | ||
{ | ||
name: 'Host A Hive', | ||
url: '#host-a-hive', | ||
}, | ||
{ | ||
name: 'Contact', | ||
url: '#contact', | ||
}, | ||
]; | ||
--- | ||
|
||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link"> More </a> | ||
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation"> | ||
<div class="container"> | ||
<div class="navbar-brand"> | ||
<a class="navbar-item" href="/"> | ||
<img src="/img/brand/logo.png" alt="Priorslee Honey" /> | ||
</a> | ||
|
||
<div class="navbar-dropdown"> | ||
<a class="navbar-item"> About </a> | ||
<a class="navbar-item is-selected"> Jobs </a> | ||
<a class="navbar-item"> Contact </a> | ||
<hr class="navbar-divider" /> | ||
<a class="navbar-item"> Report an issue </a> | ||
</div> | ||
</div> | ||
<a | ||
role="button" | ||
class="navbar-burger" | ||
aria-label="menu" | ||
aria-expanded="false" | ||
data-target="navbarMenu" | ||
> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
<span aria-hidden="true"></span> | ||
</a> | ||
</div> | ||
|
||
<div class="navbar-end"> | ||
<div class="navbar-item"> | ||
<div class="buttons"> | ||
<a class="button is-primary"> | ||
<strong>Sign up</strong> | ||
</a> | ||
<a class="button is-light"> Log in </a> | ||
</div> | ||
<div id="navbarMenu" class="navbar-menu"> | ||
<div class="navbar-end"> | ||
{ | ||
nav.map((item) => ( | ||
<a | ||
class="navbar-item" | ||
class:list={{ | ||
'is-active has-text-white': | ||
(item.exactMatch ?? false) !== false | ||
? Astro.url.pathname === item.url | ||
: Astro.url.pathname.startsWith(item.url), | ||
}} | ||
href={item.url} | ||
target={item.external ? '_blank' : undefined} | ||
> | ||
{item.name} | ||
</a> | ||
)) | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
<script> | ||
const $navbarBurgers = Array.prototype.slice.call( | ||
document.querySelectorAll('.navbar-burger'), | ||
0, | ||
); | ||
|
||
// Add a click event on each of them | ||
$navbarBurgers.forEach((el) => { | ||
el.addEventListener('click', () => { | ||
// Get the target from the "data-target" attribute | ||
const target = el.dataset.target; | ||
const $target = document.getElementById(target); | ||
|
||
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" | ||
el.classList.toggle('is-active'); | ||
$target?.classList.toggle('is-active'); | ||
|
||
// Stored as a boolean-string | ||
const expanded = el.ariaExpanded === 'true'; | ||
el.ariaExpanded = (!expanded).toString(); | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
interface Props { | ||
isAnchor?: boolean; | ||
id: string; | ||
title: string; | ||
} | ||
const { isAnchor = true, id, title } = Astro.props; | ||
--- | ||
|
||
<section id={id} class={`section ${isAnchor ? 'anchor' : ''}`}> | ||
<div class="container"> | ||
<h2 class="title">{title}</h2> | ||
|
||
<slot /> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,46 @@ | ||
--- | ||
import BaseHead from '../components/BaseHead.astro'; | ||
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; | ||
import Footer from '../components/Footer.astro'; | ||
import Hero, { type Props as HeroProps } from '../components/Hero.astro'; | ||
import Navbar from '../components/Navbar.astro'; | ||
interface Props { | ||
title?: string; | ||
description?: string; | ||
img?: string; | ||
heroSize?: HeroProps['size']; | ||
} | ||
const { | ||
title = 'Unknown', | ||
description = 'Unknown', | ||
img = '/img/photos/simon.jpg', | ||
heroSize = 'large', | ||
} = Astro.props; | ||
--- | ||
|
||
<!doctype html> | ||
<html> | ||
<head> | ||
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> | ||
<BaseHead title={title} description={description} /> | ||
</head> | ||
<body> | ||
<slot /> | ||
<body class="is-flex is-flex-direction-column" style="min-height: 100vh"> | ||
<Navbar /> | ||
|
||
<div class="is-flex-grow-1"> | ||
<Hero img={img} size={heroSize}> | ||
<div | ||
class="is-align-items-center has-background-black-ter is-inline-block p-5" | ||
> | ||
<h1 class="title has-text-white-ter">{description}</h1> | ||
</div> | ||
</Hero> | ||
|
||
<div class="my-6"> | ||
<slot /> | ||
</div> | ||
</div> | ||
|
||
<Footer /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
import BaseHead from '../components/BaseHead.astro'; | ||
import Hero from '../components/Hero.astro'; | ||
import Navbar from '../components/Navbar.astro'; | ||
const title = 'Page not found'; | ||
--- | ||
|
||
<!doctype html> | ||
<html> | ||
<head> | ||
<BaseHead title={title} description={title} /> | ||
</head> | ||
<body> | ||
<Hero img="/img/photos/bees-on-frame2.jpg" size="fullheight"> | ||
<div slot="head"> | ||
<Navbar /> | ||
</div> | ||
<div | ||
class="is-align-items-center has-background-black-ter is-inline-block p-5" | ||
> | ||
<h1 class="title has-text-white-ter">{title}</h1> | ||
</div> | ||
</Hero> | ||
</body> | ||
</html> |
Oops, something went wrong.