Skip to content

Commit

Permalink
Revert to 7d24fb3
Browse files Browse the repository at this point in the history
  • Loading branch information
katamartin committed Oct 31, 2024
1 parent c7fb1b1 commit 6f5d911
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 3 deletions.
33 changes: 31 additions & 2 deletions articles/ab1305-initial-disclosures/components/database-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,23 @@ const ProjectCell = ({ start, width, children, href, sx }) => {

return (
<Column as='td' start={start} width={width} sx={sx}>
{children}
{href ? (
<Link
onClick={handleClick}
href={href}
sx={{
color: 'secondary',
textDecoration: 'none',
width: '100%',
height: '100%',
display: 'block',
}}
>
{children}
</Link>
) : (
children
)}
</Column>
)
}
Expand Down Expand Up @@ -189,7 +205,7 @@ const ProjectRow = ({
'&:hover': standardLink
? {
'td a': { color: 'primary' },
'td div div': { color: 'primary' },
'td a .badge div': { color: 'primary' },
'#suffix': { transform: 'rotate(45deg)', color: 'primary' },
}
: {},
Expand All @@ -202,6 +218,7 @@ const ProjectRow = ({
>
{project_id && link.url?.includes('offsets-db') ? (
<Badge
className='badge'
sx={{
color: COLORS[category] ?? COLORS.other,
transition: '0.2s all',
Expand All @@ -227,6 +244,18 @@ const ProjectRow = ({
href={standardLink ? link.url : undefined}
>
{name ?? <Empty />}
{customLink && (
<>
{' ('}
<Link
href={link.url}
sx={{ color: 'secondary', ':hover': { color: 'primary' } }}
>
provided link
</Link>
{')'}
</>
)}
</ProjectCell>
<ProjectCell
start={5}
Expand Down
22 changes: 21 additions & 1 deletion articles/ab1305-initial-disclosures/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,24 @@ components:
src: '@carbonplan/layouts'
---

Empty
# AB1305 Database

California’s AB1305 offset disclosure law will go into full effect in January 2025, but a handful of companies have already posted AB1305-compliant disclosures online. We tracked down 25 of these early disclosures and transcribed their data, which you can [download](https://carbonplan-ab1305-initial-disclosures.s3.us-west-2.amazonaws.com/ab1305-raw-data.csv) or explore below. Where possible, we provide links to additional offset project information either on [OffsetsDB](https://carbonplan.org/research/offsets-db) (colored project badges) or alternative websites.

<DatabaseTable />

<Endnote label='Citation'>

Please cite this data viewer as:

CarbonPlan (2024) “AB1305 Database” <span style={{overflowWrap: 'break-word'}}>[https://carbonplan.org/research/ab1305-initial-disclosures-database](https://carbonplan.org/research/ab1305-initial-disclosures-database)</span>

</Endnote>

<Endnote label='Terms'>

CarbonPlan received a grant from the Patrick J. McGovern Foundation to support this work.

The data viewer is made available under a [CC BY 4.0 International license](https://creativecommons.org/licenses/by/4.0/).

</Endnote>

0 comments on commit 6f5d911

Please sign in to comment.