Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions backend/prisma/seeds/pageContentSeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,93 @@ async function main() {
contentValue: 'Important alerts and updates',
contentType: 'text',
},
{
page: 'advocacy',
section: 'header',
contentKey: 'title',
contentValue: 'Advocacy',
contentType: 'text',
},
{
page: 'advocacy',
section: 'header',
contentKey: 'description',
contentValue:
'We champion policies that strengthen aging services, support family caregivers, and protect the rights and dignity of older Tennesseans.',
contentType: 'richtext',
},
{
page: 'advocacy',
section: 'header',
contentKey: 'image',
contentValue: '',
contentType: 'image',
},
{
page: 'advocacy',
section: 'focus',
contentKey: 'title',
contentValue: 'Our Advocacy Focus',
contentType: 'text',
},
{
page: 'advocacy',
section: 'focus',
contentKey: 'description',
contentValue:
'TCBA works with coalition partners and state leaders to advance policy priorities that expand access to home and community-based services, invest in the direct care workforce, and improve systems for older adults and people with disabilities.',
contentType: 'richtext',
},
{
page: 'advocacy',
section: 'focus',
contentKey: 'image',
contentValue: '',
contentType: 'image',
},
{
page: 'advocacy',
section: 'cards',
contentKey: 'policy_title',
contentValue: 'Policy Development',
contentType: 'text',
},
{
page: 'advocacy',
section: 'cards',
contentKey: 'coalition_title',
contentValue: 'Coalition Mobilization',
contentType: 'text',
},
{
page: 'advocacy',
section: 'cards',
contentKey: 'public_title',
contentValue: 'Public Awareness',
contentType: 'text',
},
{
page: 'advocacy',
section: 'cta',
contentKey: 'title',
contentValue: 'Join Our Advocacy Efforts',
contentType: 'text',
},
{
page: 'advocacy',
section: 'cta',
contentKey: 'description',
contentValue:
'Partner with TCBA to help shape policies and programs that improve the lives of older Tennesseans and their families.',
contentType: 'richtext',
},
{
page: 'advocacy',
section: 'cta',
contentKey: 'button_text',
contentValue: 'Get Involved',
contentType: 'text',
},
{
page: 'announcements',
section: 'hero',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/AdminSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const AdminSidebar = () => {
const pageEditItems = [
{ name: 'Home', path: '/admin/page-edit/home' },
{ name: 'About', path: '/admin/page-edit/about' },
{ name: 'Advocacy', path: '/admin/page-edit/advocacy' },
{ name: 'Announcements', path: '/admin/page-edit/announcements' },
{ name: 'Blogs', path: '/admin/page-edit/blogs' },
{ name: 'Get Involved', path: '/admin/page-edit/register' },
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ const Navbar = () => {
>
About Us
</Link>
<Link
to='/advocacy'
className={`relative text-[#3C3C3C] hover:text-[#88242C] transition-colors duration-200 before:absolute before:bottom-0 before:left-0 before:w-0 before:h-0.5 before:bg-[#88242C] before:transition-all before:duration-300 hover:before:w-full ${location.pathname === '/advocacy' ? 'font-bold' : 'font-medium'}`}
>
Advocacy
</Link>
<Link
to='/announcements'
className={`relative text-[#3C3C3C] hover:text-[#88242C] transition-colors duration-200 before:absolute before:bottom-0 before:left-0 before:w-0 before:h-0.5 before:bg-[#88242C] before:transition-all before:duration-300 hover:before:w-full ${location.pathname === '/announcements' ? 'font-bold' : 'font-medium'}`}
Expand Down Expand Up @@ -144,6 +150,14 @@ const Navbar = () => {
>
About Us
</Link>
<Link
to='/advocacy'
onClick={closeMobileMenu}
className={`block px-3 py-2 rounded-md text-base ${location.pathname === '/advocacy' ? 'font-bold text-[#88242C] bg-red-50' : 'font-medium text-[#3C3C3C] hover:text-[#88242C] hover:bg-gray-50'}`}
role='menuitem'
>
Advocacy
</Link>
<Link
to='/announcements'
onClick={closeMobileMenu}
Expand Down
Loading