From 69ed14f28a446070438058b9cbb881f3a73d1a43 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 7 Oct 2023 17:49:15 +0200 Subject: [PATCH] add halloween theme --- assets/css/app.scss | 24 +- assets/css/app/config.scss | 3 +- assets/images/halloween/spider.svg | 390 +++++++++++++++++++++++ templates/page/simple/projects.html.twig | 30 +- 4 files changed, 429 insertions(+), 18 deletions(-) create mode 100644 assets/images/halloween/spider.svg diff --git a/assets/css/app.scss b/assets/css/app.scss index 917742a..a3dce8e 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -962,10 +962,32 @@ $links: ( } .card { - transition: transform .2s; + transition: transform .2s, background .2s, border .2s; + + &:nth-child(2n+1) { + background-image: url(../images/halloween/spider.svg) !important; + background-repeat: no-repeat !important; + background-position: calc(100% - 10px) 100px !important; + } + + &:nth-child(2n+2) { + background-image: url(../images/halloween/spider.svg) !important; + background-repeat: no-repeat !important; + background-position: calc(100% - 10px) 100px !important; + } &:hover { transform: scale(1.02); + background: $color-blue2; + background-position: calc(100% - 10px) 150px !important; + + img { + border-bottom: 2px solid #333; + } + + h3 a, p { + color: #fff; + } } figure { diff --git a/assets/css/app/config.scss b/assets/css/app/config.scss index 9ed0c22..076255c 100644 --- a/assets/css/app/config.scss +++ b/assets/css/app/config.scss @@ -12,7 +12,8 @@ $color-red: #b02e2a; $code-color: $color-blue; -$color-navigation-item-background: darken($color-dark-grey, 8%); +//$color-navigation-item-background: darken($color-dark-grey, 8%); +$color-navigation-item-background: darken($color-blue2, 8%); $color-navigation-item-background-active: lighten($color-dark-grey, 10%); $color-small-menu-background: $color-dark-grey; diff --git a/assets/images/halloween/spider.svg b/assets/images/halloween/spider.svg new file mode 100644 index 0000000..043a200 --- /dev/null +++ b/assets/images/halloween/spider.svg @@ -0,0 +1,390 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/page/simple/projects.html.twig b/templates/page/simple/projects.html.twig index cc5375a..64f7d23 100644 --- a/templates/page/simple/projects.html.twig +++ b/templates/page/simple/projects.html.twig @@ -16,24 +16,22 @@
{% for project in projects %}
-
- {% if project.image %} -
- {{ project.label }} -
- {% endif %} -
-

{{ project.label }}

+ {% if project.image %} +
+ {{ project.label }} +
+ {% endif %} +
+

{{ project.label }}

- {{- project.description|murph_url|markdown('post') -}} + {{- project.description|murph_url|markdown('post') -}} -
- {% for link in project.links %} - - {{- link.label -}} - - {% endfor %} -
+
+ {% for link in project.links %} + + {{- link.label -}} + + {% endfor %}