diff --git a/assets/css/main.scss b/assets/css/main.scss index 93ed18a..627492e 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -69,35 +69,6 @@ body { align-items: flex-start; } -.navigation { - max-width: 100%; - - &__item { - - + .navigation__item { - margin: 0.3rem 0 0 0; - } - } - - &__link { - display: block; - max-width: fit-content; - overflow-x: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-weight: var(--bold-font-weight); - transition: color 200ms ease-in-out; - - &--white { - color: var(--white); - - &:focus-visible { - outline: 1px dashed var(--white); - } - } - } -} - .social { width: 100%; display: flex; @@ -132,33 +103,12 @@ body { @media screen and (min-width: $tablet-media-query) { - .navigation { - - &__item { - - + .navigation__item { - margin: 0.2rem 0 0 0; - } - } - } - .social { justify-content: flex-start; } } -@media screen and (min-width: $desktop-media-query) { - - .navigation { - - &__item { - - + .navigation__item { - margin: 0.1rem 0 0 0; - } - } - } -} +@media screen and (min-width: $desktop-media-query) {} // Slider section diff --git a/site/blueprints/sections/site_content_exhibitions.yml b/site/blueprints/sections/site_content_exhibitions.yml deleted file mode 100644 index 26f2927..0000000 --- a/site/blueprints/sections/site_content_exhibitions.yml +++ /dev/null @@ -1,22 +0,0 @@ -label: - en: Exhibitions - fr: Expositions -type: fields -fields: - exhibitions: - label: - en: Exhibitions - fr: Expositions - type: structure - prepend: true - sortable: true - required: true - fields: - url: - label: - en: URL - fr: URL - type: url - - - diff --git a/site/blueprints/tabs/site_content.yml b/site/blueprints/tabs/site_content.yml index 7552c54..86c0d2c 100644 --- a/site/blueprints/tabs/site_content.yml +++ b/site/blueprints/tabs/site_content.yml @@ -3,6 +3,5 @@ label: fr: Contenu icon: text sections: - exhibitions: sections/site_content_exhibitions artworks: sections/site_content_images contact: sections/site_content_contact diff --git a/site/controllers/home.php b/site/controllers/home.php index 1994e26..be36c71 100644 --- a/site/controllers/home.php +++ b/site/controllers/home.php @@ -2,28 +2,18 @@ return function ($site) { - // Get exhibitions field content (stored as yaml) and parse it to return an array - $exhibitions = $site->exhibitions()->yaml(); - - // Add url based title to each exhibition - foreach ($exhibitions as &$exhibition) { - $exhibition['title'] = str_replace(['http://', 'https://', 'www.', '.html'], '', $exhibition['url']); - $exhibition['title'] = rtrim($exhibition['title'], '/'); - } + // Get image files section content + $images = $site->files()->template("full_screen_image")->shuffle(); // Get contact fields content $email = $site->email(); $instagram = $site->instagram(); $portfolio = $site->portfolio()->toFile(); - // Get image files section content - $images = $site->files()->template("full_screen_image")->shuffle(); - return [ - 'exhibitions' => $exhibitions, + 'images' => $images, 'email' => $email, 'instagram' => $instagram, - 'portfolio' => $portfolio, - 'images' => $images + 'portfolio' => $portfolio ]; }; diff --git a/site/templates/home.twig b/site/templates/home.twig index d114d3d..93adea2 100644 --- a/site/templates/home.twig +++ b/site/templates/home.twig @@ -5,18 +5,6 @@
- -