Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: new light site design #60

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ prototype(Sfi.Kateheo:PrimarySection.Short) < prototype(Neos.Neos:ContentCompone
renderer = 'flex-basis: 50%; padding: 12px'
}
}
arrowFrame = Neos.Fusion:ResourceUri {
path = 'resource://Sfi.Kateheo/Public/Images/ArrowFrame.svg'
}
renderer = afx`
<div class={'mode-' + mode}>
{props.style}
<a href={props.nodeUri} class={'primarySection primarySection' + node.name + (currentSection == node && ' isCurrent')}>
<div class='primarySection-inner'>
<p class={(mode == 'section' ? 'H2' : 'H1') + ' color-white primarySection-title'} style="text-transform: uppercase; text-align: center"><Neos.Neos:Editable property="title" block={false} /></p>
<p @if.onlyMain={mode != 'section'} class="primarySection-description ServiceEm--Large color-white textAlign-center"><Neos.Neos:Editable property="description" block={false} /></p>
<div style="margin: 12px auto; border: 2px solid white; color: white; font-size: 20px; width: 100px; text-align: center;"></div>
<div style="margin: 12px auto; font-size: 20px; width: 100px; text-align: center;"><img src={props.arrowFrame}/></div>
</div>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,25 @@ prototype(Sfi.Kateheo:Slide) < prototype(Neos.Neos:ContentComponent) {
<div class="Slide-image" style="min-width: 72px"><img style="display: none" alt={props.name} src={props.imageUri}/></div>
<div style="display: flex; align-items: center; margin: 36px 0">
<div>
<div class="Slide-text"><Neos.Neos:Editable property="text"/></div>
<div style="margin-top: 12px">
<span class="Slide-name"><Neos.Neos:Editable property="name" block={false}/>, </span><span class="Slide-about"><Neos.Neos:Editable property="about" block={false}/></span>
<div class="Slide-text"><Neos.Neos:Editable property="text"/>
<div style="margin-top: 12px">
<span class="Slide-name"><Neos.Neos:Editable property="name" block={false}/>, </span><span class="Slide-about"><Neos.Neos:Editable property="about" block={false}/></span>
</div>
</div>
</div>
</div>
</div>
`
@process.styles = ${'<style>
@media screen and (min-width: 640px) {
@media screen and (max-width: 899px){
.Slide-image {
display: none;
}
.Slide-image img {
display: none;
}
}
@media screen and (min-width: 900px) {
.Slide-image {
flex-shrink: 0;
align-self: flex-end;
Expand All @@ -34,7 +43,13 @@ prototype(Sfi.Kateheo:Slide) < prototype(Neos.Neos:ContentComponent) {
line-height: var(--lineHeight-normal);
font-size: 16px;
}
@media screen and (min-width: 640px) {
@media screen and (max-width: 899px){
.Slide-text {
font-size: 21px;
padding-left: 72px;
}
}
@media screen and (min-width: 900px) {
.Slide-text {
font-size: 21px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ prototype(Sfi.Kateheo:Header) < prototype(Neos.Fusion:Component) {
title = ${site.properties.title}
siteSubTitle = ${site.properties.siteSubTitle}
renderer = afx`
<header style="margin-bottom: 36px; border-bottom: 1px solid var(--color-grayLine)">
<div style="display:flex; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #e6e6e6;">
<header style="color: var(--color-grayLight); margin-bottom: 36px; border-bottom: 1px solid var(--color-grayLine)">
<div style="display:flex; border-bottom-style: solid; border-bottom: 1px solid var(--color-grayLine);">
<div href="#menu" class="marginLeft-single MobileNav-Toggle js-MobileNav-Toggle">
<div class="IconMenu">
<img alt="Меню" src={props.iconMenu}/>
Expand Down Expand Up @@ -57,7 +57,7 @@ prototype(Sfi.Kateheo:Header) < prototype(Neos.Fusion:Component) {
renderer = afx`
{props.style}
<header>
<div style="display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #e6e6e6;">
<div style="color: var(--color-grayLight); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--color-grayLine);">
<div><Sfi.Kateheo:PrimaryMenu/></div>
<div>
<Sfi.Kateheo:SecondaryMenu/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ prototype(Sfi.Kateheo:PrimaryMenu) < prototype(Neos.Fusion:Collection) {
itemName = 'node'
itemRenderer = Neos.Fusion:Tag {
tagName = 'a'
attributes.style = 'margin: 12px; display: inline-block;'
attributes.style = 'margin: 12px; display: inline-block; font-size: 16px;'
attributes.class = Neos.Fusion:RawArray {
main = 'H4 primaryMenu-item'
active = ${(documentNode == node || q(documentNode).parents('[_identifier = "' + node.identifier + '"]').count() > 0) && 'isCurrent'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ prototype(Sfi.Kateheo:SecondaryMenu) < prototype(Neos.Fusion:Collection) {
itemName = 'node'
itemRenderer = Neos.Fusion:Tag {
tagName = 'a'
attributes.style = 'margin: 12px; display: inline-block;'
attributes.style = 'margin: 12px; display: inline-block; font-size: 10px;'
attributes.class = Neos.Fusion:RawArray {
main = 'Service--Small secondaryMenu-item'
active = ${(documentNode == node || q(documentNode).parents('[_identifier = "' + node.identifier + '"]').count() > 0) ? 'isCurrent' : ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ prototype(Sfi.Kateheo:ServiceLinks) < prototype(Neos.Fusion:Component) {
}

iconUser = Neos.Fusion:ResourceUri {
path = 'resource://Sfi.Kateheo/Public/Images/IconUser.svg'
path = 'resource://Sfi.Kateheo/Public/Images/IconUserKateheo.svg'
}

iconSearch = Neos.Fusion:ResourceUri {
path = 'resource://Sfi.Kateheo/Public/Images/IconSearch.svg'
path = 'resource://Sfi.Kateheo/Public/Images/IconSearchKateheo.svg'
}

archiveUri = Neos.Neos:NodeUri {
node = ${q(site).children('[uriPathSegment = "archiv"]').get(0)}
}

renderer = afx`
<a title="Вход" href={props.loginLink} style="border-right: 1px solid black; margin-left: 24px; padding: 0 4px;">
<img src={props.iconUser} />
<a title="Вход" href={props.loginLink} style="border-right: 1px solid black; padding: 0 4px;">
<img src={props.iconUser} style="width: 36px"/>
</a>
<a class="js-headerSearch-toggle" title="Поиск" href={props.archiveUri} style="position: relative; left: -1px; padding: 12px">
<img src={props.iconSearch} />
<a class="js-headerSearch-toggle" title="Поиск" href={props.archiveUri} style="position: relative; left: -1px; padding-left: 12px;">
<img src={props.iconSearch} style="width: 18px"/>
</a>
`
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.