Skip to content

Commit 0ed447f

Browse files
committed
feat: enhance governance comparison and policy timeline with citations and improve rendering in research areas component
1 parent 438d1c1 commit 0ed447f

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

src/components/governance-comparison.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,13 @@ const ComparisonTable = () => {
8181
</div>
8282

8383
{/* Key Insight */}
84-
<div className="mt-8 p-4 bg-indigo-50 rounded-lg border border-indigo-100">
84+
<div className="mt-8 p-4 bg-indigo-50 rounded-lg border border-indigo-100 relative group">
8585
<p className="text-center text-indigo-900 font-medium">
8686
A 47.8% decrease in appeal success rate suggests a significant shift in content moderation approach <span className="citation-hover" data-citation="Reuters. &quot;Content Moderation Staff Reduction under Musk.&quot; Reuters, December 12, 2023, www.reuters.com/tech.">[5]</span>
8787
</p>
88+
<div className="opacity-0 group-hover:opacity-100 transition-opacity absolute -bottom-2 left-0 right-0 text-xs text-center text-slate-500 bg-white/90 py-1 rounded">
89+
Analysis based on <span className="citation-hover" data-citation="Klonick, Kate. &quot;The New Governors: The People, Rules, and Processes Governing Online Speech.&quot; Harvard Law Review, vol. 131, no. 6, 2018, pp. 1598–1670.">[1]</span> and <span className="citation-hover" data-citation="Wang, Rui, et al. &quot;Empowered or Constrained in Platform Governance? An Analysis of Twitter Users\' Responses to Elon Musk\'s Takeover.&quot; Social Media + Society, vol. 10, no. 2, 2024, pp. 1–14.">[3]</span>
90+
</div>
8891
</div>
8992
</div>
9093
</div>

src/components/policy-timeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const PolicyTimeline: React.FC = () => {
1515
date: "August 19, 2021",
1616
title: "Twitter Terms of Service",
1717
description: "The terms governing the Twitter platform prior to X's acquisition",
18-
impact: "Defined the rules and policies for Twitter users. <span class='citation-hover' data-citation='Twitter, Inc. <em>Twitter Terms of Service</em>. August 19, 2021, help.twitter.com/en/rules-and-policies/twitter-terms-of-service. Accessed December,6, 2024.'>See the full terms</span>"
18+
impact: "Defined the rules and policies for Twitter users. See the full terms at <a href='https://help.x.com/en/rules-and-policies' target='_blank' rel='noopener noreferrer' className='text-indigo-600 underline'>help.x.com/en/rules-and-policies</a>"
1919
},
2020
{
2121
date: "January 2023",

src/components/research-areas.tsx

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React, { useState } from 'react';
33
interface ResearchArea {
44
title: string;
55
questions: string[];
6+
citation?: string;
67
}
78

89
const ResearchAreas: React.FC = () => {
@@ -16,7 +17,8 @@ const ResearchAreas: React.FC = () => {
1617
"Comparative studies of algorithmic moderation",
1718
"Impact of 'freedom of speech, not freedom of reach' policies",
1819
"Methodologies for external algorithm auditing"
19-
]
20+
],
21+
citation: "Klonick, Kate. \"The New Governors: The People, Rules, and Processes Governing Online Speech.\" Harvard Law Review, vol. 131, no. 6, 2018, pp. 1598–1670."
2022
},
2123
{
2224
title: "User Behavior and Platform Migration",
@@ -25,7 +27,8 @@ const ResearchAreas: React.FC = () => {
2527
"Content creator adaptation strategies",
2628
"User migration patterns between platforms",
2729
"Impact on different user demographics"
28-
]
30+
],
31+
citation: "Burgess, Jean, and Nancy K. Baym. Twitter: A Biography. NYU Press, 2020."
2932
},
3033
{
3134
title: "Platform Economics and Content Moderation",
@@ -34,7 +37,8 @@ const ResearchAreas: React.FC = () => {
3437
"Subscription model effects on governance",
3538
"Economic impacts of reduced moderation",
3639
"Hidden costs comparison: algorithmic vs human"
37-
]
40+
],
41+
citation: "Gillespie, Tarleton. Custodians of the Internet: Platforms, Content Moderation, and the Hidden Decisions That Shape Social Media. Yale UP, 2018."
3842
},
3943
{
4044
title: "Democratic Discourse and Public Sphere",
@@ -43,7 +47,8 @@ const ResearchAreas: React.FC = () => {
4347
"Misinformation spread patterns analysis",
4448
"Impact on electoral discourse",
4549
"Role of crowd-sourced moderation"
46-
]
50+
],
51+
citation: "Douek, Evelyn. \"Governing Online Speech: From 'Posts-as-Trumps' to Proportionality and Probability.\" Columbia Law Review, vol. 121, no. 3, 2021, pp. 759–834."
4752
},
4853
{
4954
title: "Legal and Regulatory Implications",
@@ -52,7 +57,8 @@ const ResearchAreas: React.FC = () => {
5257
"Legal frameworks for platform accountability",
5358
"Platform ownership and media regulations",
5459
"Self-regulation vs government oversight"
55-
]
60+
],
61+
citation: "Balkin, Jack M. \"Old-School/New-School Speech Regulation.\" Harvard Law Review, vol. 127, no. 8, 2014, pp. 2296–2342."
5662
}
5763
];
5864

@@ -79,7 +85,7 @@ const ResearchAreas: React.FC = () => {
7985
))}
8086
</div>
8187

82-
<div className="bg-white rounded-xl shadow-lg p-8 transition-all duration-500">
88+
<div className="bg-white rounded-xl shadow-lg p-8 transition-all duration-500 relative group">
8389
<h3 className="text-2xl font-bold text-indigo-900 mb-6">
8490
{areas[activeArea].title}
8591
</h3>
@@ -99,6 +105,14 @@ const ResearchAreas: React.FC = () => {
99105
</div>
100106
))}
101107
</div>
108+
109+
{areas[activeArea].citation && (
110+
<div className="absolute -bottom-2 left-0 right-0 opacity-0 group-hover:opacity-100 transition-opacity">
111+
<div className="bg-white/90 text-xs text-slate-600 py-2 px-4 rounded-b-xl text-center border-t border-indigo-100">
112+
{areas[activeArea].citation}
113+
</div>
114+
</div>
115+
)}
102116
</div>
103117

104118
<div className="mt-8 bg-gradient-to-r from-indigo-50 to-blue-50 p-6 rounded-xl border border-indigo-100">

0 commit comments

Comments
 (0)