1
0
forked from SPC/spc-site

Update icons and page names

This commit is contained in:
Alexander Nozik 2022-10-04 12:55:05 +03:00
parent 38b6147794
commit ade8f61aa0
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
16 changed files with 33 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 810 B

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} {"name":"Scientific Programming Centre","short_name":"SPC","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

View File

@ -1,6 +1,7 @@
--- ---
type: page type: page
title: Consulting title: Consulting
pageName: SPC.consulting
transformation: snark.basic transformation: snark.basic
language: en language: en
--- ---

View File

@ -1,6 +1,7 @@
--- ---
type: page type: page
title: Research title: Research
pageName: SPC.research
language: en language: en
--- ---

View File

@ -1,6 +1,7 @@
--- ---
type: page type: page
title: Education title: Education
pageName: SPC.education
transformation: snark.basic transformation: snark.basic
language: en language: en
--- ---
@ -21,25 +22,32 @@ language: en
## Courses in 2022-2023: ## Courses in 2022-2023:
* Scientific literature seminar ### Scientific literature seminar
curated by Aleksandr Svetlichnyi curated by Aleksandr Svetlichnyi
* [Statistical methods and data analysis](https://t.me/mipt_statmethods) ([SPC-A-6](https://npm.mipt.ru/youtrack/articles/SPC-A-6)) ### [Statistical methods and data analysis](https://t.me/mipt_statmethods)
Program: [SPC-A-6](https://npm.mipt.ru/youtrack/articles/SPC-A-6)
by Alexander Nozik and Vladimir Palmin by Alexander Nozik and Vladimir Palmin
* Численные методы ([SPC-A-3](https://npm.mipt.ru/youtrack/articles/SPC-A-3)) ### Численные методы
Program: [SPC-A-3](https://npm.mipt.ru/youtrack/articles/SPC-A-3)
by Konstantin Tikhonov and Rolan Grinis by Konstantin Tikhonov and Rolan Grinis
* Instruments of development ([SPC-A-5](https://npm.mipt.ru/youtrack/articles/SPC-A-5)) ### Instruments of development
Program: [SPC-A-5](https://npm.mipt.ru/youtrack/articles/SPC-A-5)
* [Advanced Python](https://t.me/mipt_npm_python) ([SPC-A-4](https://npm.mipt.ru/youtrack/articles/SPC-A-4)) curated by Alexander Nozik
### [Advanced Python](https://t.me/mipt_npm_python)
Program: [SPC-A-4](https://npm.mipt.ru/youtrack/articles/SPC-A-4)
by Mikhail Zelenyy by Mikhail Zelenyy
* Computational finance ([SPC-A-10](https://npm.mipt.ru/youtrack/articles/SPC-A-10)) ### Computational finance
Program: [SPC-A-10](https://npm.mipt.ru/youtrack/articles/SPC-A-10)
by Rolan Grinis by Rolan Grinis

View File

@ -1,6 +1,7 @@
--- ---
type: page type: page
title: Research title: Research
pageName: SPC.research
language: en language: en
--- ---

View File

@ -1,6 +1,7 @@
--- ---
type: page type: page
title: Консалтинг title: Консалтинг
pageName: ЦНП.консалтинг
language: ru language: ru
published: false published: false
--- ---

View File

@ -1,5 +1,6 @@
--- ---
type: page type: page
title: Team title: Team
pageName: SPC.team
language: en language: en
--- ---

View File

@ -97,8 +97,9 @@ internal fun SiteBuilder.spcSpotlight(
val meta = body.meta val meta = body.meta
page(name) { page(name) {
val title = meta["title"].string ?: SPC_TITLE val title by meta.string { SPC_TITLE }
spcHead(title) val pageName by meta.string { title }
spcHead(pageName)
body("is-preload") { body("is-preload") {
wrapper { wrapper {
spcSpotlightContent(body, content) spcSpotlightContent(body, content)

View File

@ -16,10 +16,11 @@ import kotlin.reflect.typeOf
context(WebPage) internal fun HTML.spcPageContent( context(WebPage) internal fun HTML.spcPageContent(
meta: Meta, meta: Meta,
title: String = meta["title"].string ?: SPC_TITLE,
fragment: FlowContent.() -> Unit, fragment: FlowContent.() -> Unit,
) { ) {
spcHead(title) val title by meta.string { SPC_TITLE }
val pageName by meta.string { title }
spcHead(pageName)
body("is-preload") { body("is-preload") {
wrapper { wrapper {
div("alt") { div("alt") {
@ -73,7 +74,9 @@ context(WebPage) private fun HTML.spcHome() {
id = "banner" id = "banner"
div("inner") { div("inner") {
header("major") { header("major") {
h1 { +"""Scientific Programming Centre""" } h1 {
+"""Scientific Programming Centre"""
}
} }
div("content") { div("content") {
p { p {
@ -103,8 +106,8 @@ context(WebPage) private fun HTML.spcHome() {
img { img {
src = "images/FPMI.jpg" src = "images/FPMI.jpg"
alt = "FPMI" alt = "FPMI"
height = "60" height = "60dp"
width = "60" width = "60dp"
} }
} }
} }

View File

@ -60,8 +60,8 @@ context(WebPage) internal fun FlowContent.spcHomeMenu() {
} }
li { li {
a { a {
href = resolvePageRef("magprog.index") href = resolvePageRef("education.index")
+"""Master""" +"""Education"""
} }
} }
li { li {