Skip to content

Commit bfbc32f

Browse files
committed
Updates content and styles
1 parent 13ba7ef commit bfbc32f

File tree

6 files changed

+266
-129
lines changed

6 files changed

+266
-129
lines changed

assets/bundle/main.js

Lines changed: 68 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{a as o,b as g,c as M,d as E,e as m,f as x,g as w,h as N}from"./chunks/chunk-UASHANUO.js";var h=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var P={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:E},Y=(r=P,e,t)=>{let{kind:n,metadata:d}=t,l=globalThis.litPropertyMetadata.get(d);if(l===void 0&&globalThis.litPropertyMetadata.set(d,l=new Map),l.set(t.name,r),n==="accessor"){let{name:i}=t;return{set(p){let c=e.get.call(this);e.set.call(this,p),this.requestUpdate(i,c,r)},init(p){return p!==void 0&&this.C(i,void 0,r),p}}}if(n==="setter"){let{name:i}=t;return function(p){let c=this[i];e.call(this,p),this.requestUpdate(i,c,r)}}throw Error("Unsupported decorator location: "+n)};function s(r){return(e,t)=>typeof t=="object"?Y(r,e,t):((n,d,l)=>{let i=d.hasOwnProperty(l);return d.constructor.createProperty(l,i?{...n,wrapped:!0}:n),i?Object.getOwnPropertyDescriptor(d,l):void 0})(r,e,t)}var b=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function S(r,e){return(t,n,d)=>{let l=i=>i.renderRoot?.querySelector(r)??null;if(e){let{get:i,set:p}=typeof n=="object"?t:d??(()=>{let c=Symbol();return{get(){return this[c]},set(H){this[c]=H}}})();return b(t,n,{get(){if(e){let c=i.call(this);return c===void 0&&(c=l(this),p.call(this,c)),c}return l(this)}})}return b(t,n,{get(){return l(this)}})}}function $(r){return(e,t)=>{let{slot:n,selector:d}=r??{},l="slot"+(n?`[name=${n}]`:":not([name])");return b(e,t,{get(){let i=this.renderRoot?.querySelector(l),p=i?.assignedElements(r)??[];return d===void 0?p:p.filter(c=>c.matches(d))}})}}var D=r=>r??x;var u=class extends w{fireEvent(e,t){let n;return t===void 0?n=new CustomEvent(e):n=new CustomEvent(e,{detail:t}),this.dispatchEvent(n)}};var O=class extends u{static{this.shadowRootOptions={...w.shadowRootOptions,delegatesFocus:!0}}focus(e){this._control.focus(e)}blur(){this._control.blur()}click(){this._control.click()}};var q=g`
1+
import{a as o,b as p,c as $,d as N,e as n,f as k,g as O,h as S}from"./chunks/chunk-UASHANUO.js";var u=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var _={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:N},B=(r=_,t,e)=>{let{kind:a,metadata:f}=e,m=globalThis.litPropertyMetadata.get(f);if(m===void 0&&globalThis.litPropertyMetadata.set(f,m=new Map),m.set(e.name,r),a==="accessor"){let{name:l}=e;return{set(g){let d=t.get.call(this);t.set.call(this,g),this.requestUpdate(l,d,r)},init(g){return g!==void 0&&this.C(l,void 0,r),g}}}if(a==="setter"){let{name:l}=e;return function(g){let d=this[l];t.call(this,g),this.requestUpdate(l,d,r)}}throw Error("Unsupported decorator location: "+a)};function i(r){return(t,e)=>typeof e=="object"?B(r,t,e):((a,f,m)=>{let l=f.hasOwnProperty(m);return f.constructor.createProperty(m,l?{...a,wrapped:!0}:a),l?Object.getOwnPropertyDescriptor(f,m):void 0})(r,t,e)}var b=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function q(r,t){return(e,a,f)=>{let m=l=>l.renderRoot?.querySelector(r)??null;if(t){let{get:l,set:g}=typeof a=="object"?e:f??(()=>{let d=Symbol();return{get(){return this[d]},set(Y){this[d]=Y}}})();return b(e,a,{get(){if(t){let d=l.call(this);return d===void 0&&(d=m(this),g.call(this,d)),d}return m(this)}})}return b(e,a,{get(){return m(this)}})}}function U(r){return(t,e)=>{let{slot:a,selector:f}=r??{},m="slot"+(a?`[name=${a}]`:":not([name])");return b(t,e,{get(){let l=this.renderRoot?.querySelector(m),g=l?.assignedElements(r)??[];return f===void 0?g:g.filter(d=>d.matches(f))}})}}var z=r=>r??k;var c=class extends O{fireEvent(t,e){let a;return e===void 0?a=new CustomEvent(t):a=new CustomEvent(t,{detail:e}),this.dispatchEvent(a)}};var F=class extends c{static{this.shadowRootOptions={...O.shadowRootOptions,delegatesFocus:!0}}focus(t){this._control.focus(t)}blur(){this._control.blur()}click(){this._control.click()}};var j=p`
22
:host {
33
display: contents;
44
}
@@ -24,14 +24,14 @@ import{a as o,b as g,c as M,d as E,e as m,f as x,g as w,h as N}from"./chunks/chu
2424
outline: 1px solid var(--color-focus-foreground);
2525
outline-offset: 1px;
2626
}
27-
`;var f=class extends O{render(){return m`<a
27+
`;var h=class extends F{render(){return n`<a
2828
class="button"
2929
part="base"
30-
href="${D(this.href)}"
31-
target="${D(this.target)}"
32-
rel="${D(this.rel)}"
30+
href="${z(this.href)}"
31+
target="${z(this.target)}"
32+
rel="${z(this.rel)}"
3333
><slot></slot
34-
></a>`}};f.styles=[q],o([S(".button",!0)],f.prototype,"_control",2),o([s()],f.prototype,"href",2),o([s()],f.prototype,"target",2),o([s()],f.prototype,"rel",2),f=o([h("kd-link-button")],f);var v=class extends u{updated(){this.src&&this.style.setProperty("--kd-phone-hero-background-image",`url(${this.src})`)}render(){return m`<div class="container"><slot class="content"></slot></div>`}};v.styles=g`
34+
></a>`}};h.styles=[j],o([q(".button",!0)],h.prototype,"_control",2),o([i()],h.prototype,"href",2),o([i()],h.prototype,"target",2),o([i()],h.prototype,"rel",2),h=o([u("kd-link-button")],h);var y=class extends c{updated(){this.src&&this.style.setProperty("--kd-phone-hero-background-image",`url(${this.src})`)}render(){return n`<div class="container"><slot class="content"></slot></div>`}};y.styles=p`
3535
*,
3636
*::before,
3737
*::after {
@@ -99,19 +99,19 @@ import{a as o,b as g,c as M,d as E,e as m,f as x,g as w,h as N}from"./chunks/chu
9999
display: block;
100100
max-inline-size: calc(var(--kd-phone-hero-content-width) * 1%);
101101
}
102-
`,o([s({type:String})],v.prototype,"src",2),v=o([h("kd-phone-hero")],v);var U=new Map;function _(r){let e=U.get(r);return e||(e=new Intl.DateTimeFormat(void 0,r),U.set(r,e)),e}var V=Object.freeze({year:"numeric",month:"long"});function T(r,e=V){return _(e).format(r)}var Pe=Object.freeze({numeric:"auto"});var F=1e3,z=F*60,I=z*60,k=I*24,j=k*7,A=k*30,R=k*365,C=R*4,Ye=Object.freeze(new Map([["year",R],["years",R],["quarter",C],["quarters",C],["month",A],["months",A],["week",j],["weeks",j],["day",k],["days",k],["hour",I],["hours",I],["minute",z],["minutes",z],["second",F],["seconds",F]]));var _e=Object.freeze({localeMatcher:"best fit",numeric:"always",style:"narrow"});var a=class extends u{constructor(){super(...arguments);this.type="event";this.assetType="image"}get endingDate(){if(this.date==="present")return a.now;let t=new Date(this.date);if(t.toString()!=="Invalid Date")return t}get startingDate(){if(this.startDate===void 0)return;let t=new Date(this.startDate);if(t.toString()!=="Invalid Date")return t}renderDateRange(){return this.endingDate===void 0?x:this.startingDate===void 0?this.date==="present"?m`<time datetime="${a.now.getFullYear()}">Present</time>`:m`<div class="date-range">
103-
<time datetime="${this.endingDate.toISOString()}">${T(this.endingDate)}</time>
104-
</div>`:this.date==="present"?m`<div class="date-range">
105-
<time datetime="${this.startingDate.toISOString()}">${T(this.startingDate)}</time> - Present
106-
</div>`:m`<div class="date-range">
107-
<time datetime="${this.startingDate.toISOString()}">${T(this.startingDate)}</time> -
108-
<time datetime="${this.endingDate.toISOString()}">${T(this.endingDate)}</time>
109-
</div>`}renderMedia(){return this.asset===void 0?x:m`<div class="media-zone">
102+
`,o([i({type:String})],y.prototype,"src",2),y=o([u("kd-phone-hero")],y);var C=new Map;function V(r){let t=C.get(r);return t||(t=new Intl.DateTimeFormat(void 0,r),C.set(r,t)),t}var X=Object.freeze({year:"numeric",month:"long"});function D(r,t=X){return V(t).format(r)}var _e=Object.freeze({numeric:"auto"});var I=1e3,R=I*60,M=R*60,w=M*24,H=w*7,A=w*30,E=w*365,P=E*4,Be=Object.freeze(new Map([["year",E],["years",E],["quarter",P],["quarters",P],["month",A],["months",A],["week",H],["weeks",H],["day",w],["days",w],["hour",M],["hours",M],["minute",R],["minutes",R],["second",I],["seconds",I]]));var Ve=Object.freeze({localeMatcher:"best fit",numeric:"always",style:"narrow"});var s=class extends c{constructor(){super(...arguments);this.type="event";this.assetType="image"}get endingDate(){if(this.date==="present")return s.now;let e=new Date(this.date);if(e.toString()!=="Invalid Date")return e}get startingDate(){if(this.startDate===void 0)return;let e=new Date(this.startDate);if(e.toString()!=="Invalid Date")return e}renderDateRange(){return this.endingDate===void 0?k:this.startingDate===void 0?this.date==="present"?n`<time datetime="${s.now.getFullYear()}">Present</time>`:n`<div class="date-range">
103+
<time datetime="${this.endingDate.toISOString()}">${D(this.endingDate)}</time>
104+
</div>`:this.date==="present"?n`<div class="date-range">
105+
<time datetime="${this.startingDate.toISOString()}">${D(this.startingDate)}</time> - Present
106+
</div>`:n`<div class="date-range">
107+
<time datetime="${this.startingDate.toISOString()}">${D(this.startingDate)}</time> -
108+
<time datetime="${this.endingDate.toISOString()}">${D(this.endingDate)}</time>
109+
</div>`}renderMedia(){return this.asset===void 0?k:n`<div class="media-zone">
110110
<div class="media-container">
111111
<img class="media-cover" src="${this.asset}" alt="" />
112112
<img class="media" src="${this.asset}" alt="" />
113113
</div>
114-
</div>`}render(){return m`
114+
</div>`}render(){return n`
115115
<div class="timeline-zone">
116116
<span class="year2"><span class="h-sr-only">${this.type} in year </span>${this.endingDate?.getFullYear()}</span>
117117
<span class="event-tag"></span>
@@ -125,7 +125,7 @@ import{a as o,b as g,c as M,d as E,e as m,f as x,g as w,h as N}from"./chunks/chu
125125
</div>
126126
<slot name="meta" class="meta"></slot>
127127
</article>
128-
`}};a.now=new Date,a.styles=[N,g`
128+
`}};s.now=new Date,s.styles=[S,p`
129129
:host {
130130
contain: content;
131131
display: flex;
@@ -306,7 +306,7 @@ import{a as o,b as g,c as M,d as E,e as m,f as x,g as w,h as N}from"./chunks/chu
306306
::slotted(*:last-child) {
307307
margin-block-end: 0;
308308
}
309-
`],o([s()],a.prototype,"type",2),o([s()],a.prototype,"asset",2),o([s({attribute:"asset-type"})],a.prototype,"assetType",2),o([s()],a.prototype,"date",2),o([s({attribute:"start-date"})],a.prototype,"startDate",2),o([s()],a.prototype,"url",2),a=o([h("kd-life-event")],a);var y=class extends u{render(){return m`<span class="timeline"></span><slot class="events"></slot>`}};y.styles=[g`
309+
`],o([i()],s.prototype,"type",2),o([i()],s.prototype,"asset",2),o([i({attribute:"asset-type"})],s.prototype,"assetType",2),o([i()],s.prototype,"date",2),o([i({attribute:"start-date"})],s.prototype,"startDate",2),o([i()],s.prototype,"url",2),s=o([u("kd-life-event")],s);var x=class extends c{render(){return n`<span class="timeline"></span><slot class="events"></slot>`}};x.styles=[p`
310310
:host {
311311
display: block;
312312
position: relative;
@@ -350,5 +350,55 @@ import{a as o,b as g,c as M,d as E,e as m,f as x,g as w,h as N}from"./chunks/chu
350350
flex-direction: column;
351351
gap: var(--size-5);
352352
}
353-
`],o([$({selector:"kd-life-event"})],y.prototype,"lifeEventEls",2),y=o([h("kd-life-events")],y);
353+
`],o([U({selector:"kd-life-event"})],x.prototype,"lifeEventEls",2),x=o([u("kd-life-events")],x);var v=class extends c{constructor(){super(...arguments);this.term="";this.definition=""}get tags(){return this.definition.trim().length===0?[]:this.definition.split(",").map(e=>e.trim())}render(){return n`
354+
<span role="term"><slot name="term">${this.term}</slot></span>
355+
<span role="definition"
356+
><slot><span class="tags">${this.tags.map(e=>n`<kd-tag>${e}</kd-tag> `)}</span></slot></span
357+
>
358+
`}};v.styles=[p`
359+
:host {
360+
display: flex;
361+
flex-direction: row;
362+
align-items: top;
363+
gap: var(--spacing-md);
364+
margin-block-end: var(--spacing-sm);
365+
}
366+
367+
[role='term'] {
368+
/* min-inline-size: var(--size-8); */
369+
display: block;
370+
/* font-weight: bold; */
371+
/* font-size: var(--type-body-sm-size); */
372+
/* line-height: 1.25; */
373+
text-transform: uppercase;
374+
opacity: 0.6;
375+
}
376+
377+
[role='definition'] {
378+
display: block;
379+
font-weight: bold;
380+
}
381+
382+
.tags {
383+
display: inline-flex;
384+
flex-wrap: wrap;
385+
gap: var(--spacing-sm) var(--spacing-xs);
386+
}
387+
`],o([i()],v.prototype,"term",2),o([i()],v.prototype,"definition",2),v=o([u("kd-attribution")],v);var T=class extends c{render(){return n`<slot></slot>`}};T.styles=[p`
388+
:host {
389+
display: inline-block;
390+
padding: var(--spacing-xs) var(--spacing-lg);
391+
font-size: var(--type-body-sm-size);
392+
text-transform: uppercase;
393+
border-radius: var(--roundness-sm);
394+
background-color: var(--color-tag-background);
395+
color: var(--color-tag-foreground);
396+
letter-spacing: 0.075em;
397+
vertical-align: middle;
398+
}
399+
400+
:host {
401+
margin-inline-end: var(--spacing-xs);
402+
}
403+
`],T=o([u("kd-tag")],T);
354404
/*! For license information please see main.js.LEGAL.txt */

assets/styles/site.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@
8282
--type-h4-size: var(--size-2);
8383
--type-h5-size: var(--size-1);
8484
--type-h6-size: var(--size-0);
85-
--type-small-size: 0.75em; /* based on --size--1 */
86-
--type-body-lg-size: var(--size-1);
8785
--type-body-xl-size: var(--size-2);
86+
--type-body-lg-size: var(--size-1);
87+
--type-body-sm-size: var(--size--1);
8888
--type-overline-size: var(--size--2);
89+
--type-small-size: 0.75em; /* based on --size--1 */
8990

9091
/* elevation (z-index and shadowing) */
9192
--elevation-behind: -1;
@@ -158,13 +159,16 @@
158159
--color-secondary-foreground: var(--color-raw-neutral-10);
159160
--color-secondary-background: var(--color-raw-neutral-80);
160161

161-
--color-footer-foreground: var(--color-raw-neutral-90);
162+
--color-footer-foreground: var(--color-raw-neutral-70);
162163
--color-footer-background: var(--color-raw-neutral-10);
163164

164165
--color-elevation-shadow: rgba(0, 0, 0, 0.2);
165166

166167
--color-hero-background: var(--color-raw-blue-95);
167168
--color-hero-fade-background: #fff;
169+
170+
--color-tag-foreground: var(--color-raw-blue-40);
171+
--color-tag-background: var(--color-raw-neutral-95);
168172
}
169173

170174
/* semantic color tokens - dark mode */
@@ -194,6 +198,9 @@
194198

195199
--color-hero-background: var(--color-raw-blue-05);
196200
--color-hero-fade-background: var(--color-raw-blue-10);
201+
202+
--color-tag-foreground: var(--color-raw-blue-60);
203+
--color-tag-background: var(--color-raw-neutral-05);
197204
}
198205
}
199206

@@ -448,7 +455,7 @@ kbd kbd {
448455
}
449456

450457
.section--contact {
451-
padding-block: var(--spacing-md);
458+
padding-block: var(--size-3);
452459
background-color: var(--color-secondary-background);
453460
}
454461

@@ -465,7 +472,7 @@ kbd kbd {
465472
.footer__group {
466473
display: inline-flex;
467474
flex-direction: row;
468-
align-items: center;
475+
align-items: flex-start;
469476
gap: var(--spacing-md);
470477
}
471478
.footer__group--end {

0 commit comments

Comments
 (0)