mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 23:32:19 +10:00
@@ -78,9 +78,9 @@ function sectionHeading(title: string, colorHex: string): Paragraph {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function titleAndSubtitle(primary: string, secondary: string, rightText?: string): Paragraph {
|
function titleAndSubtitle(primary: string, secondary: string, rightText?: string, bold = true): Paragraph {
|
||||||
const baseRun = getBaseRun();
|
const baseRun = getBaseRun();
|
||||||
const children: (TextRun | ExternalHyperlink)[] = [new TextRun({ text: primary, bold: true, ...baseRun })];
|
const children: (TextRun | ExternalHyperlink)[] = [new TextRun({ text: primary, bold, ...baseRun })];
|
||||||
|
|
||||||
if (secondary) {
|
if (secondary) {
|
||||||
children.push(new TextRun({ text: ` — ${secondary}`, ...baseRun }));
|
children.push(new TextRun({ text: ` — ${secondary}`, ...baseRun }));
|
||||||
@@ -321,7 +321,7 @@ function renderAwards(section: Sections["awards"], colorHex: string): Paragraph[
|
|||||||
const paragraphs: Paragraph[] = [sectionHeading(section.title, colorHex)];
|
const paragraphs: Paragraph[] = [sectionHeading(section.title, colorHex)];
|
||||||
|
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
paragraphs.push(titleAndSubtitle(item.title, item.awarder, item.date));
|
paragraphs.push(titleAndSubtitle(item.title, item.awarder, item.date, false));
|
||||||
|
|
||||||
if (item.description) {
|
if (item.description) {
|
||||||
paragraphs.push(...htmlToParagraphs(item.description, getHtmlStyle()));
|
paragraphs.push(...htmlToParagraphs(item.description, getHtmlStyle()));
|
||||||
|
|||||||
@@ -749,7 +749,7 @@ const AwardsSection = ({ sectionId = "awards", sectionData }: ItemSectionProps<A
|
|||||||
<SectionItem key={item.id}>
|
<SectionItem key={item.id}>
|
||||||
<SectionItemHeader>
|
<SectionItemHeader>
|
||||||
<View style={composeStyles(splitRowStyle, awardTitleDateRowStyle)}>
|
<View style={composeStyles(splitRowStyle, awardTitleDateRowStyle)}>
|
||||||
<ItemTitle website={item.website}>{item.title}</ItemTitle>
|
<ItemTitle website={item.website} bold={false}>{item.title}</ItemTitle>
|
||||||
<Text style={composeStyles(alignEndStyle)}>{item.date}</Text>
|
<Text style={composeStyles(alignEndStyle)}>{item.date}</Text>
|
||||||
</View>
|
</View>
|
||||||
<Text>{item.awarder}</Text>
|
<Text>{item.awarder}</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user