generated from openedx/frontend-template-application
-
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.
PADV-903 feat: changes footer and header (#23)
* feat: changes footer and header
- Loading branch information
Showing
22 changed files
with
321 additions
and
395 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
// Color variables | ||
|
||
$primary: #007394; | ||
$primary-dark: #003057; | ||
$color-black: #020917; | ||
$hyperlink-color: #17897c; | ||
$black-80: #333; | ||
$color-white: #fefefe; | ||
$color-gray: #60646d; | ||
$gradient-gray: rgba(247, 249, 253, 0.1); | ||
$color-active-button: #989ba3; | ||
$bg-main-color: white; | ||
$gray-light: #dfe1e1; | ||
$gray-60: #808080; | ||
$gray-20: #dfe1e1; | ||
$color-pink: #ffecf0; | ||
$color-green: #e7f7eb; | ||
$color-yellow: #fafbe5; | ||
$color-purple: #f4e3ee; | ||
$black-80: #333; | ||
$blue-20: #e4faff; | ||
|
||
$hyperlink-color: #17897c; | ||
$color-active-button: #989ba3; | ||
$bg-main-color: #f3f3f3; |
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
@import "assets/colors.scss"; | ||
|
||
.page-content-container { | ||
border: 1px solid #dfe1e1; | ||
border-radius: 0.375rem; | ||
padding: 20px 0; | ||
box-shadow: 0px 3px 12px 0px rgba(0, 0, 0, 0.16); | ||
border: 1px solid $gray-20; | ||
border-radius: 0.375rem; | ||
padding: 20px 0; | ||
box-shadow: 0px 3px 12px 0px rgba(0, 0, 0, 0.16); | ||
background-color: $color-white; | ||
} | ||
|
||
.filter-container > div { | ||
border: 1px solid #dfe1e1; | ||
border-radius: 0.375rem; | ||
padding: 1rem; | ||
.filter-container .filters { | ||
border: 1px solid $gray-20; | ||
border-radius: 0.375rem; | ||
padding: 1.5rem 1rem; | ||
} | ||
|
||
.pagination-table .pagination { | ||
justify-content: flex-end; | ||
padding-right: 25px; | ||
justify-content: flex-end; | ||
padding-right: 25px; | ||
} | ||
|
||
.title-page { | ||
padding: 20px 0; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
import { getConfig } from '@edx/frontend-platform'; | ||
import React from 'react'; | ||
import { getConfig } from '@edx/frontend-platform'; | ||
import './index.scss'; | ||
|
||
export const Footer = () => { | ||
const privacyPolicyLink = () => `${getConfig().FOOTER_PRIVACY_POLICY_LINK}`; | ||
const termsOfServiceLink = () => `${getConfig().FOOTER_TERMS_OF_SERVICE_LINK}`; | ||
const currentYear = new Date().getFullYear(); | ||
|
||
return ( | ||
<footer> | ||
<ul className="footer-links"> | ||
<li> | ||
<a href={privacyPolicyLink()}> | ||
Privacy Policy | ||
<li className="footer-item"> | ||
<a href={termsOfServiceLink()}> | ||
Terms | ||
</a> | ||
</li> | ||
<li> | ||
<a href={termsOfServiceLink()}> | ||
Terms of Service | ||
<li className="footer-item"> | ||
<a href={privacyPolicyLink()}> | ||
Privacy | ||
</a> | ||
</li> | ||
</ul> | ||
<p className="footer-copyright">Copyright {currentYear} Pearson Education Inc. or its affiliate(s). All rights reserved.</p> | ||
</footer> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,34 +1,49 @@ | ||
@import "assets/colors.scss"; | ||
|
||
footer { | ||
padding: 46px 24px 136px; | ||
padding: 24px; | ||
display: block; | ||
background-color: $color-white; | ||
margin-top: 40px; | ||
|
||
ul.footer-links { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 24px; | ||
justify-content: center; | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
|
||
li { | ||
.footer-item { | ||
margin: 0; | ||
padding: 0; | ||
padding: 0 20px; | ||
color: $primary; | ||
|
||
&:not(:last-child) { | ||
border-right: 1px solid $gray-60; | ||
} | ||
|
||
a { | ||
color: $color-gray; | ||
color: $primary; | ||
font-size: 14px; | ||
line-height: 1.143; | ||
text-decoration: none; | ||
white-space: nowrap; | ||
|
||
&:hover { | ||
color: $color-black; | ||
text-decoration: underline; | ||
color: $primary-dark; | ||
} | ||
} | ||
|
||
.icon { | ||
margin-right: 5px; | ||
} | ||
} | ||
} | ||
|
||
.footer-copyright { | ||
text-align: center; | ||
font-size: 14px; | ||
color: $color-black; | ||
margin-top: 5px; | ||
} | ||
} |
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.