Skip to content

Commit

Permalink
Titles and subtitles of references
Browse files Browse the repository at this point in the history
  • Loading branch information
hejny committed Apr 8, 2024
1 parent ff8e3f2 commit 3c5c4db
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/Items/Item.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@
margin-top: -7px;
}

.item .subtitle {
/*/
outline: 1px dotted rgb(58, 58, 255);
/**/

z-index: 1;
order: 1;

grid-column: 1 / span 1;

font-size: 20px;
margin-top: -7px;
}

.item .floatingTitle {
/*/
outline: 1px dotted rgb(58, 58, 255);
Expand Down
8 changes: 8 additions & 0 deletions src/components/Items/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Item.Title = function Title({ children }: { children: ReactNode }) {
return <div className={styles.title}>{children}</div>;
};

/**
* <Title/> used in <Item/>
*/
Item.Subtitle = function Subtitle({ children }: { children: ReactNode }) {
// TODO: Probbably place here semantic <h3> tag
return <div className={styles.subtitle}>{children}</div>;
};

/**
* <FloatingTitle/> used in <Item/>
*/
Expand Down
5 changes: 5 additions & 0 deletions src/sections/40-References/References.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function ReferencesSection(props: ReferencesProps) {
Tomáš Studeník
</a>
</Item.Title>
<Item.Subtitle>!!!</Item.Subtitle>
<Item.Description>
<Translate locale="en">
<p>
Expand Down Expand Up @@ -113,6 +114,7 @@ export function ReferencesSection(props: ReferencesProps) {
Jan Šedo
</a>
</Item.Title>
<Item.Subtitle>!!!</Item.Subtitle>
<Item.Description>
<Translate locale="en">
<p>
Expand Down Expand Up @@ -165,6 +167,7 @@ export function ReferencesSection(props: ReferencesProps) {
Max Kozlov
</a>
</Item.Title>
<Item.Subtitle>!!!</Item.Subtitle>
<Item.Description>
<Translate locale="en">
<p>
Expand Down Expand Up @@ -228,6 +231,7 @@ export function ReferencesSection(props: ReferencesProps) {
Bob Kartous
</a>
</Item.Title>
<Item.Subtitle>!!!</Item.Subtitle>
<Item.Description>
<Translate locale="en">
<p>
Expand Down Expand Up @@ -271,6 +275,7 @@ export function ReferencesSection(props: ReferencesProps) {
Tereza Texlová
</a>
</Item.Title>
<Item.Subtitle>!!!</Item.Subtitle>
<Item.Description>
<Translate locale="en">
<p>
Expand Down

0 comments on commit 3c5c4db

Please sign in to comment.