-
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.
- Loading branch information
1 parent
b6fec9c
commit 620e39c
Showing
12 changed files
with
157 additions
and
30 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.
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,4 +1,3 @@ | ||
<div class=""> | ||
<periodic-table /> | ||
<router-outlet /> | ||
</div> |
14 changes: 13 additions & 1 deletion
14
src/app/elements/components/element-detail/element-detail.component.html
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,13 @@ | ||
<p>element works!</p> | ||
|
||
|
||
<div class="element-details"> | ||
<h1 class="element-title">{{elementDetails.element}}</h1> | ||
<div class="back-button" (click)="goBack()"><img src="icons/back-arrow.svg" alt="Back"/></div> | ||
<div class="element-info"> | ||
<div class="element-card {{elementDetails.type !== null ? elementDetails.type.toLocaleLowerCase().replace(' ', '-') : ''}}"> | ||
<p>{{elementDetails.atomicNumber}}</p> | ||
<h2>{{elementDetails.symbol}}</h2> | ||
</div> | ||
<p>{{elementDetails.facts}}</p> | ||
</div> | ||
</div> |
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,30 @@ | ||
.element-title { | ||
text-align: center; | ||
} | ||
|
||
.back-button { | ||
cursor: pointer; | ||
position: absolute; | ||
top: 24px; | ||
right: 24px; | ||
text-align: right; | ||
width: 24px; | ||
} | ||
|
||
.element-info { | ||
.element-card { | ||
border-radius: 8px; | ||
width: 10vw; | ||
height: 10vw; | ||
|
||
h2 { | ||
font-size: 64px; | ||
font-weight: 400; | ||
text-align: center; | ||
margin: 0px; | ||
} | ||
} | ||
|
||
margin: auto; | ||
width: 60vw; | ||
} |
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