-
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: pronunciation renderin for words and its styling
- Loading branch information
Showing
19 changed files
with
623 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,247 @@ | ||
.switch, | ||
.search .search__input, | ||
.search .search__button { | ||
transition: background-color 0.5s ease-out; | ||
} | ||
|
||
.nav { | ||
transition: box-shadow 0.5s ease-out, background-color 0.5s ease-out; | ||
} | ||
|
||
.definition { | ||
transition: background-color 0.5s ease-out, color 0.5s ease-out; | ||
} | ||
.definition__title { | ||
transition: border 0.5s ease-out; | ||
} | ||
.definition__meaning { | ||
transition: border-color 0.5s ease-out; | ||
} | ||
|
||
.card { | ||
transition: background-color 0.5s ease-out; | ||
} | ||
.card__title { | ||
transition: border 0.5s ease-out, color 0.5s ease-out; | ||
} | ||
|
||
.slider::after { | ||
transition: transform 0.5s ease-out; | ||
} | ||
|
||
.search__input__validation-message { | ||
transition: opacity 0.25s ease-out; | ||
} | ||
|
||
.nav__dropdown { | ||
transition: background-color 0.5s ease-out; | ||
} | ||
|
||
.nav__dropdown__list { | ||
transition: background-color 0.5s ease-out; | ||
} | ||
.nav__dropdown__list__item { | ||
transition: color 0.5s ease-out; | ||
} | ||
|
||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Regular.ttf") format("truetype"); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Bold.ttf") format("truetype"); | ||
font-weight: 700; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Italic.ttf") format("truetype"); | ||
font-weight: 400; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-BoldItalic.ttf") format("truetype"); | ||
font-weight: 700; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Light.ttf") format("truetype"); | ||
font-weight: 300; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-LightItalic.ttf") format("truetype"); | ||
font-weight: 300; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Medium.ttf") format("truetype"); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-MediumItalic.ttf") format("truetype"); | ||
font-weight: 500; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Black.ttf") format("truetype"); | ||
font-weight: 900; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-BlackItalic.ttf") format("truetype"); | ||
font-weight: 900; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-Thin.ttf") format("truetype"); | ||
font-weight: 100; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto; | ||
src: url("../../assets/fonts/Roboto/Roboto-ThinItalic.ttf") format("truetype"); | ||
font-weight: 100; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-Medium.ttf") format("truetype"); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-MediumItalic.ttf") format("truetype"); | ||
font-weight: 500; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-Regular.ttf") format("truetype"); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-Bold.ttf") format("truetype"); | ||
font-weight: 700; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-BoldItalic.ttf") format("truetype"); | ||
font-weight: 700; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-Italic.ttf") format("truetype"); | ||
font-weight: 400; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-Light.ttf") format("truetype"); | ||
font-weight: 300; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Roboto Mono; | ||
src: url("../../assets/fonts/Roboto_Mono/static/RobotoMono-LightItalic.ttf") format("truetype"); | ||
font-weight: 300; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Inconsolata; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local(Inter), url(../../assets/fonts/Inconsolata/Inconsolata-Regular.ttf) format("truetype"); | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: Inconsolata; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: local(Inter), url(../../assets/fonts/Inconsolata/Inconsolata-Bold.ttf) format("truetype"); | ||
font-display: swap; | ||
} | ||
/* You can add global styles to this file, and also import other style files */ | ||
*, | ||
*::after, | ||
*::before { | ||
box-sizing: border-box; | ||
} | ||
|
||
:root { | ||
--main-bg-color: rgba(238, 238, 238, 97%); | ||
--main-color: #0f0f0f; | ||
--grey: #393E46; | ||
--color-scheme: light; | ||
--secondary-bg-color: #f5f5f5; | ||
--primary-purple: #a545ef; | ||
--font-family: sans-serif; | ||
--primary-shadow-color: var(--grey); | ||
--card-shadow: none; | ||
--navbar-shadow: 0px 1px 5px 0px var(--primary-shadow-color); | ||
--navbar-bg: var(--main-bg-color); | ||
--radius-size: 10px; | ||
} | ||
|
||
.dark-mode { | ||
--main-bg-color: #0f0f0f; | ||
--main-color: rgba(238, 238, 238, 87%); | ||
--secondary-bg-color: #1f1f1f; | ||
--color-scheme: dark; | ||
--primary-shadow-color: var(--secondary-bg-color); | ||
--card-shadow: none; | ||
--navbar-shadow: 0px 1px 1px 0px var(--primary-shadow-color); | ||
--navbar-bg: var(--main-bg-color); | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: var(--main-bg-color); | ||
color: var(--main-color); | ||
color-scheme: var(--color-scheme); | ||
transition: background-color 0.5s ease-out, color 0.5s ease-out; | ||
font-family: var(--font-family); | ||
} | ||
|
||
.container { | ||
width: min(1200px, 90%); | ||
margin-inline: auto; | ||
}/*# sourceMappingURL=styles.css.map */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
src/app/components/main/css/daily-word-and-phrase.component.css
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,43 @@ | ||
.daily-word-and-phrase { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
gap: 4rem; | ||
justify-content: space-around; | ||
margin-top: 4rem; | ||
margin-bottom: 4rem; | ||
font-size: clamp(1.25rem, 5vw, 1.75rem); | ||
} | ||
|
||
.card { | ||
border-radius: var(--radius-size); | ||
text-align: center; | ||
box-shadow: var(--card-shadow); | ||
padding: 2rem 1rem; | ||
background-color: var(--secondary-bg-color); | ||
} | ||
.card__title { | ||
margin: 0; | ||
padding-bottom: 10px; | ||
font-weight: 700; | ||
background: -webkit-linear-gradient(45deg, var(--primary-purple) 10%, var(--main-color) 90%); | ||
-webkit-background-clip: text; | ||
background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
border-bottom: 2px solid var(--main-bg-color); | ||
} | ||
.card__definition { | ||
font-size: clamp(1.25rem, 5vw, 1.5rem); | ||
} | ||
.card__word a { | ||
transition: color 0.5s ease-out; | ||
color: var(--main-color); | ||
} | ||
.card__word a:hover { | ||
color: var(--primary-purple); | ||
} | ||
|
||
@media (min-width: 780px) { | ||
.daily-word-and-phrase { | ||
grid-template-columns: repeat(2, minmax(300px, 600px)); | ||
} | ||
}/*# sourceMappingURL=daily-word-and-phrase.component.css.map */ |
1 change: 1 addition & 0 deletions
1
src/app/components/main/css/daily-word-and-phrase.component.css.map
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.definition { | ||
padding-inline: clamp(0.25rem, 2vw, 1rem); | ||
padding-block: clamp(1rem, 2vw, 4rem); | ||
box-shadow: var(--card-shadow); | ||
background-color: var(--secondary-bg-color); | ||
font-size: clamp(1rem, 5vw, 1.75rem); | ||
border-radius: var(--radius-size); | ||
color: var(--main-color); | ||
} | ||
.definition__title, .definition__example, .definition--error { | ||
text-align: center; | ||
} | ||
.definition__item:not(:first-child) { | ||
border-top: 2px solid var(--main-bg-color); | ||
} | ||
.definition__title { | ||
margin: 0; | ||
padding-bottom: 0.5rem; | ||
} | ||
.definition__types { | ||
padding: 0rem 1rem; | ||
margin: 0; | ||
display: flex; | ||
align-items: center; | ||
} | ||
.definition__play-button--wrapper { | ||
position: relative; | ||
margin-left: auto; | ||
border-radius: 100%; | ||
aspect-ratio: 1; | ||
background-color: var(--primary-purple); | ||
} | ||
.definition__play-button { | ||
position: absolute; | ||
border-style: solid; | ||
border-width: 12px 12px 12px 24px; | ||
cursor: pointer; | ||
background-color: transparent; | ||
width: 0; | ||
height: 0; | ||
border-color: transparent transparent transparent yellow; | ||
} | ||
.definition__meaning { | ||
margin-block: 2rem; | ||
} | ||
.definition__example { | ||
font-size: clamp(0.5rem, 4vw, 1.5rem); | ||
margin: 0.25rem 1rem 1rem 1rem; | ||
}/*# sourceMappingURL=definition.component.css.map */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.