diff --git a/go.mod b/go.mod
index f3214de..95f4589 100644
--- a/go.mod
+++ b/go.mod
@@ -7,7 +7,7 @@ replace github.com/OwO-Network/gdeeplx => github.com/gi-yt/gdeeplx v0.0.0-202308
//replace codeberg.org/aryak/libmozhi => /home/arya/projects/mozhi/libmozhi
require (
- codeberg.org/aryak/libmozhi v0.0.0-20240414131012-697ab3b7bb29
+ codeberg.org/aryak/libmozhi v0.0.0-20240522120450-090c25dcb721
github.com/gofiber/fiber/v2 v2.52.4
github.com/gofiber/swagger v1.0.0
github.com/gofiber/template v1.8.0
diff --git a/public/css/style.css b/public/css/style.css
index d47676a..c84bbc6 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -262,7 +262,7 @@ button:hover {
select,
.nice-select .nice-select-dropdown,
.nice-select,
- .nice-select-search{
+ .nice-select-search {
background-color: #fff;
color: #2f2f2f;
}
@@ -284,4 +284,68 @@ button:hover {
footer {
border-top: 1px solid #b2b2b2;
}
+
+ .def_type {
+ color: cyan;
+ text-transform: capitalize;
+ }
+
+ .syn {
+ color: burlywood;
+ }
+
+ .syn_type {
+ color: cyan;
+ }
+
+ .use_in_sentence {
+ color: yellow;
+ }
+}
+
+#definitions_and_translations {
+ display: grid;
+ margin: auto;
+ width: 1100px;
+ gap: 10px;
+ grid-template-areas: "definitions translations";
+}
+
+.def_type {
+ color: #007979;
+ text-transform: capitalize;
+}
+
+.syn {
+ color: #804700;
+}
+
+.syn_type {
+ color: #007979;
+}
+
+.use_in_sentence {
+ color: #009902;
+}
+
+.definitions li:not(:last-child) {
+ margin-bottom: 1rem;
+}
+
+@media screen and (max-width: 1200px) {
+ #definitions_and_translations {
+ display: grid;
+ width: 90vw;
+ grid-template-areas:
+ "translations translations"
+ "definitions definitions";
+ }
+}
+
+div.definitions {
+ grid-area: definitions;
+}
+
+div.translations {
+ grid-area: translations;
}
diff --git a/views/about.html b/views/about.html
index 02b9f1f..e362baf 100644
--- a/views/about.html
+++ b/views/about.html
@@ -1,4 +1,4 @@
-{{template "header" .}}
+{{ template "header" . }}
About Mozhi
What is Mozhi?
@@ -6,10 +6,7 @@
Mozhi is an alternative frontend for many translation engines such as
google, yandex, duckduckgo, libretranslate and more!
There are many reasons why using an alternative-frontend like mozhi is superior to directly accessing the service in question, and the biggest and @@ -23,4 +20,4 @@ the engines right in front of you is extremely useful.
-{{ template "footer" .}} +{{ template "footer" . }} diff --git a/views/index.html b/views/index.html index 0756c6c..303bf8d 100644 --- a/views/index.html +++ b/views/index.html @@ -140,6 +140,9 @@ {{ end }} + {{ if eq .Engine "yandex" }} + {{ template "yandex_extras" . }} + {{ end }}