From ed5e3bae37cec33be62516cd0dd557384d1f3317 Mon Sep 17 00:00:00 2001 From: trwnh Date: Fri, 2 Oct 2020 16:07:58 -0500 Subject: [PATCH] update --- assets/scss/main.scss | 32 +++++++++++-------- config.toml | 2 -- content/{ar/_index.md => _index.ar.md} | 2 +- content/{en/_index.md => _index.en.md} | 0 .../{ar/about/index.md => about/index.ar.md} | 0 content/{en => }/about/index.md | 0 content/ar/media/_index.md | 4 --- content/en/media/_index.md | 4 --- content/media/_index.ar.md | 4 +++ content/media/_index.en.md | 4 +++ .../media/disability-in-jordan/index.md | 0 content/{en => }/media/haiti/index.md | 0 content/{en => }/media/monitoring/index.md | 0 .../media/self-determination/index.md | 0 layouts/_default/list.html | 19 +++++++---- layouts/index.html | 2 +- 16 files changed, 41 insertions(+), 32 deletions(-) rename content/{ar/_index.md => _index.ar.md} (88%) rename content/{en/_index.md => _index.en.md} (100%) rename content/{ar/about/index.md => about/index.ar.md} (100%) rename content/{en => }/about/index.md (100%) delete mode 100644 content/ar/media/_index.md delete mode 100644 content/en/media/_index.md create mode 100644 content/media/_index.ar.md create mode 100644 content/media/_index.en.md rename content/{en => }/media/disability-in-jordan/index.md (100%) rename content/{en => }/media/haiti/index.md (100%) rename content/{en => }/media/monitoring/index.md (100%) rename content/{en => }/media/self-determination/index.md (100%) diff --git a/assets/scss/main.scss b/assets/scss/main.scss index aafc462..d70f4ca 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -47,7 +47,6 @@ table { /* begin custom css */ html { - --accent-color: #00a3ff; scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif } @@ -71,16 +70,14 @@ main {flex-grow: 1} /* single */ .page-header { - background: black; - color: white; - padding: 10em 0; + max-height: calc(100vh - 44px); } .page-title { - font-size: 3em; + font-size: 2em; + @media (min-width: 62em) {font-size: 3em;} font-weight: 700; line-height: 1.2; - text-align: center; } .page { h2 { @@ -98,7 +95,7 @@ main {flex-grow: 1} transition-property: text-decoration-thickness color; } a:hover { - color: var(--accent-color); + color: #00a3ff; text-decoration-thickness: 6px; } ul { @@ -121,6 +118,14 @@ main {flex-grow: 1} } } +/* list */ +.list {} +.list-item {padding: 1em; background: #eee; margin-bottom: 1em; transition: 0.4s opacity ease-in-out; + &:hover {opacity: 0.4;} +} +.list-item__title {font-weight: 700;} +.list-item__date {} +.list-item__link {text-decoration: none; color: inherit;} /* sections */ .section-header { @@ -141,7 +146,7 @@ main {flex-grow: 1} &:last-child {margin-bottom: 0;} } } -.read-more {color: var(--accent-color)} +.read-more {color: #00a3ff} /* header bar */ .site-header {background: #ddd; filter: drop-shadow(0px -1px 2px rgba(0,0,0,0.2))} @@ -175,7 +180,7 @@ main {flex-grow: 1} top: 0; z-index: 2; a {height: 44px;} - a:hover {border-bottom: 2px solid var(--accent-color);} + a:hover {border-bottom: 2px solid #00a3ff;} .container {justify-content: space-between; flex-flow: row wrap; height: 64px; align-items: center;} } } @@ -291,7 +296,7 @@ body { a { display: flex; box-sizing: border-box; - color: var(--accent-color); + color: #00a3ff; text-decoration: none; justify-content: center; align-items: center; @@ -303,13 +308,13 @@ body { } a:first-child { margin-right: 1em; - background: var(--accent-color); + background: #00a3ff; color: white; } a:not(:first-child) { - border: 2px solid var(--accent-color); + border: 2px solid #00a3ff; } - a:hover {background: rgba(var(--accent-color),0.4)} + a:hover {background: rgba(#00a3ff,0.4)} } /* about logos */ @@ -407,6 +412,7 @@ html[lang="ar"] { .site-nav, .personal-summary, .section-header, + .page-title, .cta a {direction: rtl;} .cta a {margin-right: 0; margin-left: 1em;} diff --git a/config.toml b/config.toml index 2bb5cdf..9c31323 100644 --- a/config.toml +++ b/config.toml @@ -4,13 +4,11 @@ DefaultContentLanguage = "en" [languages] [languages.ar] - contentDir = "content/ar" languagedirection = "rtl" title = "المهندس محمد الطراونه" languageName = "العربية" weight = 2 [languages.en] - contentDir = "content/en" title = "Eng. Mohammed al-Tarawneh" languageName = "English" weight = 1 diff --git a/content/ar/_index.md b/content/_index.ar.md similarity index 88% rename from content/ar/_index.md rename to content/_index.ar.md index b3682e6..3d7c7a7 100644 --- a/content/ar/_index.md +++ b/content/_index.ar.md @@ -2,7 +2,7 @@ summary: "محمد الطراونة هو خبير في حقوق الاشخاص ذوى الاحتياجات الخاصة، ويستخدم التصميم الشامل لتحسين العالم." about: "محمد كافح من أجل إمكانية الوصول لعشرات السنين." readmore: "اقرأ أكثر عن محمد" -latest: "أحدث الإعلام" +latest: "أحدث المنشورات باللغة العربية" contact: "الدكتور المهندس محمد حاليا متاح للاستشارات و الأدوار الإستشارية." translationKey: "home" --- diff --git a/content/en/_index.md b/content/_index.en.md similarity index 100% rename from content/en/_index.md rename to content/_index.en.md diff --git a/content/ar/about/index.md b/content/about/index.ar.md similarity index 100% rename from content/ar/about/index.md rename to content/about/index.ar.md diff --git a/content/en/about/index.md b/content/about/index.md similarity index 100% rename from content/en/about/index.md rename to content/about/index.md diff --git a/content/ar/media/_index.md b/content/ar/media/_index.md deleted file mode 100644 index f832370..0000000 --- a/content/ar/media/_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "أحدث الإعلام" -translationKey: media ---- \ No newline at end of file diff --git a/content/en/media/_index.md b/content/en/media/_index.md deleted file mode 100644 index c1eef9c..0000000 --- a/content/en/media/_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "Latest media" -translationKey: media ---- \ No newline at end of file diff --git a/content/media/_index.ar.md b/content/media/_index.ar.md new file mode 100644 index 0000000..97a2a1f --- /dev/null +++ b/content/media/_index.ar.md @@ -0,0 +1,4 @@ +--- +title: "أحدث المنشورات باللغة العربية" +translationKey: media +--- diff --git a/content/media/_index.en.md b/content/media/_index.en.md new file mode 100644 index 0000000..b1ccb8d --- /dev/null +++ b/content/media/_index.en.md @@ -0,0 +1,4 @@ +--- +title: "Latest media in English" +translationKey: media +--- \ No newline at end of file diff --git a/content/en/media/disability-in-jordan/index.md b/content/media/disability-in-jordan/index.md similarity index 100% rename from content/en/media/disability-in-jordan/index.md rename to content/media/disability-in-jordan/index.md diff --git a/content/en/media/haiti/index.md b/content/media/haiti/index.md similarity index 100% rename from content/en/media/haiti/index.md rename to content/media/haiti/index.md diff --git a/content/en/media/monitoring/index.md b/content/media/monitoring/index.md similarity index 100% rename from content/en/media/monitoring/index.md rename to content/media/monitoring/index.md diff --git a/content/en/media/self-determination/index.md b/content/media/self-determination/index.md similarity index 100% rename from content/en/media/self-determination/index.md rename to content/media/self-determination/index.md diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 931338d..cf40d15 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,12 +5,17 @@

{{ .Title }}

- {{ range .Pages }} -
-

{{ .Title }}

- {{ .Date.Format "January 2, 2006" }} - Read more -
- {{ end }} +
+
+ {{ range .Pages }} + + {{ end }} +
+
{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 76267ff..0e2cb45 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -23,7 +23,7 @@
{{ with .Params.readmore }} - {{.}} + {{.}} {{ end }}