Skip to content

Commit

Permalink
Merge pull request #234 from ontoportal-lirmm/feature/update-footer-d…
Browse files Browse the repository at this point in the history
…esign

Feature: Update footer design
  • Loading branch information
syphax-bouazzouni authored May 8, 2023
2 parents 12817eb + 71083c7 commit 33761ff
Show file tree
Hide file tree
Showing 14 changed files with 569 additions and 137 deletions.
3 changes: 3 additions & 0 deletions app/assets/images/logos/ontoportal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/images/social/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/images/social/people.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions app/assets/images/social/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 55 additions & 3 deletions app/assets/stylesheets/footer.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
.legal-text {
font-size: 0.9rem;
}
.footer-container{
display: flex;
justify-content: center;
background-color: var(--primary-color);
}
footer{
width: 1280px;
background-color: var(--primary-color);
padding: 40px 100px;
}

.footer-header{
display: flex;
justify-content: space-between;
margin-bottom: 40px;
}
.footer-logo{
color: white;
display: flex;
align-items: center;
}
.footer-logo p{
margin-bottom: 0;
font-weight: 700;
font-size: 18px;
margin-left: 20px;
}
.footer-social-media-links a{
margin-left: 20px;
}
.footer-nav-links{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.footer-nav-links div h2{
font-size: 21px;
font-weight: 700;
color: white;
margin-bottom: 10px;
}
.footer-nav-links div div{
display:flex;
flex-direction: column;
}
.footer-nav-links div a{
font-size: 16px;
font-weight: 400;
color: white !important;
margin-bottom: 10px;
opacity: 60%;
}
.footer-nav-links div a:hover{
opacity: 100%;
}
19 changes: 0 additions & 19 deletions app/assets/stylesheets/themes/lirmm/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,22 +241,3 @@ div.logos a {
}
}

/************************************
* FOOTER
************************************/
footer, .footer {
background-color: $color-secondary !important;
position: relative !important;
}

footer img {
height: 32px;
}

footer a.logo.connect img {
margin-right: 10px;
}

.legal-text {
font-size: 0.9rem;
}
2 changes: 1 addition & 1 deletion app/views/annotator/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%head
= javascript_include_tag "bp_annotator"

%div.container-fluid
%div.container-fluid.flex-grow-1
%div.row
%div.col
%h2.mt-3 Annotator
Expand Down
2 changes: 1 addition & 1 deletion app/views/annotatorplus/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%head
= javascript_include_tag "bp_annotatorplus"

%div.container-fluid
%div.container-fluid.flex-grow-1
%div.row
%div.col
%h2.mt-3 Annotator +
Expand Down
53 changes: 26 additions & 27 deletions app/views/layouts/_footer.html.haml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
</div>
</div>

%footer.footer.pt-4.mt-5
%div.container
%div.row
- $FOOTER_LINKS.to_h[:top].to_a.each do |footer_links_block|
%div.col-6.col-md
%h6= footer_links_block[:column_header]
%ul.list-unstyled
- footer_links_block[:links].each do |footer_links_row|
%li
- footer_links_row.each do |footer_link|
= render_footer_link footer_link
%div.row.legal-text
%div.col
= t('.grant_html', site: $SITE)
%div.row.pt-2
- $FOOTER_LINKS.to_h[:bottom].to_a.each do |footer_links_block|
%div.col-6.col-md
- if footer_links_block[:column_header].present?
%h6= footer_links_block[:column_header]
%ul.list-inline
- footer_links_block[:links].each do |footer_links_row|
- footer_links_row.each_with_index do |footer_link, i|
%li.list-inline-item
= render_footer_link footer_link
- unless i >= footer_links_row.size - 1
%li.list-inline-item
= raw(footer_links_block[:separator])
%br
%br/
.footer-container
%footer
.footer-header
.footer-logo
%img{:src => "#{asset_path("logos/ontoportal.svg")}"}
- logo = $UI_THEME.to_s.capitalize
- logo.sub! 'portal' , 'Portal'
%p
= logo
.footer-social-media-links
- $FOOTER_LINKS[:social].each do |link|
%a{:href => link[:link], :target => "_blank"}
%img{:src => "#{asset_path(link[:logo])}"}/
.footer-nav-links
- $FOOTER_LINKS[:sections].each do |key, section_links|
%div
%h2
= t("layout.footer."+key.to_s)
%div
- section_links.each do |section , link|
%a{:href => link, :target => "_blank"}
= t("layout.footer."+section.to_s)




= javascript_include_tag "application"
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
<body class="<%= controller_name %> <%= action_name %>">
<%=render partial: 'layouts/topnav'%>

<div class="container-fluid">
<div class="container-fluid flex-grow-1">
<%=render partial: 'layouts/notices'%>
2 changes: 1 addition & 1 deletion app/views/layouts/appliance.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
%body{:class => "#{controller_name} #{action_name}"}
= render partial: "layouts/topnav"

%div.container-fluid
%div.container-fluid.flex-grow-1
= render partial: "layouts/notices"
= render TurboModalComponent.new(id: 'application_modal')
= yield
Expand Down
2 changes: 1 addition & 1 deletion app/views/mappings/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- @title = "Mappings"
%div#mappings_container.container-fluid.py-4
%div#mappings_container.container-fluid.py-4.flex-grow-1
%h1.my-1 Mappings

%div#mappings_uploader.my-2
Expand Down
2 changes: 1 addition & 1 deletion app/views/ncbo_annotatorplus/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%head
= javascript_include_tag "bp_annotator"

%div.container-fluid.annotator
%div.container-fluid.annotator.flex-grow-1
%div.row
%div.col
%h2.mt-3 NCBO Annotator +
Expand Down
Loading

0 comments on commit 33761ff

Please sign in to comment.