Initial Build
This commit is contained in:
parent
71cd3acccd
commit
6c0d9a3f98
140 changed files with 9802 additions and 2403 deletions
57
assets/styles/scss/front/_layout.scss
Normal file
57
assets/styles/scss/front/_layout.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
@use '../shared/colors' as colors;
|
||||
|
||||
.secondary.layout--v1 {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding: 0.5rem 0.5rem;
|
||||
background-color: colors.$primaryYellow;
|
||||
|
||||
#root {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@media (min-width: 800px) {
|
||||
display: grid;
|
||||
grid-template-columns: 25% 75%;
|
||||
grid-template-rows: 1fr;
|
||||
|
||||
margin: 0 auto;
|
||||
padding: 1rem 1rem;
|
||||
}
|
||||
|
||||
gap: 1rem;
|
||||
position: relative;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100vh;
|
||||
max-width: 1200px;
|
||||
|
||||
|
||||
|
||||
background-color: colors.$carbonBlack;
|
||||
box-shadow: 0 0 5px 10px rgba(29, 31, 32, 0.45);
|
||||
|
||||
main {
|
||||
padding: 1rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.menu-open,
|
||||
&.photo-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&.photo-open {
|
||||
.overlay {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: colors.$inkBlack;
|
||||
opacity: .9;
|
||||
}
|
||||
}
|
||||
}
|
||||
24
assets/styles/scss/front/_lists.scss
Normal file
24
assets/styles/scss/front/_lists.scss
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@use '../shared/colors';
|
||||
|
||||
.posts {
|
||||
.list {
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
padding: 1rem 0;
|
||||
|
||||
a {
|
||||
color: colors.$primaryWhite;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
|
||||
.post-title {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
147
assets/styles/scss/front/_menu.scss
Normal file
147
assets/styles/scss/front/_menu.scss
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
@use '../shared/colors' as colors;
|
||||
|
||||
header {
|
||||
display: block;
|
||||
position: sticky;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
top: 0;
|
||||
padding-bottom: 1rem;
|
||||
background-color: colors.$carbonBlack;
|
||||
|
||||
@media (min-width: 600px) {
|
||||
height: 500px;
|
||||
|
||||
}
|
||||
|
||||
&.open {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
&.open {
|
||||
.top {
|
||||
h1 {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
nav.main {
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
@media (min-width: 600px) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
|
||||
font-size: 1.5rem;
|
||||
text-decoration: none;
|
||||
color: colors.$primaryBlack;
|
||||
background-color: colors.$primaryYellow;
|
||||
border: 2px solid colors.$primaryYellow;
|
||||
padding: 2px 2px;
|
||||
|
||||
&:hover {
|
||||
color: colors.$primaryYellow;
|
||||
background-color: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
&.icon-menu {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
z-index: 999;
|
||||
transition: right 100ms ease;
|
||||
|
||||
@media screen and (min-width: 600px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
display: block;
|
||||
background-image: url('/icons/menu-grid.svg');
|
||||
background-size: 100%;
|
||||
position: absolute;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.open {
|
||||
right: 325px;
|
||||
&:before {
|
||||
background-image: url('/icons/menu-close.svg');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
menu {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 0;
|
||||
background-color: colors.$primaryYellow;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
transition: width 100ms ease;
|
||||
|
||||
@media (min-width: 600px) {
|
||||
position: relative;
|
||||
top: unset;
|
||||
right: unset;
|
||||
width: 100%;
|
||||
transition: unset;
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
&.open {
|
||||
width: 300px;
|
||||
box-shadow: 0 0 5px 10px rgba(29, 31, 32, 0.45);
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 1rem 2rem;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
color: colors.$primaryWhite;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
179
assets/styles/scss/front/_photos.scss
Normal file
179
assets/styles/scss/front/_photos.scss
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
@use '../shared/colors' as colors;
|
||||
.photos {
|
||||
display: block;
|
||||
|
||||
.albums {
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
|
||||
@media (min-width: 800px) {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
gap: 1rem;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
.album {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.title, .date, .overlay {
|
||||
position: absolute;
|
||||
visibility: visible;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.title, .date, .category {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.title {
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
}
|
||||
|
||||
.date {
|
||||
bottom: 1rem;
|
||||
left: 1rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.333);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.title, .date, .category, .overlay {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
transform: scale(1.01);
|
||||
transition: transform 100ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
#album {
|
||||
.title {
|
||||
margin: 0;
|
||||
}
|
||||
.meta {
|
||||
border-bottom: 5px solid colors.$computerBorder;
|
||||
}
|
||||
|
||||
.photos {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
|
||||
@media (min-width: 800px) {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
gap: 1rem;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
.photo {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
//width: 100%;
|
||||
transition: transform 100ms ease-in-out;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
transform: scale(1.01);
|
||||
transition: transform 100ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#open-image {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
transform: translateY(-50%);
|
||||
z-index: 999;
|
||||
|
||||
.close {
|
||||
cursor: pointer;
|
||||
font-size: 2rem;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#details {
|
||||
display: block;
|
||||
height: auto;
|
||||
padding: 1rem 1rem;
|
||||
|
||||
background-color: colors.$computerBorder;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#caption {
|
||||
font-size: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
#location, #date, #equipment {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.open {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
73
assets/styles/scss/front/_posts.scss
Normal file
73
assets/styles/scss/front/_posts.scss
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
@use '../shared/colors' as colors;
|
||||
|
||||
.posts {
|
||||
display: block;
|
||||
h2, h3 {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
width: fit-content;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
|
||||
width: 75px;
|
||||
height: 5px;
|
||||
|
||||
background-color: colors.$computerBorder;
|
||||
}
|
||||
}
|
||||
.intro {
|
||||
//color: colors.$primaryWhite;
|
||||
}
|
||||
|
||||
.list {
|
||||
padding-top: 1rem;
|
||||
border-top: 5px solid colors.$primaryYellow;
|
||||
|
||||
.post {
|
||||
|
||||
a {
|
||||
.title {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: colors.$computerBorder;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post {
|
||||
display: block;
|
||||
|
||||
.title {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.meta {
|
||||
padding-bottom: 1rem;
|
||||
|
||||
border-bottom: 5px solid colors.$computerBorder;
|
||||
|
||||
.admin-actions {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.published {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
.category {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
.text p {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
15
assets/styles/scss/front/_typography.scss
Normal file
15
assets/styles/scss/front/_typography.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@use '../shared/colors' as colors;
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
a,
|
||||
span,
|
||||
time {
|
||||
color: colors.$primaryWhite;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue