Skip to content

Commit

Permalink
goings and comings pages
Browse files Browse the repository at this point in the history
  • Loading branch information
oilstel committed Jan 17, 2025
1 parent b666330 commit 4dd5339
Show file tree
Hide file tree
Showing 16 changed files with 263 additions and 175 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Production is deployed automatically from the `master` branch. Once a PR is merg
## Running the site locally
Kirby 4.0 works with PHP 8.3. Make sure to run PHP 8.3 locally.

## Pulling /content to your local env

```
rsync -avz --delete [email protected]:/var/www/riversinstitute.org/content/ ./content --dry-run'
```

```
php -S localhost:8000 kirby/router.php
```
Expand All @@ -37,6 +43,4 @@ CSS is compiled with Sass.
## To generate css, run:
```
sass --watch assets/scss/main.scss:assets/css/main.css
```

test
```
63 changes: 63 additions & 0 deletions assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions assets/scss/_subsection-grid.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
.subsection__contents__wrapper {
height: 100dvh;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
margin-top: -120px;

.subsection__contents {
display: flex;
flex-direction: column;
flex-flow: column nowrap;
justify-content: center;
align-items: flex-start;
z-index: 1;

.subsection__back__container {
margin-bottom: -1px;

.subsection__back {
font-size: 1.5rem;
display: flex;
justify-content: flex-start;
align-items: flex-start;
position: relative;
height: 100%;
color: var(--text-color);
border: 1px solid var(--main-color);
padding: 10px;
aspect-ratio: 1/1;
width: 220px;
height: 220px;

&:hover {
z-index: 10;
background-color: #f3f3f3;
}
}

}


.subsection__blocks {
display: flex;
flex-flow: row nowrap;

.subsection__block__container {
grid-area: var(--grid-area);

.subsection__block {
position: relative;
height: 100%;
width: 220px;
height: 220px;
color: var(--main-color);
border: 1px solid var(--main-color);
background-color: #fff;
aspect-ratio: 1/1;
margin-right: -1px;
display: flex;
justify-content: center;
align-items: center;

&:hover {
border: 1px solid var(--outline-color);
z-index: 10;
}
}
}
}
}
}
1 change: 1 addition & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@import "base.scss";
@import "associated-grid.scss";
@import "subsection-grid.scss";
@import "layout.scss";
@import "nav.scss";
@import "kirbytext.scss";
Expand Down
22 changes: 22 additions & 0 deletions site/blueprints/pages/comings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: Comings

columns:
main_1:
width: 2/3
sections:
pages:
headline: Subpages
type: pages
image: icon
templates:
- default
main_2:
width: 1/3
sections:
fields:
fields:
main_content:
label: Header
type: textarea
size: large
files:
6 changes: 5 additions & 1 deletion site/blueprints/pages/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ fields:
main_content:
label: Content
type: textarea
size: large
size: large
color:
label: Color
type: color
default: "#000"
6 changes: 5 additions & 1 deletion site/blueprints/pages/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ columns:
label: Header
type: textarea
size: large
files:
color:
label: Color
type: color
default: "#000"
files:
4 changes: 4 additions & 0 deletions site/blueprints/pages/exhibitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ columns:
label: Header
type: textarea
size: large
color:
label: Color
type: color
default: "#000"
files:
25 changes: 25 additions & 0 deletions site/blueprints/pages/goings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: Goings

columns:
main_1:
width: 2/3
sections:
pages:
headline: Subpages
type: pages
image: icon
templates:
- exhibitions
- events
- publications
- radio
main_2:
width: 1/3
sections:
fields:
fields:
main_content:
label: Header
type: textarea
size: large
files:
7 changes: 7 additions & 0 deletions site/blueprints/pages/publications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,11 @@ columns:
- origin__9_weber_payton
- 2__1_caroline_bergvall
- 2__2_edwards
color_fields:
type: fields
fields:
color:
label: Color
type: color
default: "#000"
files:
2 changes: 2 additions & 0 deletions site/blueprints/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ tabs:
- partners
- residency
- about
- goings
- comings
main_2:
width: 1/2
sections:
Expand Down
21 changes: 21 additions & 0 deletions site/snippets/subsection-grid.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<div class="subsection__contents__wrapper">
<div class="subsection__contents">
<div class="subsection__back__container">
<a href="<?= $site->url(); ?>" class="subsection__back">Back</a>
</div>
<ul class="subsection__blocks">
<?php foreach($subpages as $subpage): ?>
<li class="subsection__block__container">
<a href="<?= $subpage->url(); ?>">
<div class="subsection__block" style="--outline-color: <?= $subpage->color(); ?>">
<?= $subpage->title(); ?>
</div>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
14 changes: 14 additions & 0 deletions site/templates/comings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php snippet('header'); ?>
<?php snippet('nav'); ?>

<div class="layout-wrapper--full comings">
<div class="home__header">
<a href="<?= $site->url(); ?>/about" class="home__site-title">
<div class="site-title__text"><?= $site->full_title(); ?></div>
</a>
</div>

<?php snippet('subsection-grid', ['subpages' => $page->children()->listed()->sortBy()]); ?>
</div>

<?php snippet('footer'); ?>
14 changes: 14 additions & 0 deletions site/templates/goings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php snippet('header', ['headerClass' => 'height-limited']); ?>
<?php snippet('nav'); ?>

<div class="layout-wrapper--full goings">
<div class="home__header">
<a href="<?= $site->url(); ?>/about" class="home__site-title">
<div class="site-title__text"><?= $site->full_title(); ?></div>
</a>
</div>

<?php snippet('subsection-grid', ['subpages' => $page->children()->listed()->sortBy()]); ?>
</div>

<?php snippet('footer'); ?>
Loading

0 comments on commit 4dd5339

Please sign in to comment.