vmi-virtual-memorial/vmi-wd-frontend / 1646df3

Browse files

heading retitle, document indicator

Authored by espadonne
SHA
1646df341b3b65ec3071efa148ca41ac9076b76b
Parents
21f6f88
Tree
8562daa

1 changed file

StatusFile+-
M app/memorial/person/[id]/page.tsx 15 3
app/memorial/person/[id]/page.tsxmodified
@@ -77,7 +77,7 @@ export default function PersonPage() {
7777
   return (
7878
     <div className="min-h-screen bg-vmi-cream">
7979
       <Header 
80
-        breadcrumbs={[
80
+        breadcrumbs={[ 
8181
           { label: 'Home', href: '/' },
8282
           { label: person.conflict_name, href: `/memorial/conflict/${person.conflict}` },
8383
           { label: person.display_name }
@@ -88,10 +88,22 @@ export default function PersonPage() {
8888
       <main className="max-w-6xl mx-auto px-4 py-12">
8989
         {/* Person Header */}
9090
         <div className="bg-vmi-light-gold border-2 border-vmi-gold rounded-lg p-8 mb-12 shadow-xl">
91
-          <h1 className="text-4xl font-black text-vmi-red mb-2">
91
+          <h1 className="text-4xl font-black text-vmi-red mb-2 flex items-center gap-2">
9292
             {person.full_display_name ? 
9393
               person.full_display_name.replace(person.rank + ' ', '').replace(person.rank + ', ', '') 
9494
               : person.display_name}
95
+            {person.pdf_key && (
96
+              <span title="Memorial document available" className="inline-block align-middle">
97
+                {/* Simple document icon SVG */}
98
+                <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#b91c1c" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="feather feather-file-text">
99
+                  <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
100
+                  <polyline points="14 2 14 8 20 8" />
101
+                  <line x1="16" y1="13" x2="8" y2="13" />
102
+                  <line x1="16" y1="17" x2="8" y2="17" />
103
+                  <line x1="10" y1="9" x2="9" y2="9" />
104
+                </svg>
105
+              </span>
106
+            )}
95107
           </h1>
96108
           
97109
           {/* Rank and Unit subtitle */}
@@ -143,7 +155,7 @@ export default function PersonPage() {
143155
         {/* PDF Viewer */}
144156
         <div className="bg-white border-2 border-gray-300 rounded-lg p-8 shadow-xl">
145157
           <h2 className="text-3xl font-bold mb-6 text-center text-vmi-red">
146
-            Memorial Document
158
+            Memorial Portrait
147159
           </h2>
148160
           
149161
           {person.pdf_key ? (