diff --git a/public/education/compilers.jpg b/public/education/compilers.jpg new file mode 100644 index 00000000..cbe2cd4d Binary files /dev/null and b/public/education/compilers.jpg differ diff --git a/public/education/networking.jpg b/public/education/networking.jpg new file mode 100644 index 00000000..ec8f9dbc Binary files /dev/null and b/public/education/networking.jpg differ diff --git a/public/education/time.jpg b/public/education/time.jpg new file mode 100644 index 00000000..55182388 Binary files /dev/null and b/public/education/time.jpg differ diff --git a/public/style.css b/public/style.css index 704651bb..e3d2af40 100644 --- a/public/style.css +++ b/public/style.css @@ -7394,7 +7394,7 @@ article code { border-color: #aaa; border-color: var(--theme-color-dim); } -.c--dimmer, footer .list li:not(:last-child)::after { +.c--dimmer, footer .list li:not(:last-child)::after, .edu-course .edu-article.coming-soon { color: #999; color: var(--dimmer-color); } @@ -8306,6 +8306,27 @@ nav.timecodes { text-align: center; margin: 10px 0; } +.edu-course .edu-article.coming-soon { + font-style: italic; } + +.edu-course .edu-article::after { + content: ''; + position: absolute; + width: 1rem; + height: 10rem; + border-width: 0 0 1px 1px; + border-style: solid; + border-color: #bbb; + border-color: var(--dimmest-color); + left: -1.5rem; + top: -9rem; + border-bottom-left-radius: 0.5rem; } + +.edu-topic img { + width: 100%; + height: 14rem; + object-fit: cover; } + .edu-article .note { color: red; } diff --git a/src/rawdata/scss/_education.scss b/src/rawdata/scss/_education.scss index e1493ba4..c51dc42c 100644 --- a/src/rawdata/scss/_education.scss +++ b/src/rawdata/scss/_education.scss @@ -1,3 +1,32 @@ +.edu-course { + .edu-article.coming-soon { + @extend .c--dimmer; + font-style: italic; + } + + .edu-article::after { + $height: 10rem; + content: ''; + position: absolute; + width: 1rem; + height: $height; + border-width: 0 0 1px 1px; + border-style: solid; + @include usevar(border-color, dimmest-color); + left: -1.5rem; + top: 1rem - $height; + border-bottom-left-radius: 0.5rem; + } +} + +.edu-topic { + img { + width: 100%; + height: 14rem; + object-fit: cover; + } +} + .edu-article { .note { color: red; diff --git a/src/templates/src/education_article.html b/src/templates/src/education_article.html index df1b929d..f2892982 100644 --- a/src/templates/src/education_article.html +++ b/src/templates/src/education_article.html @@ -41,7 +41,7 @@ {{ end }} {{ define "content" }} -
Dive into one of these topics and start learning.
- {{ if and .User .User.IsEduAuthor }} -