-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squash and merge the following commits into develop: * fix: change Publications page assets * refactor: Publications * fix: categories and results
- Loading branch information
1 parent
7cbf2ec
commit 5c994d0
Showing
15 changed files
with
226 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/components/Publications/PublicationCardV2/PublicationCard.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import styled from 'styled-components' | ||
import styles from '@/styles/styles' | ||
|
||
export const Container = styled.div` | ||
width: 80%; | ||
min-height: 200px; | ||
height: fit-content; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 16px; | ||
border-radius: 24px; | ||
border: 2px solid ${styles.colors.secondary}; | ||
box-shadow: 10px 0 ${styles.colors.secondary}; | ||
background-color: white; | ||
@media (max-width: 768px) { | ||
width: 100%; | ||
border-left: 2px solid ${styles.colors.secondary}; | ||
height: fit-content; | ||
} | ||
` | ||
|
||
export const Wrapper = styled.div` | ||
width: 100%; | ||
` | ||
|
||
export const Date = styled.p` | ||
font-size: ${styles.fontSizes.sm}; | ||
font-weight: ${styles.fontWeights.thin}; | ||
` | ||
|
||
export const Title = styled.p` | ||
font-size: ${styles.fontSizes.lg}; | ||
font-weight: ${styles.fontWeights.bold}; | ||
` | ||
|
||
export const Authors = styled.p` | ||
font-size: ${styles.fontSizes.md}; | ||
margin-top: 20px; | ||
` | ||
|
||
export const AnchorText = styled.p` | ||
font-size: ${styles.fontSizes.xs}; | ||
text-align: right; | ||
color: ${styles.colors.primary}; | ||
` |
22 changes: 22 additions & 0 deletions
22
src/components/Publications/PublicationCardV2/PublicationCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react' | ||
|
||
import { PublicationCardDefaultProps as PublicationCardProps } from './interfaces' | ||
|
||
import * as S from './PublicationCard.styles' | ||
|
||
const PublicationCard = ({ publication, translate }: PublicationCardProps) => { | ||
return ( | ||
<S.Container> | ||
<S.Wrapper> | ||
<S.Date>{publication?.year}</S.Date> | ||
<S.Title>{publication?.title}</S.Title> | ||
<S.Authors>{publication?.description}</S.Authors> | ||
<a href={publication?.url} rel="noopener noreferrer" target="_blank"> | ||
<S.AnchorText>{translate?.url_label}</S.AnchorText> | ||
</a> | ||
</S.Wrapper> | ||
</S.Container> | ||
) | ||
} | ||
|
||
export default PublicationCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react' | ||
|
||
import { PublicationCardDefaultProps } from './interfaces' | ||
|
||
import Main from './PublicationCard' | ||
|
||
const PublicationCard = ({ | ||
publication, | ||
translate, | ||
}: PublicationCardDefaultProps) => { | ||
return <Main publication={publication} translate={translate} /> | ||
} | ||
|
||
export default PublicationCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface PublicationCardDefaultProps { | ||
translate: any | ||
publication: any | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.