Skip to content

Commit

Permalink
Ultimos cambios de maquetación página publicaciones, responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
clara7227 committed May 16, 2024
1 parent e4fa165 commit e6cf4c3
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 34 deletions.
11 changes: 5 additions & 6 deletions app/research/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export default function Research() {
changeSearch={(search) => setState({ ...state, search: search })}
changeYear={(year) => setState({ ...state, year: year })}
changeType={(type) => setState({ ...state, type: type })}

//número de resultados de búsqueda
results={
papersFiltered instanceof Array ? papersFiltered.length : 0
Expand All @@ -111,13 +110,13 @@ export default function Research() {
<div className="paper_title">
<h4>{title}</h4>
</div>
<div

className="paper_subtitle"
>{author}. {journal}</div>
<div className="paper_subtitle">
{author}. {journal}
</div>
</div>
</div>
<div className="links">
<div className="links text-nowrap">

<a rel="noopener noreferrer" target="_blank" href={doi}>
{" "}
<p>Read publication </p>
Expand Down
10 changes: 10 additions & 0 deletions app/sass/lib/_mixins.sass
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,13 @@
border: 1px solid $ca-blue-700
border-radius: 24px
padding: 0.5rem 1.2rem 0.7rem 1.4rem
transition: 200ms ease-in-out
&:hover
color: white
transition: 200ms ease-in-out
background-color: $ca-blue-600
&:active
color: white
transition: 200ms ease-in-out
background-color: $ca-blue-600

76 changes: 49 additions & 27 deletions app/sass/partials/_publications.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import "../lib/_variables.sass"



@media (min-width: 150px)

.research
Expand Down Expand Up @@ -42,22 +41,23 @@
display: flex
flex-wrap: wrap
padding-bottom: $spacing_sm
border-bottom: solid 1px $ca-blue-100
border-bottom: solid 1px $ca-blue-200
justify-content: left
.filter
font-size: 1.1rem
margin: 0 0.8rem 0.8rem 0
width: 100%
label
display: flex
width: 100%
padding-right: 12px
margin-bottom: 0.4rem

width: 100%
select,
input
padding: 5px
margin-right: 0.3rem
width: 200px
width: 100%
height: 32px
option
background-color: white
Expand All @@ -73,21 +73,24 @@
.filter:last-child
background-color: red
label
width: 100px
width: 100px
#filter_year
width: auto
.papers
display: flex
flex-direction: column
padding-left: 0px
.paper
margin: $spacing_sm 0
padding: $spacing_sm 0
display: flex
flex-direction: column
border-bottom: $ca-blue-600
border-bottom: $ca-blue-200 1px solid

.paper_main
display: flex
flex-direction: column
justify-content: space-between
gap: $spacing_sm
gap: $spacing_xsm
.paper_date
display: flex
h5
Expand All @@ -105,7 +108,8 @@

.paper_subtitle
//padding-bottom: $spacing_md
@apply text-gray-900
margin-bottom: $spacing_xsm
.paper_doi
font-weight: 600

Expand All @@ -115,23 +119,26 @@
//gap: $spacing_xsm
align-content: center
justify-content: left
margin-top: 0.6rem

a
@include big-border-button-blue
display: flex
align-content: center
margin-top: $spacing_sm
//margin-top: $spacing_sm
p
font-weight: 600
svg
align-self: center
margin-left: 0.6rem
@media (min-width: 600px)
@media (min-width: 640px)
.research
.filters
text-align: right
display: flex
flex-wrap: wrap
gap: 4px
padding-bottom: $spacing_sm
border-bottom: solid 1px $ca-blue-100
justify-content: space-between
Expand All @@ -142,37 +149,38 @@
font-size: 1.3rem
margin: 0
height: 42px
width: auto
label
display: inline-block
width: 100px
padding-right: 12px
input
width: 200px
.research_results
font-size: 1.3rem
.papers
display: flex
flex-direction: column
gap: $spacing_md
padding-left: $spacing_xl
padding-right: $spacing_xl

.paper
margin-top: $spacing_lg
gap: $spacing_xsm
display: flex
flex-direction: column
padding-left: $spacing_xl
padding-right: $spacing_xl
padding: $spacing_xsm 0 $spacing_sm 0
.paper
padding: 6px 0 $spacing_sm 0



.paper_main
display: flex
flex-direction: row
justify-content: space-between
justify-content: left
gap: $spacing_md
.paper_date
h5
@include border-tag

.paper_content
//gap: $spacing_md
//flex-grow: 1
width:100%


.paper_title
Expand All @@ -185,13 +193,27 @@
font-weight: 600

.links
a

display: flex
flex-direction: row
//gap: $spacing_xsm
align-content: center
justify-content: right

align-content: flex-end
justify-content: flex-end
flex-wrap: wrap
margin: 0
p
font-weight: 600
text-decoration: underline
margin: 0
a
display: flex

@media (min-width: 900px)
.filters
.filter
label
width: auto !important
.papers
.paper
.paper_main
.paper_content
width:70%
2 changes: 1 addition & 1 deletion components/ResearchFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Filters (props) {
<option key={"conference"} value={"paper-conference"}>Conference proceedings</option>
</select>
</div>
<div className="filter">
<div className="filter" id="filter_year">
<label htmlFor="year">Year</label>
<select id="year" name="year" onChange={(e)=>props.changeYear(e.target.value === "all" ? undefined: e.target.value)}>
<option key={"all"} value={"all"}>All</option>
Expand Down

0 comments on commit e6cf4c3

Please sign in to comment.