-
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.
add: some styling and tune for definitions
- Loading branch information
Showing
16 changed files
with
146 additions
and
48 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
2 changes: 1 addition & 1 deletion
2
src/app/components/main/daily-word-and-phrase/daily-word-and-phrase.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
4 changes: 2 additions & 2 deletions
4
src/app/components/main/daily-word-and-phrase/daily-word-and-phrase.component.scss
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
76 changes: 45 additions & 31 deletions
76
src/app/components/main/definition/definition.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,35 +1,49 @@ | ||
<!-- <ngx-spinner type="ball-8bits" color="371B58" name="mySpinner"></ngx-spinner> --> | ||
<ngx-spinner type="ball-scale-multiple" name="scale"> | ||
</ngx-spinner> | ||
<ng-container *ngIf="word$ | async as word"> | ||
<div class="container definition" *ngFor="let word of (word$|async); let wordIndex = index"> | ||
<h1> | ||
{{word.madde}} | ||
</h1> | ||
<p> | ||
<i *ngIf="word.cogul_mu === '1'"> | ||
Çokluk, | ||
</i> | ||
<span *ngIf="word.telaffuz"> | ||
({{word.telaffuz}}), | ||
</span> | ||
<span> | ||
{{word.lisan}} | ||
</span> | ||
</p> | ||
<ng-container *ngFor="let anlam of anlamList[wordIndex]; let i = index"> | ||
<p> | ||
{{anlam}} | ||
<i *ngIf="word.ozel_mi === '1'"> | ||
özel | ||
</i> | ||
</p> | ||
<p>{{ word.anlamlarListe[i].anlam }}</p> | ||
<ng-container *ngIf="word.anlamlarListe[i].orneklerListe"> | ||
<q> | ||
{{word.anlamlarListe[i].orneklerListe[0].ornek}} | ||
</q> | ||
<span *ngFor="let yazar of word.anlamlarListe[i].orneklerListe[0].yazar"> | ||
- {{yazar.tam_adi}} | ||
</span> | ||
<div [@sliding]="word ? 'void' : 'sliding-in'" class="container definition"> | ||
<div *ngFor="let word of (word$|async); let wordIndex = index"> | ||
<div> | ||
<h1 class="definition__title"> | ||
{{word.madde }} | ||
</h1> | ||
<p> | ||
<i *ngIf="word.cogul_mu === '1'"> | ||
Çokluk, | ||
</i> | ||
<i *ngIf="word.telaffuz"> | ||
({{word.telaffuz}}), | ||
</i> | ||
<i> | ||
{{word.lisan}} | ||
</i> | ||
</p> | ||
</div> | ||
<ng-container *ngFor="let anlam of anlamList[wordIndex]; let i = index"> | ||
<div class="definition__meaning"> | ||
<ng-container *ngIf="word.anlamlarListe[i]"> | ||
<span> | ||
{{i+1}}. | ||
<i>{{anlam}}</i> | ||
<i *ngIf="word.ozel_mi === '1'"> | ||
<span>, özel</span> | ||
</i> | ||
{{ word.anlamlarListe[i].anlam }} | ||
</span> | ||
<ng-container *ngIf="word.anlamlarListe[i].orneklerListe"> | ||
<div class="definition__example"> | ||
<q> | ||
{{word.anlamlarListe[i].orneklerListe[0].ornek}} | ||
</q> | ||
<span *ngFor="let yazar of word.anlamlarListe[i].orneklerListe[0].yazar"> | ||
- {{yazar.tam_adi}} | ||
</span> | ||
</div> | ||
</ng-container> | ||
</ng-container> | ||
</div> | ||
</ng-container> | ||
</ng-container> | ||
</div> | ||
</div> | ||
</ng-container> |
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,32 @@ | ||
.definition { | ||
background-color: var(--secondary-bg-color); | ||
padding: clamp(0rem, 2vw, 2rem); | ||
box-shadow: 0px 0px 10px var(--secondary-bg-color); | ||
font-size: clamp(1rem, 5vw, 2rem); | ||
transition: background-color .5s; | ||
|
||
&__title { | ||
padding: 0; | ||
margin: 0; | ||
text-align: center; | ||
} | ||
|
||
&__meaning { | ||
>* { | ||
margin: 1rem 0 1rem 0; | ||
} | ||
|
||
padding: 1rem; | ||
|
||
// &:not(:last-child) { | ||
// border-bottom: 1px solid var(--main-bg-color); | ||
// } | ||
|
||
border-bottom: 2px solid var(--main-bg-color); | ||
} | ||
|
||
&__example { | ||
font-size: clamp(1rem, 5vw, 1.5rem); | ||
text-align: center; | ||
} | ||
} |
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
1 change: 0 additions & 1 deletion
1
src/app/components/main/search-input/search-input.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
1 change: 1 addition & 0 deletions
1
src/app/components/main/search-input/search-input.component.scss
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,5 @@ | ||
.search { | ||
z-index: 0; | ||
margin-top: 4rem; | ||
|
||
&__label { | ||
|
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