initial commit
This commit is contained in:
26
views/pug/_footer.pug
Normal file
26
views/pug/_footer.pug
Normal file
@ -0,0 +1,26 @@
|
||||
mixin list-maker(name, link)
|
||||
li.footer__nav-item
|
||||
a.footer__link(class=`${page === name ? 'footer__link--active' : ''}`,href=link)= name
|
||||
|
||||
footer.footer
|
||||
.footer__logo-box
|
||||
svg.footer__logo: use(href='/img/misc/sprite.svg#icon-logo')
|
||||
span.footer__logo-text libremdb
|
||||
|
||||
|
||||
ul.footer__nav
|
||||
//- +list-maker('Home Page','/')
|
||||
+list-maker('About','/about')
|
||||
+list-maker('Privacy','/privacy')
|
||||
+list-maker('Contact','/contact')
|
||||
li.footer__nav-item
|
||||
a.footer__link(href="#") Back to top
|
||||
|
||||
.footer__text
|
||||
p.footer__disclaimer
|
||||
span.footer__name libremdb
|
||||
| takes no credit for the movies shown and the all the accompanying data.
|
||||
p.footer__copyleft
|
||||
a.footer__link(href='https://github.com/zyachel/libremdb') Code
|
||||
| for the website and the server is licensed under
|
||||
a.footer__link(href='https://www.gnu.org/licenses/agpl-3.0-standalone.html') GNU AGPLv3
|
26
views/pug/_header.pug
Normal file
26
views/pug/_header.pug
Normal file
@ -0,0 +1,26 @@
|
||||
header(class=`${page === 'About'? 'about__header' : ''} header`)
|
||||
block header
|
||||
.header__nav-bar
|
||||
a.header__logo-box(href="/")
|
||||
svg.header__logo: use(href='/img/misc/sprite.svg#icon-logo')
|
||||
span.header__logo-text libremdb
|
||||
|
||||
nav.header__nav
|
||||
ul.header__nav-links
|
||||
- if(page === 'About')
|
||||
li.header__nav-item
|
||||
a.header__link(href='#features') Features
|
||||
li.header__nav-item
|
||||
a.header__link(href="#faqs") FAQs
|
||||
- else
|
||||
li.header__nav-item
|
||||
a.header__link(href='/about') About
|
||||
li.header__nav-item
|
||||
-const link = page === 'Contact' ? 'Privacy' : 'Contact';
|
||||
a.header__link(href=`/${link.toLowerCase()}`)= link
|
||||
li.header__nav-item
|
||||
a.header__link(href="https://github.com/zyachel/libremdb") Code
|
||||
|
||||
//- for theme
|
||||
label.theme-switcher__label(for="theme-switcher", name="theme switcher label", title="change theme")
|
||||
svg.theme-switcher__icon: use(href='/img/misc/sprite.svg#icon-theme-switcher')
|
94
views/pug/about.pug
Normal file
94
views/pug/about.pug
Normal file
@ -0,0 +1,94 @@
|
||||
extends base
|
||||
block append header
|
||||
.header__text-box
|
||||
h1.heading.heading__primary.header__main-text A FOSS alternative front-end to IMDb
|
||||
h2.header__sub-text Inspired by projects like
|
||||
a.header__sub-text.header__sub-text-links(href="https://codeberg.org/teddit/teddit") teddit
|
||||
span ,
|
||||
a.header__sub-text.header__sub-text-links(href="https://github.com/zedeus/nitter") nitter
|
||||
span and
|
||||
a.header__sub-text.header__sub-text-links(href="/similar-projects") many others
|
||||
| .
|
||||
a.button.button__primary.header__button(href='#features') features
|
||||
|
||||
block content
|
||||
main.main.about
|
||||
.about__features#features
|
||||
h2.heading.heading__secondary.about__features-heading Features
|
||||
.features
|
||||
.feature
|
||||
svg.feature__icon: use(href='/img/misc/sprite.svg#icon-eye-slash')
|
||||
h3.heading.heading__tertiary.feature__title No ads or tracking
|
||||
p.feature__text Browse any movie info without being tracked or bombarded by annoying ads.
|
||||
|
||||
.feature
|
||||
svg.feature__icon: use(href='/img/misc/sprite.svg#icon-link-slash')
|
||||
h3.heading.heading__tertiary.feature__title No connection to IMDb
|
||||
.feature__text All requests go through the backend; client never talks to IMDb except for a bunch of requests to m.media-amazon.com for images.
|
||||
|
||||
.feature
|
||||
svg.feature__icon: use(href='/img/misc/sprite.svg#icon-code-document')
|
||||
h3.heading.heading__tertiary.feature__title No JavaScript required
|
||||
p.feature__text Just a few lines(50 or so) of code to save theme preference, which itself is optional.
|
||||
|
||||
.feature
|
||||
svg.feature__icon: use(href='/img/misc/sprite.svg#icon-feather')
|
||||
h3.heading.heading__tertiary.feature__title Lightweight
|
||||
p.feature__text up movie page:
|
||||
br
|
||||
| libremdb: ~35 HTTP requests(1.35MB) vs IMDb: ~280 requests(7.75MB)
|
||||
|
||||
.feature
|
||||
svg.feature__icon: use(href='/img/misc/sprite.svg#icon-palette')
|
||||
h3.heading.heading__tertiary.feature__title Modern interface
|
||||
p.feature__text Modern interface with curated colors supporting both dark and light themes.
|
||||
|
||||
.feature
|
||||
svg.feature__icon: use(href='/img/misc/sprite.svg#icon-responsive')
|
||||
h3.heading.heading__tertiary.feature__title Responsive design
|
||||
p.feature__text Be it your small mobile or big computer screen, it's fully responsive.
|
||||
|
||||
|
||||
.about__faqs#faqs
|
||||
h2.heading.heading__secondary.about__faqs-heading Frequently asked questions
|
||||
.faqs
|
||||
details.faq
|
||||
summary.faq__question This website is so basic!
|
||||
p.faq__answer Yes, it is! I don't think a website that shows you some quick info of something needs to be overly fancy.
|
||||
details.faq
|
||||
summary.faq__question This website is slow.
|
||||
p.faq__answer Whenever you request info about a movie/show on libremdb, 4 trips are made(2 between your browser and libremdb's server, and 2 between libremdb's server and IMDb's server) instead of the usual 2 trips when you visit a website. For this reason there's a noticable delay. This is a bit of inconvenience you'll have to face should you wish to use this website.
|
||||
details.faq
|
||||
summary.faq__question It doesn't have all routes.
|
||||
p.faq__answer I think most of the people just check IMDb to get a quick glimpse of a movie/show. That's why there is just one route for now. However, I will try to implement other important routes if time allows. More info on
|
||||
a.faq__link(href='https://github.com/zyachel/libremdb') Github
|
||||
| .
|
||||
details.faq
|
||||
summary.faq__question Why is libremdb connecting to m.media-amazon.com?
|
||||
p.faq__answer For now, images are directly served from amazon. If I have enough time in the future, I'll implement a way to serve the images from libremdb instead.
|
||||
details.faq
|
||||
summary.faq__question Will amazon track me then?
|
||||
p.faq__answer They may log your IP address. I'd recommend using a VPN for mitigating this risk.
|
||||
details.faq
|
||||
summary.faq__question Why not just use IMDb?
|
||||
p.faq__answer Refer to the
|
||||
a.faq__link(href='#features') features section
|
||||
| above.
|
||||
details.faq
|
||||
summary.faq__question Why didn't you use other databases like
|
||||
a.faq__link(href="https://www.themoviedb.org/") TMDB
|
||||
| or
|
||||
a.faq__link(href="https://www.omdbapi.com/") OMDb
|
||||
| ?
|
||||
p.faq__answer IMDb simply has superior dataset compared to all other alternatives. With that being said, I'd encourage you to check out those alternatives too.
|
||||
details.faq
|
||||
summary.faq__question Why did you deploy it on heroku? Why not just buy your own domain name?
|
||||
p.faq__answer It's just a proof-of-concept for now. However, if you'd like to do so, you are very welcome.
|
||||
details.faq
|
||||
summary.faq__question Your website name is very, ehm, lame.
|
||||
p.faq__answer Let's just say I'm not very good at naming things.
|
||||
details.faq
|
||||
summary.faq__question I have some ideas/want to contribute, how do I contact you?
|
||||
p.faq__answer Here are a couple of ways to
|
||||
a.faq__link(href="/contact") reach me
|
||||
|. Send your beautiful suggestions or just drop a hi.
|
33
views/pug/base.pug
Normal file
33
views/pug/base.pug
Normal file
@ -0,0 +1,33 @@
|
||||
doctype html
|
||||
html(lang="en")
|
||||
head
|
||||
//- essential stuff
|
||||
meta(charset="UTF-8")
|
||||
meta(http-equiv="X-UA-Compatible", content="IE=edge")
|
||||
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
||||
title #{title} | libremdb
|
||||
meta(name="description", content="A Free and Open Soruce alternative front-end to IMDb. Look up movie overviews without being tracked.")
|
||||
//- preloading these for performance gains
|
||||
link(rel="preload stylesheet", href="/css/styles.css", as='style' crossorigin)
|
||||
link(rel="preload", href="/font/Montserrat-SemiBold.woff2", as="font", type="font/woff2" crossorigin)
|
||||
link(rel="preload", href="/font/NunitoSans-Regular.woff2", as="font", type="font/woff2" crossorigin)
|
||||
script(src="/js/index.js", defer)
|
||||
//- for favicons and stuff
|
||||
meta(name='color-scheme', content='light dark')
|
||||
meta(name='theme-color', content='#0f2c67')
|
||||
meta(name='msapplication-TileColor', content='#b91d47')
|
||||
link(rel='apple-touch-icon', sizes='180x180', href='/favicon/apple-touch-icon.png')
|
||||
link(rel='icon', type='image/png', sizes='32x32', href='/favicon/favicon-32x32.png')
|
||||
link(rel='icon', type='image/png', sizes='16x16', href='/favicon/favicon-16x16.png')
|
||||
link(rel='manifest', href='/site.webmanifest')
|
||||
link(rel='mask-icon', href='/favicon/safari-pinned-tab.svg', color='#5bbad5')
|
||||
|
||||
body
|
||||
//input is actually a checkbox hack to enable changing themes without js
|
||||
input#theme-switcher.theme-switcher__input(type="checkbox", name="theme switcher checkbox")
|
||||
.page
|
||||
include _header
|
||||
|
||||
block content
|
||||
h1 this is a placeholder text
|
||||
include _footer
|
20
views/pug/contact.pug
Normal file
20
views/pug/contact.pug
Normal file
@ -0,0 +1,20 @@
|
||||
extends base
|
||||
|
||||
block content
|
||||
main.main.contact
|
||||
h1.heading.heading__primary.contact__heading Got any feedback?
|
||||
p.contact__text reach me via:
|
||||
|
||||
.contact__mediums
|
||||
.contact__medium
|
||||
p.contact__medium-name [matrix]
|
||||
figure.contact__ways
|
||||
img.contact__ways-image(src="/img/contact/matrix.png", alt="QR Code for matrix")
|
||||
figcaption.contact__ways-text
|
||||
a.contact__ways-link(href="https://matrix.to/#/@ninal:matrix.org") @ninal:matrix.org
|
||||
.contact__medium
|
||||
p.contact__medium-name Email
|
||||
figure.contact__ways
|
||||
img.contact__ways-image(src="/img/contact/email.png", alt="QR Code for email")
|
||||
figcaption.contact__ways-text
|
||||
a.contact__ways-link(href="mailto:aricla@protonmail.com") aricla@protonmail.com
|
13
views/pug/error.pug
Normal file
13
views/pug/error.pug
Normal file
@ -0,0 +1,13 @@
|
||||
extends base
|
||||
|
||||
block content
|
||||
main.main.error
|
||||
h1.heading.heading__primary.error__status-code= statusCode
|
||||
h2.heading.heading__secondary.error__message= message
|
||||
if stack
|
||||
.error__stack-box
|
||||
pre.error__stack: code= stack
|
||||
p.error__text go back to the
|
||||
a.error__link(href="/") home page
|
||||
p.error__text if you believe this itself is an error,
|
||||
a.error__link(href="/contact") contact us
|
155
views/pug/movie.pug
Normal file
155
views/pug/movie.pug
Normal file
@ -0,0 +1,155 @@
|
||||
extends base
|
||||
|
||||
block content
|
||||
main.main.movie
|
||||
.movie__basic.basic
|
||||
figure.basic__image-box(style=`background-image: url(${movie.basic.poster})`)
|
||||
if movie.basic.poster
|
||||
img.basic__image(
|
||||
src=movie.basic.poster,
|
||||
alt=`${movie.basic.name} cover image`,
|
||||
title=`${movie.basic.name} cover image`
|
||||
)
|
||||
else
|
||||
svg.basic__image-na: use(href='/img/misc/sprite.svg#icon-image-slash')
|
||||
.basic__about
|
||||
h1.basic__title= movie.basic.name
|
||||
.basic__metadata
|
||||
each metadata in movie.basic.metadata
|
||||
span.basic__metadata-data= metadata
|
||||
|
||||
.basic__stats
|
||||
.basic__rating
|
||||
span.basic__rating-num= movie.basic.rating || '\u2013'
|
||||
svg.basic__rating-icon.basic__icon: use(href='/img/misc/sprite.svg#icon-rating')
|
||||
span.basic__rating-text avg. rating
|
||||
.basic__votes
|
||||
span.basic__votes-num= movie.basic.numVotes || '\u2013'
|
||||
svg.basic__votes-icon.basic__icon: use(href='/img/misc/sprite.svg#icon-like-dislike')
|
||||
span.basic__votes-text number of votes
|
||||
.basic__popularity
|
||||
span.basic__popularity-num=movie.basic.popularity || '\u2013'
|
||||
svg.basic__popularity-icon.basic__icon: use(href='/img/misc/sprite.svg#icon-graph-rising')
|
||||
span.basic__popularity-text popularity
|
||||
|
||||
.basic__genres
|
||||
span.basic__genre-heading Genres:
|
||||
-if (movie.basic.genres.length)
|
||||
each genre in movie.basic.genres
|
||||
span.basic__genre= genre
|
||||
-else
|
||||
span.basic__genre –
|
||||
|
||||
.basic__description
|
||||
p.basic__description-heading Overview
|
||||
p.basic__description-text= movie.basic.plotBrief || '\u2013'
|
||||
.basic__directors
|
||||
span.basic__director-heading Director:
|
||||
-if (movie.basic.directors.length)
|
||||
each director in movie.basic.directors
|
||||
span.basic__director= director
|
||||
- else
|
||||
span.basic__director –
|
||||
.basic__writers
|
||||
span.basic__writer-heading Writers:
|
||||
-if (movie.basic.writers.length)
|
||||
each writer in movie.basic.writers
|
||||
span.basic__writer= writer || '\u2013'
|
||||
- else
|
||||
span.basic__writer –
|
||||
|
||||
.movie__cast
|
||||
h2.movie__heading-main Top Cast
|
||||
ul.movie__cast-list.actors
|
||||
each cast in movie.topCast.actors
|
||||
li.actor: figure.actor__details
|
||||
if cast.avatar
|
||||
img.actor__image(src=cast.avatar, alt=`image of ${cast.name}`)
|
||||
else
|
||||
svg.actor__image-na: use(href='/img/misc/sprite.svg#icon-image-slash')
|
||||
figcaption.actor__name= cast.name
|
||||
figcaption.actor__character-name= cast.characterName ? 'as '+ cast.characterName : ''
|
||||
|
||||
.movie__storyline
|
||||
h2.movie__heading-main Storyline
|
||||
.movie__storyline-details.storyline
|
||||
.storyline__story
|
||||
p.movie__heading-sub Story
|
||||
span= movie.storyline.plotExpanded || '\u2013'
|
||||
.storyline__tagline
|
||||
span.movie__heading-sub Tagline:
|
||||
span= movie.storyline.tagline || '\u2013'
|
||||
.storyline__pg
|
||||
span.movie__heading-sub Parental Guidance:
|
||||
span= movie.storyline.parentalGuidance || '\u2013'
|
||||
|
||||
|
||||
.movie__details
|
||||
h2.movie__heading-main Details
|
||||
.movie__details-container.details
|
||||
p.details__release-date
|
||||
span.movie__heading-sub Release Date:
|
||||
span=movie.details.releaseDate || '\u2013'
|
||||
p.details__country
|
||||
span.movie__heading-sub Countries:
|
||||
span=movie.details.countries.join(', ') || '\u2013'
|
||||
p.details__languages
|
||||
span.movie__heading-sub Languages:
|
||||
span= movie.details.languages.join(', ')
|
||||
p.details__alt-name
|
||||
span.movie__heading-sub Also known as:
|
||||
span= movie.details.alternateTitle || '\u2013'
|
||||
p.details__-locations
|
||||
span.movie__heading-sub Filming locations:
|
||||
span= movie.details.filmingLocations.join(', ') || '\u2013'
|
||||
p.details__companies
|
||||
span.movie__heading-sub Companies:
|
||||
span= movie.details.companies.join(', ')
|
||||
-if(movie.details.officialSite)
|
||||
a.movie__link(href=movie.details.officialSite) Official website
|
||||
span →
|
||||
|
||||
.movie__boxoffice
|
||||
h2.movie__heading-main Box Office
|
||||
.movie__boxoffice-details.boxoffice
|
||||
- if (movie.boxoffice.grossWorldwide)
|
||||
p.boxoffice__budget
|
||||
span.movie__heading-sub Budget:
|
||||
span= movie.boxoffice.budget || '\u2013'
|
||||
p.boxoffice__opening-weekend-domestic
|
||||
span.movie__heading-sub Opening Weekend:
|
||||
span= movie.boxoffice.openingWeekendDomestic[0] || '\u2013'
|
||||
p.boxoffice__domestic
|
||||
span.movie__heading-sub Gross Domestic:
|
||||
span= movie.boxoffice.grossDomestic || '\u2013'
|
||||
p.boxoffice__worldwide
|
||||
span.movie__heading-sub Gross Worldwide:
|
||||
span= movie.boxoffice.grossWorldwide || '\u2013'
|
||||
- else
|
||||
p.boxoffice__na Data not available
|
||||
|
||||
.movie__technical
|
||||
h2.movie__heading-main Technical Specs
|
||||
.movie__technical-details.technical
|
||||
p.technical__runtime
|
||||
span.movie__heading-sub Runtime:
|
||||
span= movie.technicalSpecs.runtime || '\u2013'
|
||||
p.technical__color
|
||||
span.movie__heading-sub Color:
|
||||
span= movie.technicalSpecs.color || '\u2013'
|
||||
p.technical__ratio
|
||||
span.movie__heading-sub Aspect ratio:
|
||||
span= movie.technicalSpecs.aspectRatio || '\u2013'
|
||||
p.technical__sound
|
||||
span.movie__heading-sub Sound:
|
||||
span= movie.technicalSpecs.sound.join(', ') || '\u2013'
|
||||
|
||||
.movie__media
|
||||
h2.movie__heading-main Media
|
||||
-if (movie.media.images.length)
|
||||
.movie__media-box
|
||||
each image, index in movie.media.images
|
||||
figure.movie__media-image-secondary-box
|
||||
img.movie__media-image(src=image, alt=`image ${index + 1} from ${movie.basic.name}`)
|
||||
-else
|
||||
p.movie-media__na no media avaiable
|
16
views/pug/privacy.pug
Normal file
16
views/pug/privacy.pug
Normal file
@ -0,0 +1,16 @@
|
||||
extends base
|
||||
|
||||
block content
|
||||
main.main.privacy
|
||||
h1.heading.heading__primary.privacy__heading Privacy Policy
|
||||
p.privacy__jist In short: libremdb doesn't collect any data at all.
|
||||
.privacy__item
|
||||
h2.heading.heading__secondary.privacy__item-heading Data you directly provide
|
||||
p.privacy__item-text None.
|
||||
.privacy__item
|
||||
h2.heading.heading__secondary.privacy__item-heading Data you passively provide
|
||||
p.privacy__item-text Heroku might log some things(like IP address). So, consider hosting your own instance or using a VPN.
|
||||
.privacy__item
|
||||
h2.heading.heading__secondary.privacy__item-heading Data stored in your browser
|
||||
p.privacy__item-text To remember theme preferences, the website stores a key named 'theme' in Local Storage provided by your browser. Apart from that, there is nothing stored in your browser. To remove the key, press F12 > Storage(or Application in chromium-based browsers) > Local Storage > right click > Delete.
|
||||
p.privacy__item-text To permamently disable libremdb from storing your theme prefrences, either turn off JavaScript or disable access to Local Storage for libremdb.
|
50
views/pug/similarProjects.pug
Normal file
50
views/pug/similarProjects.pug
Normal file
@ -0,0 +1,50 @@
|
||||
extends base
|
||||
|
||||
mixin project(name, description, website, instance, official=true)
|
||||
.project
|
||||
a.project__name(href=website)=name
|
||||
p.project__about=description
|
||||
a.project__instance(href=instance)=`${official ? 'Official' : 'Community'} instance `
|
||||
span.project__instance-arrow →
|
||||
|
||||
block content
|
||||
main.main.similar-projects
|
||||
h1.heading.heading__primary.similar-projects__heading Other cool projects you should check out:
|
||||
.similar-projects__list
|
||||
+project(
|
||||
'Teddit',
|
||||
'Teddit is an alternative Reddit front-end focused on privacy.',
|
||||
"https://codeberg.org/teddit/teddit",
|
||||
"https://teddit.net/"
|
||||
)
|
||||
+project(
|
||||
'Nitter',
|
||||
'Nitter is a free and open source alternative Twitter front-end focused on privacy.',
|
||||
'https://github.com/zedeus/nitter',
|
||||
'https://nitter.net/'
|
||||
)
|
||||
+project(
|
||||
'Bibliogram',
|
||||
'Bibliogram is an alternative front-end for Instagram.',
|
||||
'https://sr.ht/~cadence/bibliogram/',
|
||||
'https://bibliogram.art/'
|
||||
)
|
||||
+project(
|
||||
'Invidious',
|
||||
'Invidious is an alternative front-end to YouTube.',
|
||||
'https://invidious.org',
|
||||
'https://invidious.snopyta.org/feed/popular',
|
||||
false
|
||||
)
|
||||
+project(
|
||||
'Libreddit',
|
||||
'Libreddit is an alternative private front-end to Reddit.',
|
||||
'https://github.com/spikecodes/libreddit',
|
||||
'https://libreddit.spike.codes/'
|
||||
)
|
||||
+project(
|
||||
'Scribe',
|
||||
'Scribe is an alternative Medium frontend.',
|
||||
'https://git.sr.ht/~edwardloveall/scribe',
|
||||
'https://scribe.rip/'
|
||||
)
|
381
views/sass/_abstracts.scss
Normal file
381
views/sass/_abstracts.scss
Normal file
@ -0,0 +1,381 @@
|
||||
// importing sass built-in modules
|
||||
@use 'sass:color';
|
||||
@use 'sass:map';
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// ANIMATIONS
|
||||
////////////////////////////////////////////////////////////////
|
||||
// animation to be used when summary is being opened
|
||||
// doesn't work on closing because of the limitation of details tag
|
||||
@keyframes slide-down {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-1rem);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// MIXINS
|
||||
////////////////////////////////////////////////////////////////
|
||||
// mixin to add underline under link
|
||||
@mixin underliner($clr-2, $clr-1: transparent, $transition: true) {
|
||||
border-bottom: 2px solid $clr-1;
|
||||
|
||||
@if $transition {
|
||||
transition: border 0.4s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-bottom: 2px solid $clr-2;
|
||||
}
|
||||
}
|
||||
|
||||
// MIXINS TO TURN SCSS VARIABLES INTO CSS VARIABLES:
|
||||
@mixin themed-css-variables($theme) {
|
||||
@each $var, $values in $themed-variables {
|
||||
--#{$var}: #{map.get($values, $theme)};
|
||||
}
|
||||
}
|
||||
@mixin misc-css-variables {
|
||||
@each $var, $value in $misc-variables {
|
||||
--#{$var}: #{$value};
|
||||
}
|
||||
}
|
||||
|
||||
// MIXIN TO ADD FONTS
|
||||
$font-type-map: (
|
||||
'Thin': 100,
|
||||
'ExtraLight': 200,
|
||||
'Light': 300,
|
||||
'Regular': 400,
|
||||
'Medium': 500,
|
||||
'SemiBold': 600,
|
||||
'Bold': 700,
|
||||
'ExtraBold': 800,
|
||||
'Black': 900,
|
||||
);
|
||||
|
||||
@mixin font($font-name, $font-types...) {
|
||||
// looping over the argument list $font-types
|
||||
@each $font-type in $font-types {
|
||||
// setting initial values
|
||||
$weight: normal;
|
||||
$style: normal;
|
||||
// font names to be used in the src
|
||||
$font-name-string: '#{$font-name}-#{$font-type}';
|
||||
|
||||
// changing weight property for font-type that has weight defined in the font-type-map map
|
||||
@if (map.has-key($font-type-map, $font-type)) {
|
||||
$weight: map.get($font-type-map, $font-type);
|
||||
}
|
||||
// changing style property if the font-type value is Italic
|
||||
@if ($font-type == 'Italic') {
|
||||
$style: italic;
|
||||
}
|
||||
|
||||
// filling all the properties
|
||||
@font-face {
|
||||
font-family: $font-name;
|
||||
src: local($font-name),
|
||||
url('/font/#{$font-name-string}.woff2') format('woff2');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
font-display: swap;
|
||||
}
|
||||
}
|
||||
}
|
||||
////////////////////////////////////////////////////////////////
|
||||
// BREAKPOINTS
|
||||
////////////////////////////////////////////////////////////////
|
||||
// declaration of breakpoints
|
||||
// using em for accessibility reasons(see: https://zellwk.com/blog/media-query-units/)
|
||||
// 1em = 16px
|
||||
$breakpoints: (
|
||||
bp-1100: 68.75em,
|
||||
bp-900: 56.25em,
|
||||
bp-725: 45.32em,
|
||||
bp-550: 34.375em,
|
||||
bp-450: 28.125em,
|
||||
bp-400: 25em,
|
||||
bp-350: 21.875em,
|
||||
);
|
||||
|
||||
// mixin to handle known and unknown breakpoints:
|
||||
@mixin bp($given-breakpoint) {
|
||||
// just assigning the given value to a new variable since we're going to change it conditionally;
|
||||
$breakpoint: $given-breakpoint;
|
||||
// if $breakpoints map contains the given variable then getting it's value
|
||||
@if map.has-key($breakpoints, $breakpoint) {
|
||||
$breakpoint: map.get($breakpoints, $breakpoint);
|
||||
}
|
||||
// and then using it for media query. This will also work for straight out values(50em or 800px, for example)
|
||||
@media screen and (max-width: $breakpoint) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// VARIABLES
|
||||
////////////////////////////////////////////////////////////////
|
||||
// BASE COLOR DEFINITIONS:
|
||||
$clr-primary: #f3e3e2;
|
||||
$clr-secondary: #4d0011;
|
||||
$clr-tertiary: #0f2c67;
|
||||
$clr-alpha: #2f3542;
|
||||
$clr-beta: #485460;
|
||||
$clr-gamma: #ddd;
|
||||
// unused
|
||||
// $clr-quatenary: #232946;
|
||||
// $clr-delta: #1e272e;
|
||||
// $clr-epsilon: #ccc;
|
||||
// $clr-zeta: #eee;
|
||||
// VARIABLES MAPS:
|
||||
$misc-variables: (
|
||||
// 1) FONTS:
|
||||
ff-base: ('NunitoSans', sans-serif),
|
||||
ff-alt-alpha: ('Montserrat', sans-serif),
|
||||
fs-2000: 20rem,
|
||||
fs-1700: 17rem,
|
||||
fs-1500: 15rem,
|
||||
fs-1200: 12rem,
|
||||
fs-1000: 10rem,
|
||||
fs-400: 4rem,
|
||||
fs-350: 3.5rem,
|
||||
fs-320: 3.2rem,
|
||||
fs-300: 3rem,
|
||||
fs-280: 2.8rem,
|
||||
fs-250: 2.5rem,
|
||||
fs-220: 2.2rem,
|
||||
fs-200: 2rem,
|
||||
fs-180: 1.8rem,
|
||||
fs-160: 1.6rem,
|
||||
fs-140: 1.4rem,
|
||||
fs-120: 1.2rem,
|
||||
// 2) MISCELLANEOUS:
|
||||
border-radius: 0.5em,
|
||||
spacer-200: 2rem,
|
||||
spacer-050: 0.5rem,
|
||||
spacer-100: 1rem,
|
||||
spacer-300: 3rem,
|
||||
spacer-500: 5rem,
|
||||
spacer-800: 8rem,
|
||||
theme-swticher-rotation-unchecked: -180deg,
|
||||
theme-swticher-rotation-checked: 180deg
|
||||
);
|
||||
$themed-variables: (
|
||||
// BIG LAYOUTS:
|
||||
// 1) BASE:
|
||||
clr-base-bg:
|
||||
(
|
||||
light: color.scale($clr-primary, $lightness: 50%),
|
||||
// light: lighten($clr-primary, 5%),
|
||||
dark: color.scale($clr-tertiary, $lightness: -82%),
|
||||
),
|
||||
clr-base-heading: (
|
||||
light: darken($clr-tertiary, 9%),
|
||||
dark: color.scale($clr-primary, $lightness: -10%, $saturation: -70%),
|
||||
),
|
||||
clr-base-heading-alt-alpha: (
|
||||
light: initial,
|
||||
dark: initial,
|
||||
),
|
||||
clr-base-text: (
|
||||
light: $clr-alpha,
|
||||
dark: $clr-gamma,
|
||||
),
|
||||
clr-base-text-alt-alpha: (
|
||||
light: $clr-beta,
|
||||
dark: $clr-gamma,
|
||||
),
|
||||
clr-base-link: (
|
||||
light: color.scale($clr-tertiary, $lightness: 5%),
|
||||
dark: color.scale($clr-secondary, $lightness: 80%),
|
||||
),
|
||||
clr-base-link-hover: (
|
||||
light: color.scale($clr-tertiary, $lightness: 20%),
|
||||
dark: color.scale($clr-secondary, $lightness: 70%, $saturation: 90%),
|
||||
),
|
||||
// 2) HEADER & FOOTER(HF):
|
||||
clr-hf-bg:
|
||||
(
|
||||
light: color.scale($clr-primary, $lightness: -15%),
|
||||
// dark: color.scale($clr-primary, $lightness: -90%, $saturation: -50%),
|
||||
dark: color.scale($clr-tertiary, $lightness: -55%, $saturation: 80%),
|
||||
),
|
||||
clr-hf-logo: (
|
||||
light: color.scale($clr-secondary, $lightness: 12%),
|
||||
dark: lighten($clr-secondary, 50%),
|
||||
),
|
||||
clr-hf-text: (
|
||||
light: darken($clr-tertiary, 10%),
|
||||
dark: lighten($clr-primary, 3%),
|
||||
),
|
||||
clr-hf-text-alt-alpha: (
|
||||
light: color.scale($clr-alpha, $lightness: -10%),
|
||||
dark: $clr-gamma,
|
||||
),
|
||||
clr-hf-link: (
|
||||
light: color.scale($clr-tertiary, $lightness: 5%),
|
||||
dark: color.scale($clr-secondary, $lightness: 85%),
|
||||
),
|
||||
clr-hf-link-hover: (
|
||||
light: color.scale($clr-tertiary, $lightness: 15%, $saturation: 50%),
|
||||
dark: color.scale($clr-secondary, $lightness: 78%, $saturation: 95%),
|
||||
),
|
||||
// SMALLER COMPONENTS:
|
||||
// 3) CARD:
|
||||
clr-card-bg:
|
||||
(
|
||||
light: $clr-primary,
|
||||
dark: color.scale($clr-tertiary, $lightness: -45%, $saturation: 50%),
|
||||
),
|
||||
clr-card-bg-alt-alpha: (
|
||||
light: color.scale($clr-primary, $lightness: 30%),
|
||||
dark: color.scale($clr-tertiary, $lightness: -70%),
|
||||
),
|
||||
clr-card-heading: (
|
||||
light: color.scale($clr-tertiary, $lightness: -35%),
|
||||
dark: color.scale($clr-secondary, $lightness: 85%, $saturation: 0%),
|
||||
),
|
||||
clr-card-heading-alt-alpha: (
|
||||
light: color.scale($clr-tertiary, $lightness: -15%),
|
||||
dark: color.scale($clr-secondary, $lightness: 92%),
|
||||
),
|
||||
clr-card-text: (
|
||||
light: $clr-alpha,
|
||||
dark: color.scale($clr-primary, $lightness: 10%),
|
||||
),
|
||||
clr-card-text-alt-alpha: (
|
||||
light: $clr-beta,
|
||||
dark: color.scale($clr-beta, $lightness: 40%),
|
||||
),
|
||||
clr-card-icon: (
|
||||
light: lighten($clr-secondary, 10%),
|
||||
dark: color.scale($clr-secondary, $lightness: 60%),
|
||||
),
|
||||
clr-card-icon-alt-alpha: (
|
||||
light: lighten($clr-beta, 5%),
|
||||
dark: color.scale($clr-beta, $lightness: 5%),
|
||||
),
|
||||
clr-card-icon-alt-beta: (
|
||||
light: $clr-tertiary,
|
||||
dark: color.scale($clr-secondary, $lightness: 60%),
|
||||
),
|
||||
clr-card-link: (
|
||||
light: $clr-secondary,
|
||||
dark: color.scale($clr-secondary, $lightness: 75%),
|
||||
),
|
||||
clr-card-link-hover: (
|
||||
light: lighten($clr-secondary, 10%),
|
||||
dark: color.scale($clr-secondary, $lightness: 80%, $saturation: 90%),
|
||||
),
|
||||
clr-card-link-alt-alpha: (
|
||||
light: color.scale($clr-tertiary, $lightness: 5%),
|
||||
dark: color.scale($clr-secondary, $lightness: 80%),
|
||||
),
|
||||
clr-card-link-hover-alt-alpha: (
|
||||
light: color.scale($clr-tertiary, $lightness: 20%),
|
||||
dark: color.scale($clr-secondary, $lightness: 70%, $saturation: 90%),
|
||||
),
|
||||
gradient-card-bg: (
|
||||
light:
|
||||
linear-gradient(
|
||||
to top,
|
||||
rgba($clr-primary, 1),
|
||||
rgba(lighten($clr-secondary, 10%), 0.5)
|
||||
),
|
||||
dark:
|
||||
linear-gradient(
|
||||
to top,
|
||||
rgba(color.scale($clr-tertiary, $lightness: -45%, $saturation: 50%), 1),
|
||||
rgba(color.scale($clr-primary, $lightness: -90%), 0.8)
|
||||
),
|
||||
),
|
||||
clr-card-border: (
|
||||
light: darken($clr-secondary, 5%),
|
||||
dark: color.scale($clr-secondary, $lightness: 60%),
|
||||
),
|
||||
// 4) BUTTONS:
|
||||
clr-button:
|
||||
(
|
||||
light: $clr-secondary,
|
||||
dark: lighten($clr-secondary, 3%),
|
||||
),
|
||||
clr-button-hover: (
|
||||
light: lighten($clr-secondary, 3%),
|
||||
dark: lighten($clr-secondary, 6%),
|
||||
),
|
||||
clr-button-text: (
|
||||
light: lighten($clr-primary, 5%),
|
||||
dark: lighten($clr-primary, 10%),
|
||||
),
|
||||
clr-button-alt-alpha: (
|
||||
light: lighten($clr-tertiary, 5%),
|
||||
dark: color.scale($clr-tertiary, $lightness: -15%),
|
||||
),
|
||||
clr-button-hover-alt-alpha: (
|
||||
light: lighten($clr-tertiary, 15%),
|
||||
dark: color.scale($clr-tertiary, $lightness: 5%),
|
||||
),
|
||||
clr-button-text-alt-alpha: (
|
||||
light: color.scale($clr-primary, $lightness: 50%),
|
||||
dark: color.scale($clr-primary, $lightness: 50%),
|
||||
),
|
||||
// MISCELLANEOUS
|
||||
// 5) SHADOWS:
|
||||
shadow-button:
|
||||
(
|
||||
light: 3px 3px 2px rgba(#000, 0.4),
|
||||
dark: 3px 3px 2px rgba(#000, 1),
|
||||
),
|
||||
shadow-button-hover: (
|
||||
light: 7px 7px 3px rgba(#000, 0.3),
|
||||
dark: 7px 7px 3px rgba(#000, 0.6),
|
||||
),
|
||||
shadow-button-active: (
|
||||
light: 6px 6px 2px rgba(#000, 0.5),
|
||||
dark: 6px 6px 2px rgba(#000, 0.8),
|
||||
),
|
||||
shadow-card: (
|
||||
light: 0 0.5rem 1rem rgba(#000, 0.3),
|
||||
dark: 2px 2px 3px 2px rgba(#000, 1),
|
||||
),
|
||||
// 6) THEME SWITCHER ICON
|
||||
clr-theme-switcher-unchecked:
|
||||
(
|
||||
light: $clr-tertiary,
|
||||
dark: lighten($clr-secondary, 70%),
|
||||
),
|
||||
clr-theme-switcher-checked: (
|
||||
light: $clr-tertiary,
|
||||
dark: lighten($clr-secondary, 70%),
|
||||
),
|
||||
// 7) SCROLLBAR:
|
||||
clr-scrollbar-track:
|
||||
(
|
||||
light: transparent,
|
||||
dark: transparent,
|
||||
),
|
||||
clr-scrollbar-thumb: (
|
||||
light: $clr-tertiary,
|
||||
dark: $clr-primary,
|
||||
),
|
||||
clr-scrollbar-thumb-hover: (
|
||||
light: $clr-tertiary,
|
||||
dark: lighten($clr-primary, 10%),
|
||||
),
|
||||
// 8) SELECTION:
|
||||
clr-selection-bg:
|
||||
(
|
||||
light: color.scale($clr-secondary, $lightness: 5%),
|
||||
dark: color.scale($clr-secondary, $lightness: 90%),
|
||||
),
|
||||
clr-selection-text: (
|
||||
light: color.scale($clr-primary, $lightness: 15%),
|
||||
dark: color.scale($clr-tertiary, $lightness: -20%),
|
||||
)
|
||||
);
|
178
views/sass/_base.scss
Normal file
178
views/sass/_base.scss
Normal file
@ -0,0 +1,178 @@
|
||||
// importing as scss vars
|
||||
@use 'abstracts' as *;
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// TYPOGRAPHY
|
||||
///////////////////////////////////////////////////////////////
|
||||
@include font('Montserrat', 'Italic', 'Light', 'Regular', 'SemiBold', 'Bold');
|
||||
@include font('NunitoSans', 'Italic', 'Light', 'Regular', 'SemiBold', 'Bold');
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
// RESET RULES
|
||||
///////////////////////////////////////////////////////////////
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
font-size: 62.5%;
|
||||
|
||||
@include bp(bp-725) {
|
||||
font-size: 58%;
|
||||
}
|
||||
|
||||
@include bp(bp-350) {
|
||||
font-size: 55%;
|
||||
}
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: inherit;
|
||||
text-rendering: optimizeLegibility;
|
||||
// transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
font-size: 1.6rem;
|
||||
background-color: var(--clr-base-bg);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// BASE STYLES
|
||||
////////////////////////////////////////////////////////////////
|
||||
// initally declaring light-mode variables
|
||||
:root {
|
||||
@include misc-css-variables;
|
||||
@include themed-css-variables(light);
|
||||
|
||||
// dark mode declaration
|
||||
&[theme='dark'] {
|
||||
@include themed-css-variables(dark);
|
||||
}
|
||||
}
|
||||
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-rows: min-content 1fr min-content;
|
||||
|
||||
background-color: var(--clr-base-bg);
|
||||
color: var(--clr-base-text);
|
||||
font-family: var(--ff-base);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// VANITY
|
||||
////////////////////////////////////////////////////////////////
|
||||
// selection
|
||||
|
||||
::selection {
|
||||
background-color: var(--clr-selection-bg);
|
||||
color: var(--clr-selection-text);
|
||||
}
|
||||
|
||||
// scrollbar
|
||||
@supports (scrollbar-width: auto) {
|
||||
* {
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: var(--clr-scrollbar-thumb) var(--clr-scrollbar-track);
|
||||
// scrollba
|
||||
}
|
||||
}
|
||||
@supports not (scrollbar-width: auto) {
|
||||
::-webkit-scrollbar {
|
||||
width: 1rem; // for vertical scrollbars
|
||||
height: 1rem; // horizontal scrollbars
|
||||
border-radius: 100rem;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: var(--clr-scrollbar-track);
|
||||
// border-radius: 100vw;
|
||||
// margin-block: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: var(--clr-scrollbar-thumb);
|
||||
border-radius: 100vw;
|
||||
// margin: 2px;
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
&:hover {
|
||||
background-color: var(--clr-scrollbar-thumb-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
////////////////////////////////////////////////////////////////
|
||||
// THEME SWITCHER
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
.theme-switcher {
|
||||
&__input {
|
||||
position: absolute;
|
||||
clip-path: circle(1px);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
&__label {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
height: var(--fs-200);
|
||||
width: var(--fs-200);
|
||||
|
||||
fill: var(--clr-theme-switcher-unchecked);
|
||||
transform: rotateZ(var(--theme-swticher-rotation-unchecked));
|
||||
|
||||
transition: all 0.2s ease;
|
||||
|
||||
@include bp(bp-400) {
|
||||
height: var(--fs-160);
|
||||
width: var(--fs-160);
|
||||
}
|
||||
}
|
||||
|
||||
// new selector, same as writing:
|
||||
// &__label:hover, &__input:focus ~ .page &__label
|
||||
:is(&__label:hover, &__input:focus ~ .page &__label) {
|
||||
box-shadow: 0px 0px 1rem currentColor, 0px 0px 1.5rem currentColor;
|
||||
}
|
||||
|
||||
&__input:checked ~ .page &__icon {
|
||||
fill: var(--clr-theme-switcher-checked);
|
||||
transform: rotateZ(var(--theme-swticher-rotation-checked));
|
||||
}
|
||||
}
|
||||
|
||||
// if js is disabled, applying vars from on .page instead of on body.
|
||||
// progressive degradement i guess
|
||||
:root:not([js='enabled']) {
|
||||
// when user checks the theme-switcher, replacing root styles(light) with dark styles(on the .page)
|
||||
.theme-switcher__input:checked ~ .page {
|
||||
@include themed-css-variables(dark);
|
||||
}
|
||||
|
||||
// if the user prefers the dark scheme, then using dark styles on root
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@include themed-css-variables(dark);
|
||||
|
||||
// and when user checks the theme-switcher, applying light styles on .page
|
||||
.theme-switcher {
|
||||
&__input:checked ~ .page {
|
||||
@include themed-css-variables(light);
|
||||
}
|
||||
|
||||
&__input:checked ~ .page &__icon {
|
||||
fill: var(--clr-theme-switcher-checked);
|
||||
transform: rotateZ(var(--theme-swticher-rotation-checked));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
804
views/sass/_components.scss
Normal file
804
views/sass/_components.scss
Normal file
@ -0,0 +1,804 @@
|
||||
// importing as scss vars
|
||||
@use 'abstracts' as *;
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// HEADINGS
|
||||
////////////////////////////////////////////////////////////////
|
||||
.heading {
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-base-heading);
|
||||
|
||||
&__primary {
|
||||
font-size: var(--fs-400);
|
||||
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-350);
|
||||
}
|
||||
@include bp(bp-450) {
|
||||
font-size: calc(var(--fs-350) - 0.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
&__secondary {
|
||||
font-size: var(--fs-350);
|
||||
font-weight: 600;
|
||||
|
||||
@include bp(bp-550) {
|
||||
font-size: calc(var(--fs-350) - 0.5rem);
|
||||
}
|
||||
@include bp(bp-450) {
|
||||
font-size: var(--fs-250);
|
||||
}
|
||||
}
|
||||
|
||||
&__tertiary {
|
||||
font-size: var(--fs-250);
|
||||
color: var(--clr-base-heading-alt-alpha);
|
||||
}
|
||||
|
||||
&__quatenary {
|
||||
color: var(--clr-base-heading-alt-alpha);
|
||||
font-size: var(--fs-220);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// BUTTONS
|
||||
////////////////////////////////////////////////////////////////
|
||||
.button {
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 600;
|
||||
letter-spacing: 1px;
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--shadow-button);
|
||||
border: none;
|
||||
outline: none;
|
||||
|
||||
transition: all 0.2s ease-in-out;
|
||||
|
||||
&__primary {
|
||||
font-size: var(--fs-200);
|
||||
padding: 2rem 5rem;
|
||||
|
||||
@include bp(bp-725) {
|
||||
font-size: var(--fs-180);
|
||||
padding: 2rem 4rem;
|
||||
}
|
||||
|
||||
@include bp(bp-450) {
|
||||
font-size: var(--fs-160);
|
||||
padding: 1.5rem 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__secondary {
|
||||
font-size: var(--fs-140);
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--shadow-button-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-button-active);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// CARD
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(60rem, 1fr));
|
||||
gap: var(--spacer-500);
|
||||
// align-items: center;
|
||||
|
||||
@include bp(bp-725) {
|
||||
grid-template-columns: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: 18rem minmax(25rem, 1fr);
|
||||
gap: var(--spacer-100);
|
||||
|
||||
background: var(--clr-card-bg);
|
||||
border-radius: var(--border-radius);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-card);
|
||||
|
||||
&__image-box {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
text-align: center;
|
||||
background-position: top;
|
||||
background-size: cover;
|
||||
|
||||
@include bp(bp-725) {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
content: '';
|
||||
inset: 0; // nice property instead of top, left, etc.
|
||||
background-image: var(--gradient-card-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
&__image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
|
||||
@include bp(bp-725) {
|
||||
overflow: hidden;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
z-index: 3;
|
||||
|
||||
margin-top: 1rem;
|
||||
padding: 1rem;
|
||||
outline: 3px solid var(--clr-card-border);
|
||||
outline-offset: -0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__about {
|
||||
margin: 2rem;
|
||||
display: grid;
|
||||
grid-template-rows: min-content repeat(5, auto);
|
||||
grid-auto-rows: auto;
|
||||
gap: 0.5rem;
|
||||
color: var(--clr-card-text);
|
||||
}
|
||||
|
||||
&__title {
|
||||
color: var(--clr-card-heading);
|
||||
font-size: var(--fs-250);
|
||||
align-self: center;
|
||||
|
||||
@include bp(bp-725) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include bp(bp-450) {
|
||||
font-size: var(--fs-220);
|
||||
}
|
||||
}
|
||||
|
||||
&__genres {
|
||||
align-self: end;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@include bp(bp-725) {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__genre {
|
||||
text-decoration: none;
|
||||
color: var(--clr-card-link);
|
||||
text-transform: uppercase;
|
||||
font-size: var(--fs-120);
|
||||
font-weight: 900;
|
||||
|
||||
transition: all 0.2s;
|
||||
|
||||
&:not(:last-of-type) {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-card-link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&__rating-box {
|
||||
align-self: start;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, max-content);
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
|
||||
color: var(--clr-card-text-alt-alpha);
|
||||
font-size: var(--fs-140);
|
||||
|
||||
@include bp(bp-725) {
|
||||
justify-self: center;
|
||||
grid-template-columns: repeat(2, max-content);
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__rating {
|
||||
display: flex;
|
||||
|
||||
@include bp(bp-725) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
&__rating-star {
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
|
||||
&--active {
|
||||
fill: var(--clr-card-icon);
|
||||
}
|
||||
|
||||
&--inactive {
|
||||
fill: var(--clr-card-icon-alt-alpha);
|
||||
}
|
||||
|
||||
&:not(:last-of-type) {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
&__rating-num {
|
||||
&::before {
|
||||
content: '(' attr(data-movie-rating) ')';
|
||||
|
||||
@include bp(bp-725) {
|
||||
content: attr(data-movie-rating) ' rating';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__votes {
|
||||
// font-size: 1.4rem;
|
||||
}
|
||||
|
||||
&__not-rated {
|
||||
// font-size: 1.2rem;
|
||||
color: var(--clr-card-text-alt-alpha);
|
||||
// text-transform: uppercase;
|
||||
|
||||
@include bp(bp-725) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__description {
|
||||
align-self: center;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
// &__actors {
|
||||
// }
|
||||
|
||||
&__actor {
|
||||
}
|
||||
|
||||
&__actor-text,
|
||||
&__director-text {
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
}
|
||||
|
||||
// &__directors {
|
||||
// }
|
||||
|
||||
&__director {
|
||||
}
|
||||
|
||||
// &__director-text {
|
||||
// }
|
||||
|
||||
&__link {
|
||||
align-self: end;
|
||||
justify-self: end;
|
||||
// margin-bottom: 1rem;
|
||||
|
||||
font-size: var(--fs-120);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
text-decoration: none;
|
||||
color: var(--clr-card-link);
|
||||
|
||||
backface-visibility: hidden;
|
||||
@include underliner(var(--clr-card-link-hover), transparent, false);
|
||||
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
color: var(--clr-card-link-hover);
|
||||
}
|
||||
|
||||
@include bp(bp-725) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__link-arrow {
|
||||
padding-left: 3px;
|
||||
display: inline-block;
|
||||
transition: all 0.4s ease;
|
||||
}
|
||||
|
||||
&__link:hover &__link-arrow {
|
||||
transform: translateX(5px);
|
||||
}
|
||||
|
||||
@include bp(bp-725) {
|
||||
min-width: 28rem;
|
||||
width: 70vw;
|
||||
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: 20rem auto;
|
||||
}
|
||||
|
||||
@include bp(bp-450) {
|
||||
min-width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// FEATURES
|
||||
////////////////////////////////////////////////////////////////
|
||||
.features {
|
||||
display: grid;
|
||||
grid-template-rows: max-content auto;
|
||||
grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
|
||||
gap: var(--spacer-500);
|
||||
|
||||
@include bp(bp-550) {
|
||||
gap: var(--spacer-300);
|
||||
grid-template-columns: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.feature {
|
||||
// align-self: center;
|
||||
padding: 2rem;
|
||||
display: grid;
|
||||
gap: var(--spacer-200) var(--spacer-100);
|
||||
align-items: center;
|
||||
grid-template-columns: max-content auto;
|
||||
grid-auto-rows: min-content;
|
||||
|
||||
background: var(--clr-card-bg);
|
||||
box-shadow: var(--shadow-card);
|
||||
border-radius: 5px;
|
||||
|
||||
&__icon {
|
||||
height: 3.5rem;
|
||||
width: 3.5rem;
|
||||
fill: var(--clr-card-icon-alt-beta);
|
||||
|
||||
@include bp(bp-550) {
|
||||
height: 3rem;
|
||||
width: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__title {
|
||||
// align-self: center;
|
||||
font-size: var(--fs-220);
|
||||
color: var(--clr-card-heading);
|
||||
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-200);
|
||||
}
|
||||
}
|
||||
|
||||
&__text {
|
||||
grid-column: -2 / -1;
|
||||
align-self: start;
|
||||
}
|
||||
@include bp(bp-550) {
|
||||
gap: var(--spacer-100);
|
||||
// gap: var(--spacer-300);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// FAQs
|
||||
////////////////////////////////////////////////////////////////
|
||||
.faqs {
|
||||
display: grid;
|
||||
gap: var(--spacer-300);
|
||||
}
|
||||
|
||||
.faq {
|
||||
border-left: 2px solid var(--clr-card-icon-alt-beta);
|
||||
|
||||
&__question {
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
cursor: pointer;
|
||||
|
||||
background-color: var(--clr-card-bg);
|
||||
// font-size: 1.8rem;
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
|
||||
// for the plus sign as the default marker can't be customised much
|
||||
&::before {
|
||||
display: inline-block;
|
||||
content: '\00d7'; // x sign
|
||||
margin-right: 5px;
|
||||
font-weight: 700;
|
||||
color: var(--clr-card-icon-alt-beta);
|
||||
|
||||
transform: rotatez(-135deg);
|
||||
|
||||
transition: all 0.2s ease-out;
|
||||
}
|
||||
}
|
||||
|
||||
&__answer {
|
||||
padding: 1rem;
|
||||
background-color: var(--clr-card-bg-alt-alpha);
|
||||
}
|
||||
|
||||
&[open] &__question::before {
|
||||
transform: rotate(0);
|
||||
}
|
||||
|
||||
&[open] &__answer {
|
||||
animation: slide-down 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration: none;
|
||||
// margin: 3px 0.4rem 0 0.4rem;
|
||||
color: var(--clr-card-link-alt-alpha);
|
||||
|
||||
@include underliner(
|
||||
var(--clr-card-link-hover-alt-alpha),
|
||||
var(--clr-card-link-alt-alpha),
|
||||
false
|
||||
);
|
||||
|
||||
transition: all 0.2s;
|
||||
&:hover {
|
||||
color: var(--clr-card-link-hover-alt-alpha);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// BASIC
|
||||
////////////////////////////////////////////////////////////////
|
||||
.basic {
|
||||
display: grid;
|
||||
margin-bottom: var(--spacer-200);
|
||||
grid-template-columns: 30rem minmax(40rem, 1fr);
|
||||
gap: var(--spacer-100);
|
||||
|
||||
background: var(--clr-card-bg);
|
||||
border-radius: var(--border-radius);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-card);
|
||||
|
||||
&__image-box {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
text-align: center;
|
||||
background-position: top;
|
||||
background-size: cover;
|
||||
|
||||
@include bp(bp-725) {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
content: '';
|
||||
inset: 0; // nice property instead of top, left, etc.
|
||||
background-image: var(--gradient-card-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
&__image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
|
||||
@include bp(bp-725) {
|
||||
overflow: hidden;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
z-index: 3;
|
||||
|
||||
margin-top: 1rem;
|
||||
padding: 1rem;
|
||||
outline: 3px solid var(--clr-card-border);
|
||||
outline-offset: -0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__image-na {
|
||||
fill: var(--clr-card-icon-alt-alpha);
|
||||
height: 40%;
|
||||
width: 40%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
&__about {
|
||||
margin: 1.5rem;
|
||||
display: grid;
|
||||
grid-template-rows: min-content;
|
||||
grid-auto-rows: auto;
|
||||
|
||||
gap: 1rem;
|
||||
color: var(--clr-card-text);
|
||||
|
||||
@include bp(bp-900) {
|
||||
// grid-template-rows: min-content min-content 1fr;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
@include bp(bp-725) {
|
||||
gap: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
%list-items:not(:last-of-type)::after {
|
||||
margin-right: 0.6rem;
|
||||
display: inline-block;
|
||||
content: ',';
|
||||
}
|
||||
&__title {
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-card-heading);
|
||||
font-size: var(--fs-400);
|
||||
font-weight: 600;
|
||||
align-self: center;
|
||||
line-height: 1;
|
||||
|
||||
@include bp(bp-900) {
|
||||
font-size: var(--fs-350);
|
||||
}
|
||||
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-300);
|
||||
}
|
||||
@include bp(bp-450) {
|
||||
font-size: var(--fs-300);
|
||||
}
|
||||
}
|
||||
|
||||
&__genres {
|
||||
align-self: end;
|
||||
|
||||
@include bp(bp-725) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&__genre-heading,
|
||||
&__director-heading,
|
||||
&__writer-heading {
|
||||
font-weight: 600;
|
||||
// font-size: var(--fs-180);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
}
|
||||
&__genre {
|
||||
@extend %list-items;
|
||||
}
|
||||
|
||||
&__metadata-data {
|
||||
// font-size: var(--fs-180);
|
||||
// line-height: 1;
|
||||
|
||||
&:not(:last-of-type)::after {
|
||||
display: inline-block;
|
||||
content: '\00b7';
|
||||
margin: 0 5px;
|
||||
font-weight: 900;
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-size: var(--fs-200);
|
||||
color: var(--clr-card-text-alt-alpha);
|
||||
}
|
||||
}
|
||||
|
||||
&__stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, max-content);
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
gap: var(--spacer-200);
|
||||
|
||||
// margin: 0.5rem 0;
|
||||
color: var(--clr-card-text);
|
||||
|
||||
@include bp(bp-725) {
|
||||
justify-self: center;
|
||||
}
|
||||
@include bp(bp-350) {
|
||||
gap: var(--spacer-100);
|
||||
}
|
||||
}
|
||||
|
||||
&__rating,
|
||||
&__votes,
|
||||
&__popularity {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, max-content);
|
||||
font-size: 3rem;
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
gap: 0.5rem 1rem;
|
||||
|
||||
@include bp(bp-900) {
|
||||
gap: 0 1rem;
|
||||
font-size: var(--fs-280);
|
||||
}
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-250);
|
||||
}
|
||||
}
|
||||
&__rating-num,
|
||||
&__votes-num,
|
||||
&__popularity-num {
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
height: 0.8em;
|
||||
width: 0.8em;
|
||||
}
|
||||
|
||||
&__rating-text,
|
||||
&__votes-text,
|
||||
&__popularity-text {
|
||||
grid-column: 1 / -1;
|
||||
// justify-self: start;
|
||||
font-size: 0.5em;
|
||||
color: var(--clr-card-text-alt-alpha);
|
||||
// line-height: 0.5;
|
||||
}
|
||||
&__icon {
|
||||
display: grid;
|
||||
justify-self: end;
|
||||
align-self: center;
|
||||
fill: var(--clr-card-icon);
|
||||
}
|
||||
|
||||
&__no-rating-text {
|
||||
margin-top: 1rem;
|
||||
font-size: var(--fs-140);
|
||||
color: var(--clr-card-text);
|
||||
}
|
||||
|
||||
&__description-heading {
|
||||
font-size: var(--fs-200);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 600;
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-180);
|
||||
}
|
||||
}
|
||||
|
||||
&__description {
|
||||
// background: red;
|
||||
padding: 1rem 0;
|
||||
align-self: center;
|
||||
|
||||
@include bp(bp-900) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__director {
|
||||
@extend %list-items;
|
||||
}
|
||||
|
||||
&__writer {
|
||||
@extend %list-items;
|
||||
}
|
||||
|
||||
@include bp(bp-900) {
|
||||
grid-template-columns: 20rem minmax(35rem, 1fr);
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
@include bp(bp-725) {
|
||||
min-width: 28rem;
|
||||
// width: 90vw;
|
||||
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: 25rem auto;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// ACTORS
|
||||
////////////////////////////////////////////////////////////////
|
||||
.actors {
|
||||
display: flex;
|
||||
overflow: auto;
|
||||
gap: var(--spacer-200);
|
||||
// scroll-snap-type: y mandatory;
|
||||
padding: var(--spacer-200) var(--spacer-100);
|
||||
}
|
||||
|
||||
.actor {
|
||||
list-style: none;
|
||||
flex: 1 0 15rem;
|
||||
|
||||
display: grid;
|
||||
max-height: 30rem;
|
||||
max-width: 30rem;
|
||||
// scroll-snap-align: start;
|
||||
|
||||
&__details {
|
||||
display: grid;
|
||||
grid-template-rows: minmax(10rem, 65%) repeat(2, min-content);
|
||||
gap: var(--spacer-050);
|
||||
overflow: hidden;
|
||||
|
||||
text-align: center;
|
||||
background-color: var(--clr-card-bg);
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
&__image {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
}
|
||||
|
||||
&__image-na {
|
||||
fill: var(--clr-card-icon-alt-alpha);
|
||||
height: 60%;
|
||||
width: 60%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
&__name {
|
||||
// font-size: var(--fs-180);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 600;
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
}
|
||||
|
||||
&__character-name {
|
||||
font-size: var(--fs-140);
|
||||
color: var(--clr-card-text-alt-alpha);
|
||||
}
|
||||
}
|
||||
////////////////////////////////////////////////////////////////
|
||||
// storyline
|
||||
////////////////////////////////////////////////////////////////
|
||||
.storyline,
|
||||
.boxoffice,
|
||||
.technical,
|
||||
.details {
|
||||
display: grid;
|
||||
gap: var(--spacer-050);
|
||||
}
|
290
views/sass/_layout.scss
Normal file
290
views/sass/_layout.scss
Normal file
@ -0,0 +1,290 @@
|
||||
// importing as scss vars
|
||||
@use 'abstracts' as *;
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// HEADER
|
||||
////////////////////////////////////////////////////////////////
|
||||
.header {
|
||||
// color: #fff;
|
||||
background: var(--clr-hf-bg);
|
||||
// min-height: 10vh;
|
||||
padding: 3rem 5rem;
|
||||
// position: relative;
|
||||
// border-radius: 0 0 3rem 3rem;
|
||||
|
||||
&__nav-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__logo-box {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: var(--fs-200);
|
||||
|
||||
@include bp(bp-400) {
|
||||
font-size: var(--fs-180);
|
||||
}
|
||||
}
|
||||
|
||||
&__logo {
|
||||
height: 1.75em;
|
||||
width: 1.75em;
|
||||
fill: var(--clr-hf-logo);
|
||||
}
|
||||
|
||||
&__logo-text {
|
||||
margin-left: 0.2em;
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 700;
|
||||
color: var(--clr-hf-logo);
|
||||
}
|
||||
|
||||
&__nav,
|
||||
&__nav-links {
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__nav-item {
|
||||
list-style: none;
|
||||
margin-right: var(--spacer-500);
|
||||
|
||||
@include bp(bp-550) {
|
||||
margin-right: var(--spacer-300);
|
||||
}
|
||||
|
||||
@include bp(bp-450) {
|
||||
&:last-of-type {
|
||||
display: none;
|
||||
}
|
||||
// &:not(:first-of-type) {
|
||||
// display: none;
|
||||
// }
|
||||
}
|
||||
@include bp(bp-400) {
|
||||
margin-right: var(--spacer-200);
|
||||
}
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration: none;
|
||||
font-size: var(--fs-180);
|
||||
// text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
color: var(--clr-hf-link);
|
||||
@include underliner(var(--clr-hf-link-hover), transparent, false);
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-hf-link-hover);
|
||||
}
|
||||
|
||||
@include bp(bp-400) {
|
||||
font-size: var(--fs-160);
|
||||
}
|
||||
}
|
||||
|
||||
&__text-box {
|
||||
display: grid;
|
||||
grid-template-rows: 3fr max-content 2fr 1fr; // 1fr is empty row. cause i don't like messing with margins and stuff
|
||||
gap: var(--spacer-300);
|
||||
// padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__main-text {
|
||||
align-self: end;
|
||||
font-weight: 700;
|
||||
font-size: var(--fs-400);
|
||||
color: var(--clr-hf-text);
|
||||
|
||||
@include bp(bp-725) {
|
||||
font-size: var(--fs-350);
|
||||
}
|
||||
|
||||
@include bp(bp-450) {
|
||||
font-size: var(--fs-300);
|
||||
}
|
||||
}
|
||||
|
||||
&__sub-text {
|
||||
font-size: var(--fs-200);
|
||||
color: var(--clr-hf-text-alt-alpha);
|
||||
font-weight: 600;
|
||||
|
||||
@include bp(bp-725) {
|
||||
font-size: var(--fs-180);
|
||||
}
|
||||
}
|
||||
|
||||
&__sub-text-links {
|
||||
text-decoration: none;
|
||||
color: var(--clr-hf-link);
|
||||
@include underliner(var(--clr-hf-link-hover), var(--clr-hf-link), false);
|
||||
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-hf-link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&__button {
|
||||
justify-self: center;
|
||||
align-self: center;
|
||||
color: var(--clr-button-text);
|
||||
background-color: var(--clr-button);
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
background-color: var(--clr-button-hover);
|
||||
}
|
||||
}
|
||||
|
||||
@include bp(bp-725) {
|
||||
padding: 3rem 2rem;
|
||||
}
|
||||
@include bp(bp-450) {
|
||||
padding: 2rem;
|
||||
}
|
||||
@include bp(bp-350) {
|
||||
padding: 2rem var(--spacer-100);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// FOOTER
|
||||
////////////////////////////////////////////////////////////////
|
||||
.footer {
|
||||
padding: 5rem 10rem;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: var(--spacer-300);
|
||||
|
||||
background: var(--clr-hf-bg);
|
||||
|
||||
&__logo-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
@include bp(bp-450) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__logo {
|
||||
height: 8rem;
|
||||
width: 8rem;
|
||||
fill: var(--clr-hf-logo);
|
||||
|
||||
@include bp(bp-725) {
|
||||
height: 6rem;
|
||||
width: 6rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__logo-text {
|
||||
// letter-spacing: 2px;
|
||||
padding-top: 0.5rem;
|
||||
font-size: var(--fs-350);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 700;
|
||||
color: var(--clr-hf-logo);
|
||||
|
||||
@include bp(bp-725) {
|
||||
font-size: var(--fs-250);
|
||||
}
|
||||
}
|
||||
|
||||
&__nav {
|
||||
justify-self: stretch;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 3rem;
|
||||
|
||||
@include bp(bp-725) {
|
||||
gap: 2rem;
|
||||
}
|
||||
@include bp(bp-550) {
|
||||
display: grid;
|
||||
}
|
||||
}
|
||||
|
||||
&__nav-item {
|
||||
flex: 1 0 10rem;
|
||||
list-style: none;
|
||||
text-align: center;
|
||||
font-size: var(--fs-180);
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration: none;
|
||||
color: var(--clr-hf-link);
|
||||
font-weight: 600;
|
||||
|
||||
@include underliner(var(--clr-hf-link-hover), transparent, false);
|
||||
|
||||
transition: all 0.2s;
|
||||
|
||||
&--active {
|
||||
color: var(--clr-hf-link-hover);
|
||||
border-bottom: 2px solid var(--clr-hf-link-hover);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-hf-link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&__text {
|
||||
// align-self: center;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-content: space-between;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
font-size: var(--fs-180);
|
||||
color: var(--clr-hf-text);
|
||||
}
|
||||
|
||||
&__name {
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@include bp(bp-725) {
|
||||
padding: 5rem;
|
||||
}
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding: 4rem 2rem;
|
||||
}
|
||||
|
||||
@include bp(bp-400) {
|
||||
gap: var(--spacer-200);
|
||||
padding: var(--spacer-200);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// MAIN
|
||||
////////////////////////////////////////////////////////////////
|
||||
.main {
|
||||
// max-width: 200rem;
|
||||
// margin-inline: auto;
|
||||
padding: 2rem;
|
||||
|
||||
@include bp(bp-450) {
|
||||
padding: 2rem 1.5rem;
|
||||
}
|
||||
}
|
642
views/sass/_pages.scss
Normal file
642
views/sass/_pages.scss
Normal file
@ -0,0 +1,642 @@
|
||||
// importing as scss vars
|
||||
@use 'abstracts' as *;
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// MOVIES PAGE
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
.movies {
|
||||
&__heading {
|
||||
padding-top: var(--spacer-500);
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__container {
|
||||
min-height: 100vh;
|
||||
padding: var(--spacer-500);
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__go-to-page {
|
||||
}
|
||||
|
||||
&__button {
|
||||
background-color: var(--clr-button-go2page-bg);
|
||||
color: var(--clr-button-go2page-text);
|
||||
}
|
||||
}
|
||||
|
||||
.go-to-page {
|
||||
margin: 3rem 5rem;
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
gap: 5rem;
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
|
||||
&__link {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
height: 3rem;
|
||||
width: 3rem;
|
||||
fill: var(--clr-button-alt-alpha);
|
||||
}
|
||||
|
||||
&__info {
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
// background-color: rebeccapurple;
|
||||
color: var(--clr-base-text);
|
||||
font-size: var(--fs-180);
|
||||
}
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding-top: 3rem;
|
||||
gap: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// OVERVIEW PAGE
|
||||
////////////////////////////////////////////////////////////////
|
||||
.overview {
|
||||
&__nav-box {
|
||||
padding: 5rem 2rem;
|
||||
|
||||
@include bp(bp-725) {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding: 2rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__nav-heading {
|
||||
padding-bottom: var(--spacer-300);
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&__nav {
|
||||
padding: 0 2rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: var(--spacer-100);
|
||||
// overflow-x: scroll;
|
||||
|
||||
@include bp(bp-725) {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__nav-item {
|
||||
list-style: none;
|
||||
flex-grow: 1; // to make genres appearing on last row fill it completely
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__nav-link {
|
||||
display: block; // makes the whole nav-item clickable,not just the text
|
||||
text-decoration: none;
|
||||
padding: 1rem;
|
||||
background-color: var(--clr-button-alt-alpha);
|
||||
color: var(--clr-button-text-alt-alpha);
|
||||
border-radius: 5px;
|
||||
// box-shadow: var(--shadow-button);
|
||||
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--clr-button-alt-alpha-hover);
|
||||
color: var(--clr-button-text-alt-alpha);
|
||||
}
|
||||
}
|
||||
|
||||
&__popular {
|
||||
padding: 5rem;
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding: 5rem 2rem;
|
||||
}
|
||||
|
||||
@include bp(bp-450) {
|
||||
padding: 5rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__popular-heading {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
padding-bottom: var(--spacer-300);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// ABOUT PAGE
|
||||
////////////////////////////////////////////////////////////////
|
||||
.about {
|
||||
padding-top: var(--spacer-500);
|
||||
|
||||
&__header {
|
||||
height: 100vh;
|
||||
|
||||
display: grid;
|
||||
grid-template-rows: min-content;
|
||||
grid-auto-rows: auto;
|
||||
}
|
||||
|
||||
&__features {
|
||||
padding: 6rem;
|
||||
|
||||
// display: grid;
|
||||
// grid-template-rows: max-content auto;
|
||||
// grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
|
||||
// gap: 6rem;
|
||||
// padding: 6rem;
|
||||
|
||||
@include bp(bp-450) {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__features-heading {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
padding-bottom: var(--spacer-500);
|
||||
}
|
||||
|
||||
&__faqs {
|
||||
// display: grid;
|
||||
padding: 6rem;
|
||||
max-width: 120rem;
|
||||
margin: 0 auto;
|
||||
|
||||
@include bp(bp-450) {
|
||||
padding: 5rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__faqs-heading {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: var(--spacer-500);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// PRIVACY
|
||||
////////////////////////////////////////////////////////////////
|
||||
.privacy {
|
||||
max-width: 120rem;
|
||||
margin-inline: auto;
|
||||
padding: var(--spacer-800) var(--spacer-500);
|
||||
display: grid;
|
||||
gap: var(--spacer-300);
|
||||
|
||||
&__heading {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__jist {
|
||||
justify-self: center;
|
||||
font-size: var(--fs-200);
|
||||
font-weight: 600;
|
||||
|
||||
margin-bottom: var(--spacer-300);
|
||||
}
|
||||
|
||||
&__item {
|
||||
// background-color: var(--color-secondary);
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
&__item-heading {
|
||||
// text-align: center;
|
||||
// color: var(--clr-base-heading);
|
||||
}
|
||||
|
||||
@include bp(bp-400) {
|
||||
padding: var(--spacer-500) var(--spacer-200);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// CONTACT
|
||||
////////////////////////////////////////////////////////////////
|
||||
.contact {
|
||||
padding: var(--spacer-500);
|
||||
display: grid;
|
||||
gap: var(--spacer-500);
|
||||
|
||||
&__heading {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&__text {
|
||||
font-size: var(--fs-220);
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__mediums {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
row-gap: var(--spacer-300);
|
||||
}
|
||||
|
||||
&__medium {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
&__medium-name {
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-weight: 700;
|
||||
font-size: var(--fs-200);
|
||||
}
|
||||
|
||||
&__ways {
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
&__ways-image {
|
||||
display: inline-block;
|
||||
width: 50vw;
|
||||
max-width: 20rem;
|
||||
min-width: 10rem;
|
||||
}
|
||||
|
||||
&__ways-text {
|
||||
// text-align: center;
|
||||
}
|
||||
|
||||
&__ways-link {
|
||||
font-size: var(--fs-180);
|
||||
text-decoration: none;
|
||||
color: var(--clr-base-link);
|
||||
|
||||
@include underliner(var(--clr-base-link-hover), transparent, false);
|
||||
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-base-link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
@include bp(bp-400) {
|
||||
padding: var(--spacer-500) var(--spacer-200);
|
||||
gap: var(--spacer-300);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// SIMILAR PROJECTS
|
||||
////////////////////////////////////////////////////////////////
|
||||
.similar-projects {
|
||||
display: grid;
|
||||
gap: var(--spacer-800);
|
||||
padding: var(--spacer-800) var(--spacer-500);
|
||||
|
||||
&__heading {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-300);
|
||||
}
|
||||
}
|
||||
|
||||
&__list {
|
||||
display: grid;
|
||||
gap: var(--spacer-500);
|
||||
grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
|
||||
|
||||
@include bp(bp-550) {
|
||||
grid-template-columns: auto;
|
||||
gap: var(--spacer-300);
|
||||
}
|
||||
}
|
||||
@include bp(bp-725) {
|
||||
gap: var(--spacer-500);
|
||||
padding: var(--spacer-500);
|
||||
}
|
||||
@include bp(bp-550) {
|
||||
padding: var(--spacer-500) var(--spacer-300);
|
||||
}
|
||||
@include bp(bp-350) {
|
||||
gap: var(--spacer-300);
|
||||
padding: var(--spacer-300);
|
||||
}
|
||||
}
|
||||
|
||||
.project {
|
||||
padding: var(--spacer-200);
|
||||
background-color: var(--clr-card-bg);
|
||||
display: grid;
|
||||
gap: var(--spacer-100);
|
||||
box-shadow: var(--shadow-card);
|
||||
border-radius: 5px;
|
||||
|
||||
&__name {
|
||||
font-family: var(--ff-alt-alpha);
|
||||
font-size: var(--fs-200);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
color: var(--clr-card-heading);
|
||||
}
|
||||
|
||||
&__about {
|
||||
color: var(--clr-card-text);
|
||||
}
|
||||
|
||||
&__instance {
|
||||
display: inline-block;
|
||||
justify-self: start;
|
||||
align-self: end;
|
||||
text-decoration: none;
|
||||
color: var(--clr-base-link);
|
||||
|
||||
@include underliner(var(--clr-base-link-hover));
|
||||
backface-visibility: hidden;
|
||||
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.02);
|
||||
color: var(--clr-base-link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&__instance-arrow {
|
||||
display: inline-block;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
&__instance:hover &__instance-arrow {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// ERROR
|
||||
////////////////////////////////////////////////////////////////
|
||||
.error {
|
||||
padding: var(--spacer-500);
|
||||
display: grid;
|
||||
gap: var(--spacer-200);
|
||||
text-align: center;
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
// min-height: 100vh;
|
||||
|
||||
&__status-code {
|
||||
// font-size: 20rem;
|
||||
font-size: var(--fs-2000);
|
||||
|
||||
@include bp(bp-725) {
|
||||
font-size: var(--fs-1700);
|
||||
}
|
||||
@include bp(bp-550) {
|
||||
font-size: var(--fs-1500);
|
||||
}
|
||||
@include bp(bp-400) {
|
||||
font-size: var(--fs-1200);
|
||||
}
|
||||
@include bp(bp-350) {
|
||||
font-size: var(--fs-1000);
|
||||
}
|
||||
}
|
||||
|
||||
&__message {
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration: none;
|
||||
color: var(--clr-base-link);
|
||||
@include underliner(var(--clr-base-link-hover), transparent, false);
|
||||
|
||||
transition: all 0.4s;
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-base-link-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&__text {
|
||||
font-size: var(--fs-180);
|
||||
}
|
||||
|
||||
&__stack-box {
|
||||
max-width: 85vw;
|
||||
padding: var(--spacer-100) var(--spacer-200);
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--shadow-card);
|
||||
border: 1px solid;
|
||||
text-align: initial;
|
||||
background-color: var(--clr-card-bg);
|
||||
}
|
||||
|
||||
&__stack {
|
||||
overflow: auto;
|
||||
padding: var(--spacer-100) 0;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// MOVIE
|
||||
////////////////////////////////////////////////////////////////
|
||||
.movie {
|
||||
padding: var(--spacer-500);
|
||||
display: grid;
|
||||
gap: var(--spacer-500);
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
grid-template-rows: repeat(5, auto);
|
||||
grid-auto-flow: dense;
|
||||
color: var(--clr-card-text);
|
||||
|
||||
&__basic {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
&__cast {
|
||||
grid-column: 1 / -1;
|
||||
|
||||
overflow: hidden;
|
||||
margin: var(--spacer-200);
|
||||
|
||||
@include bp(bp-550) {
|
||||
margin: var(--spacer-200) 0;
|
||||
}
|
||||
|
||||
@include bp(bp-350) {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__heading-main {
|
||||
font-size: var(--fs-350);
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-card-heading);
|
||||
|
||||
@include bp(bp-900) {
|
||||
font-size: 3rem;
|
||||
}
|
||||
}
|
||||
&__heading-sub {
|
||||
font-size: 1em;
|
||||
font-weight: 600;
|
||||
font-family: var(--ff-alt-alpha);
|
||||
color: var(--clr-card-heading-alt-alpha);
|
||||
}
|
||||
|
||||
&__storyline,
|
||||
&__boxoffice,
|
||||
&__details,
|
||||
&__technical,
|
||||
&__media {
|
||||
// background: var(--clr-card-bg);
|
||||
// border-radius: var(--border-radius);
|
||||
padding: var(--spacer-200);
|
||||
// box-shadow: var(--shadow-card);
|
||||
display: grid;
|
||||
gap: var(--spacer-100);
|
||||
align-content: start;
|
||||
|
||||
@include bp(bp-1100) {
|
||||
padding: var(--spacer-200) var(--spacer-100);
|
||||
}
|
||||
@include bp(bp-900) {
|
||||
padding: var(--spacer-100);
|
||||
}
|
||||
@include bp(bp-350) {
|
||||
padding: var(--spacer-100) 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__storyline {
|
||||
grid-column: 1 / span 4;
|
||||
|
||||
@include bp(bp-1100) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
&__details {
|
||||
grid-column: -3 / -1;
|
||||
@include bp(bp-1100) {
|
||||
grid-column: 1 / span 2;
|
||||
}
|
||||
|
||||
@include bp(bp-900) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
&__boxoffice {
|
||||
grid-column: -3 / -1;
|
||||
@include bp(bp-1100) {
|
||||
grid-column: 3 / span 2;
|
||||
}
|
||||
|
||||
@include bp(bp-900) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
&__technical {
|
||||
grid-column: -3 / -1;
|
||||
@include bp(bp-900) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
&__media {
|
||||
align-self: center;
|
||||
grid-column: 1 / span 4;
|
||||
grid-row: -3 / -1;
|
||||
@include bp(bp-1100) {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: unset;
|
||||
}
|
||||
}
|
||||
|
||||
&__media-image-secondary-box {
|
||||
max-height: 30rem;
|
||||
flex: 1 0 30rem;
|
||||
max-width: 30rem;
|
||||
|
||||
@include bp(bp-900) {
|
||||
max-height: 20rem;
|
||||
flex: 1 0 20rem;
|
||||
}
|
||||
}
|
||||
&__media-box {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
gap: var(--spacer-300);
|
||||
padding: var(--spacer-200) var(--spacer-100);
|
||||
|
||||
@include bp(bp-900) {
|
||||
gap: var(--spacer-200);
|
||||
padding: var(--spacer-100);
|
||||
}
|
||||
}
|
||||
&__media-image {
|
||||
// max-height: 15rem;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration: none;
|
||||
justify-self: start;
|
||||
color: var(--clr-base-link);
|
||||
@include underliner(var(--clr-base-link-hover));
|
||||
|
||||
span {
|
||||
transition: all 200ms;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--clr-base-link-hover);
|
||||
|
||||
span {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include bp(bp-1100) {
|
||||
// grid-template-columns: repeat(4, 1fr);
|
||||
gap: var(--spacer-200) var(--spacer-100);
|
||||
padding: var(--spacer-300);
|
||||
}
|
||||
|
||||
@include bp(bp-550) {
|
||||
padding: var(--spacer-200);
|
||||
}
|
||||
}
|
5
views/sass/main.scss
Normal file
5
views/sass/main.scss
Normal file
@ -0,0 +1,5 @@
|
||||
// @use 'abstracts'; // stuff like sass mixins, variables and the likes
|
||||
@use 'base'; // containes main reset rules, some typography and keyframes for animations
|
||||
@use 'components'; // for things that are smaller than layouts. eg: buttons
|
||||
@use 'layout'; // will contain navs, header, footer, grid and stuff
|
||||
@use 'pages'; // for very specific styles for specific pages.
|
Reference in New Issue
Block a user