Skip to content

Commit 7aa1cfd

Browse files
astrofy logo!
1 parent 682a0bd commit 7aa1cfd

File tree

6 files changed

+38
-13
lines changed

6 files changed

+38
-13
lines changed

src/components/Hero.astro

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@ import {type NameURLModel } from '@ts/Models';
33
interface Props {
44
title: string;
55
subtitle: string;
6+
logo: string;
67
parent?: NameURLModel;
78
}
89
9-
const { title, subtitle, parent } = Astro.props;
10+
const { title, subtitle, parent, logo } = Astro.props;
11+
12+
let photopath = logo && '/src/assets/'.concat(logo);
13+
14+
import { Image } from 'astro:assets';
15+
const images = import.meta.glob<{ default: ImageMetadata }>('/src/assets/*.{jpeg,jpg,png,gif,svg}')
16+
1017
---
1118

1219
<section class="hero is-fullheight">
1320
<div class="hero-body is-fullwidth" style="z-index:1000">
1421
<div class="columns is-fullwidth is-vcentered" style="width:100%">
15-
<div class="column is-one-fifth has-text-centered">
16-
<img class="image is-inline-block" width="250px" src='/src/assets/logo_medium.png' alt={"Logo of ".concat(title)} />
22+
<div class="column is-one-fifth has-text-centered image-shadow-success">
23+
<Image
24+
class:list={["image-shadow-success"]}
25+
src={images[photopath]()}
26+
alt={"Logo of ".concat(title)}
27+
/>
1728
</div>
1829
<div class="column">
1930
<h1 class="title has-text-danger is-size-1 text-shadow-success"> {title}</h1>

src/components/Organization.astro

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,37 @@
22
import { Icon } from 'astro-icon/components'
33
import AboutCard from '@components/AboutCard.astro'
44
import markdownit from 'markdown-it'
5+
import ImageBox from '@components/ImageBox.astro'
56
const md = markdownit()
67
78
import { type OrgModel } from '@ts/Models'
89
910
interface Props {
1011
org: OrgModel;
12+
logo: string;
1113
columns: boolean;
1214
}
1315
1416
const iconSize = 20;
1517
16-
const { org, columns = true} = Astro.props;
18+
const { org, logo, columns = true} = Astro.props;
1719
---
1820
<AboutCard columns={columns}>
1921
<div class="block">
2022
<div class="columns is-vcentered">
2123
<div class="column is-one-quarter has-text-centered">
22-
<img class="logo image is-inline-block" src='/src/assets/logo_medium.png' />
24+
<ImageBox
25+
class:list={["image-shadow-success"]}
26+
src={logo}
27+
alt={"Logo of ".concat(org.name)}
28+
/>
2329
</div>
2430
<div class="column">
25-
<p class="title is-4 has-text-danger">{org.name}</p>
26-
<p class="subtitle is-4 has-text-danger">{org.subtitle}</p>
27-
{org.parent &&
28-
<p class="has-text-danger"><a href={org.parent.url}>{org.parent.name}</a></p>
29-
}
31+
<p class="title is-4 has-text-danger">{org.name}</p>
32+
<p class="subtitle is-4 has-text-danger">{org.subtitle}</p>
33+
{org.parent &&
34+
<p class="has-text-danger"><a href={org.parent.url}>{org.parent.name}</a></p>
35+
}
3036
</div>
3137
</div>
3238
</div>

src/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "OGRAPHIES Research & Design",
33
"corp_form": "LLC",
4-
"logo": "logo.jpg",
4+
"logo": "logo_medium.png",
55
"subtitle": "When mapping matters.",
66
"url": "https://ographiesresearch.com",
77
"description": "[OGRAPHIES Research & Design](https://ographiesresearch.com) is a mission-driven GIS, mapping, and spatial data science consultancy based in Greater Boston that designs tools and analyzes problems for clients who are working towards a more just world. [OGRAPHIES](https://ographiesresearch.com) is not a traditional GIS consultancy. [OGRAPHIES](https://ographiesresearch.com) builds custom web applications, automates complex spatial workflows, and works to scale the complexity of our solutions to align with the capacity of our clients.",

src/pages/about.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let clients = data.clients.sort((a,b) => (a.name > b.name) ? 1 : ((b.name > a.na
2323
<BaseLayout name={data.name}>
2424
<section class="section">
2525
<div class="columns">
26-
<Organization org={data} columns={true}/>
26+
<Organization org={data} columns={true}, logo={dataRaw.logo}/>
2727
<People people={leadership} columns={true}/>
2828
</div>
2929
</div>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ const data:ConfigModel= dataRaw;
1010
import { ViewTransitions } from 'astro:transitions';
1111
---
1212
<BaseLayout name={data.name}>
13-
<Hero title={data.name} subtitle={data.subtitle} parent={data.parent}/>
13+
<Hero title={data.name} subtitle={data.subtitle} logo={dataRaw.logo} parent={data.parent}/>
1414
</BaseLayout>
1515
<ViewTransitions/>

src/sass/styles.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ a.button {
2929
text-decoration-line: none;
3030
}
3131

32+
.image-shadow-danger {
33+
filter: drop-shadow($shadow-offset $shadow-offset 0px $danger);
34+
}
35+
36+
.image-shadow-success {
37+
filter: drop-shadow($shadow-offset $shadow-offset 0px $success);
38+
}
39+
3240
.text-shadow-danger {
3341
text-shadow: $shadow-offset $shadow-offset $danger;
3442
}

0 commit comments

Comments
 (0)