-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bp 7 build before and after component (#12)
* Added design for the homepage. * Added Before and After photos and text. * Styled the before and after component. * Style before and after, add pathing and pictures out of public/ * Changed spacing in Before and After Component. * Addressed Feedback, including style changes and font changes. Co-authored-by: Minh Lu <[email protected]>
- Loading branch information
Showing
18 changed files
with
132 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
SASS_PATH=src/ | ||
SASS_PATH=src/ | ||
NODE_PATH=src/ |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,28 @@ | ||
import React from 'react'; | ||
import cn from './BeforeAndAfter.module.scss'; | ||
import teethBefore from 'assets/before_and_after/teeth-before.png'; | ||
import teethAfter from 'assets/before_and_after/teeth-after.png'; | ||
|
||
const BeforeAndAfter = () => { | ||
return ( | ||
<> | ||
<div className={cn.BeforeAndAfter}> | ||
|
||
<div className={cn.Images}> | ||
<img src={teethBefore}></img> | ||
<img src={teethAfter}></img> | ||
</div> | ||
|
||
<div className={cn.Text}> | ||
<span className={cn.Header}>Creating Smiles with a Gentle touch.</span> | ||
<span className={cn.Captions}> | ||
<a href="#">Click here</a> to view our full smile gallery. | ||
</span> | ||
</div> | ||
|
||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default BeforeAndAfter; |
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,45 @@ | ||
@import 'global.scss'; | ||
|
||
.BeforeAndAfter { | ||
display: flex; | ||
justify-content: center; | ||
background-color: $teriary-background-color; | ||
min-height: 160px; | ||
color: $primary-text; | ||
} | ||
|
||
.Images { | ||
align-items: center; | ||
display: flex; | ||
justify-content: flex-end; | ||
} | ||
|
||
.Images :nth-child(2) { | ||
margin-left: 6%; | ||
} | ||
|
||
.Text { | ||
margin-left: 2%; | ||
display: inline-flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.Header { | ||
font-family: PlayfairDisplay-Bold; | ||
font-size: 30px; | ||
margin-bottom: 0px; | ||
} | ||
|
||
.Captions { | ||
font-family: PlayfairDisplay-Regular; | ||
font-size: 27px; | ||
color: $primary-text; | ||
margin-top: 0; | ||
display: inline-block; | ||
} | ||
|
||
.Captions a { | ||
color: $primary-text; | ||
} |
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,4 +1,4 @@ | ||
@import 'scss/global.scss'; | ||
@import 'global.scss'; | ||
|
||
.TabUnderline { | ||
background-color: transparent !important; | ||
|
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,47 @@ | ||
// Background colors | ||
$primary-background-color: #304774 !important; | ||
$secondary-background-color: #E4EAF1 !important; | ||
$teriary-background-color: #73305B !important; | ||
|
||
// Texts | ||
$primary-text: white !important; | ||
|
||
body { | ||
margin: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', | ||
monospace; | ||
} | ||
|
||
@font-face { | ||
font-family: 'OpenSans-Regular'; | ||
src: local('OpenSans-Regular'), url(./assets/fonts/OpenSans-Regular.ttf) format('truetype'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'PlayfairDisplay-Bold'; | ||
src: local('PlayfairDisplay-Bold'), url(./assets/fonts/PlayfairDisplay-Bold.ttf) format('truetype'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'PlayfairDisplay-Regular'; | ||
src: local('PlayfairDisplay-Regular'), url(./assets/fonts/PlayfairDisplay-Regular.ttf) format('truetype'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Raleway-Bold'; | ||
src: local('Raleway-Bold'), url(./assets/fonts/Raleway-Bold.ttf) format('truetype'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Raleway-Regular'; | ||
src: local('Raleway-Regular'), url(./assets/fonts/Raleway-Regular.ttf) format('truetype'); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.