Skip to content

Commit 98f53d6

Browse files
committed
Deploying to gh-pages from @ 33c3259 🚀
1 parent b786c1a commit 98f53d6

34 files changed

+36
-36
lines changed
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{j as e}from"./jsx-runtime-Cf8x2fCZ.js";import{C as l}from"./Column-Bhqy_FO7.js";import{M as d}from"./Main-BqxOGoMS.js";import{C as a}from"./Card-BnsRKvyH.js";import{N as m}from"./NewsData-CjZsRozh.js";import{E as te}from"./EventData-B4eRm20-.js";import{I as ne,P as se}from"./PeopleData-oav3_Z5q.js";import{S as oe,V as ie}from"./VideoData-Csafh9oY.js";import"./index-yBjzXJbu.js";import"./propClasses-CJUCiil5.js";import"./parse-CXxdJvFO.js";import"./format-BDD0as5c.js";import"./getDate-DcT4OotK.js";import"./isSameDay-C9OCNg_L.js";import"./Icon-C3UOjDQf.js";import"./index-OlNebYNa.js";import"./_commonjsHelpers-CqkleIqs.js";import"./iframe-Bd3zhpS-.js";const He={title:"Components/Card",component:a,tags:["autodocs"],parameters:{controls:{sort:"requiredFirst"}}},h={render:r=>e.jsx(d,{maxWidth:"3xl",children:e.jsxs(a,{...r,children:[e.jsx(a.Header,{title:"How to Write for the Web"}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst. Nulla porta posuere est, aliquam mollis mi accumsan id. Morbi mauris ex, gravida eu sodales sed, tempor vel mauris."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:"https://carleton.ca/webservices",className:"cu-button cu-button--red cu-button--small",children:"More info"})})]})})},C={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:m.slice(0,2).map(({id:t,link:n,title:s,image:o,alt:i,date:c})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s,datePrefix:"Published on",date:c,readTime:"7"}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst. Nulla porta posuere est, aliquam mollis mi accumsan id. Morbi mauris ex, gravida eu sodales sed, tempor vel mauris."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t))})})},g={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:te.slice(0,2).map(({id:t,title:n,link:s,image:o,alt:i,startDate:c,endDate:u,on_campus:p,on_campus_building:M,on_campus_room_number:ae,event_address:re})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:400,height:175})}),e.jsx(a.DateThumb,{startDate:c,endDate:u}),e.jsx(a.Header,{title:n}),e.jsx(a.Body,{children:e.jsx(a.EventMeta,{startDateTime:c,endDateTime:u,onCampus:p,onCampusBuilding:M,onCampusRoomNumber:ae,eventAddress:re})}),e.jsx(a.Footer,{children:e.jsx("a",{href:s,className:"cu-button cu-button--red cu-button--small",children:"More info"})})]},t))})})},x={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:m.slice(0,2).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,noHover:!0,children:[e.jsx(a.ImageThumb,{children:e.jsx("img",{src:o,alt:i,width:"200",height:"133"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Get informed"})})]},t))})})},j={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:ne.slice(0,2).map(({id:t,link:n,title:s,icon:o})=>e.jsxs(a,{...r,children:[e.jsx(a.IconThumb,{icon:o}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"More info"})})]},t))})})},b={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:m.slice(0,2).map(({id:t,link:n,title:s,date:o})=>e.jsxs(a,{...r,children:[e.jsx(a.Header,{title:s,date:o,datePrefix:"Modified on ",datePosition:"bottom"}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst. Nulla porta posuere est, aliquam mollis mi accumsan id. Morbi mauris ex, gravida eu sodales sed, tempor vel mauris."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t))})})},f={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:se.slice(0,2).map(({id:t,link:n,image:s,alt:o,firstName:i,lastName:c,jobTitle:u,email:p,phone:M})=>e.jsxs(a,{...r,isCenter:!0,children:[e.jsx(a.Figure,{isRound:!0,children:e.jsx("img",{src:s,alt:o,width:280,height:280})}),e.jsx(a.Header,{title:`${i} ${c}`}),e.jsx(a.Body,{children:e.jsx(a.PeopleMeta,{jobTitle:u,phone:M,children:e.jsx("a",{href:`mailto:${p}`,children:p})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"More info"})})]},t))})})},N={args:{},render:r=>e.jsx(d,{children:e.jsxs(l,{cols:"3",children:[m.slice(0,1).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Content,{children:e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cu-card-lights cu-card-lights--green"}),"Open today until 8:00 PM"]})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t)),m.slice(1,2).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Content,{children:e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cu-card-lights cu-card-lights--red"}),"Opens today at 8:00 AM"]})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t)),m.slice(1,2).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Content,{children:e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cu-card-lights cu-card-lights--red"}),"Closed until tomorrow"]})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t))]})})},F={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:oe.slice(0,2).map(({id:t,stat:n,desc:s})=>e.jsx(a,{...r,leftBorder:!0,noHover:!0,children:e.jsx(a.Stats,{stat:n,desc:s})},t))})})},y={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:ie.slice(0,2).map(({id:t,source:n,title:s})=>e.jsxs(a,{...r,noHover:!0,children:[e.jsx(a.Video,{source:n}),e.jsx(a.Header,{title:s})]},t))})})};var B,H,v;h.parameters={...h.parameters,docs:{...(B=h.parameters)==null?void 0:B.docs,source:{originalSource:`{
1+
import{j as e}from"./jsx-runtime-Cf8x2fCZ.js";import{C as l}from"./Column-Bhqy_FO7.js";import{M as d}from"./Main-BqxOGoMS.js";import{C as a}from"./Card-yEKir2Gu.js";import{N as m}from"./NewsData-CjZsRozh.js";import{E as te}from"./EventData-B4eRm20-.js";import{I as ne,P as se}from"./PeopleData-oav3_Z5q.js";import{S as oe,V as ie}from"./VideoData-Csafh9oY.js";import"./index-yBjzXJbu.js";import"./propClasses-CJUCiil5.js";import"./parse-CXxdJvFO.js";import"./format-BDD0as5c.js";import"./getDate-DcT4OotK.js";import"./isSameDay-C9OCNg_L.js";import"./Icon-C3UOjDQf.js";import"./index-OlNebYNa.js";import"./_commonjsHelpers-CqkleIqs.js";import"./iframe-B0ovu3AU.js";const He={title:"Components/Card",component:a,tags:["autodocs"],parameters:{controls:{sort:"requiredFirst"}}},h={render:r=>e.jsx(d,{maxWidth:"3xl",children:e.jsxs(a,{...r,children:[e.jsx(a.Header,{title:"How to Write for the Web"}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst. Nulla porta posuere est, aliquam mollis mi accumsan id. Morbi mauris ex, gravida eu sodales sed, tempor vel mauris."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:"https://carleton.ca/webservices",className:"cu-button cu-button--red cu-button--small",children:"More info"})})]})})},C={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:m.slice(0,2).map(({id:t,link:n,title:s,image:o,alt:i,date:c})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s,datePrefix:"Published on",date:c,readTime:"7"}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst. Nulla porta posuere est, aliquam mollis mi accumsan id. Morbi mauris ex, gravida eu sodales sed, tempor vel mauris."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t))})})},g={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:te.slice(0,2).map(({id:t,title:n,link:s,image:o,alt:i,startDate:c,endDate:u,on_campus:p,on_campus_building:M,on_campus_room_number:ae,event_address:re})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:400,height:175})}),e.jsx(a.DateThumb,{startDate:c,endDate:u}),e.jsx(a.Header,{title:n}),e.jsx(a.Body,{children:e.jsx(a.EventMeta,{startDateTime:c,endDateTime:u,onCampus:p,onCampusBuilding:M,onCampusRoomNumber:ae,eventAddress:re})}),e.jsx(a.Footer,{children:e.jsx("a",{href:s,className:"cu-button cu-button--red cu-button--small",children:"More info"})})]},t))})})},x={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:m.slice(0,2).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,noHover:!0,children:[e.jsx(a.ImageThumb,{children:e.jsx("img",{src:o,alt:i,width:"200",height:"133"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Get informed"})})]},t))})})},j={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:ne.slice(0,2).map(({id:t,link:n,title:s,icon:o})=>e.jsxs(a,{...r,children:[e.jsx(a.IconThumb,{icon:o}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"More info"})})]},t))})})},b={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:m.slice(0,2).map(({id:t,link:n,title:s,date:o})=>e.jsxs(a,{...r,children:[e.jsx(a.Header,{title:s,date:o,datePrefix:"Modified on ",datePosition:"bottom"}),e.jsx(a.Body,{children:e.jsx(a.Excerpt,{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra laoreet lobortis. In hac habitasse platea dictumst. Nulla porta posuere est, aliquam mollis mi accumsan id. Morbi mauris ex, gravida eu sodales sed, tempor vel mauris."})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t))})})},f={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:se.slice(0,2).map(({id:t,link:n,image:s,alt:o,firstName:i,lastName:c,jobTitle:u,email:p,phone:M})=>e.jsxs(a,{...r,isCenter:!0,children:[e.jsx(a.Figure,{isRound:!0,children:e.jsx("img",{src:s,alt:o,width:280,height:280})}),e.jsx(a.Header,{title:`${i} ${c}`}),e.jsx(a.Body,{children:e.jsx(a.PeopleMeta,{jobTitle:u,phone:M,children:e.jsx("a",{href:`mailto:${p}`,children:p})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"More info"})})]},t))})})},N={args:{},render:r=>e.jsx(d,{children:e.jsxs(l,{cols:"3",children:[m.slice(0,1).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Content,{children:e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cu-card-lights cu-card-lights--green"}),"Open today until 8:00 PM"]})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t)),m.slice(1,2).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Content,{children:e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cu-card-lights cu-card-lights--red"}),"Opens today at 8:00 AM"]})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t)),m.slice(1,2).map(({id:t,link:n,title:s,image:o,alt:i})=>e.jsxs(a,{...r,children:[e.jsx(a.Figure,{children:e.jsx("img",{src:o,alt:i,width:"400",height:"300"})}),e.jsx(a.Header,{title:s}),e.jsx(a.Body,{children:e.jsx(a.Content,{children:e.jsxs("p",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cu-card-lights cu-card-lights--red"}),"Closed until tomorrow"]})})}),e.jsx(a.Footer,{children:e.jsx("a",{href:n,className:"cu-button cu-button--red cu-button--small",children:"Read more"})})]},t))]})})},F={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:oe.slice(0,2).map(({id:t,stat:n,desc:s})=>e.jsx(a,{...r,leftBorder:!0,noHover:!0,children:e.jsx(a.Stats,{stat:n,desc:s})},t))})})},y={args:{},render:r=>e.jsx(d,{children:e.jsx(l,{cols:"2",children:ie.slice(0,2).map(({id:t,source:n,title:s})=>e.jsxs(a,{...r,noHover:!0,children:[e.jsx(a.Video,{source:n}),e.jsx(a.Header,{title:s})]},t))})})};var B,H,v;h.parameters={...h.parameters,docs:{...(B=h.parameters)==null?void 0:B.docs,source:{originalSource:`{
22
render: args => <Main maxWidth="3xl">
33
<Card {...args}>
44
<Card.Header title="How to Write for the Web" />
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)