mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
ads
This commit is contained in:
14
styles/CategoryList.module.scss
Normal file
14
styles/CategoryList.module.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
@import "variables.scss";
|
||||
.categoryList {
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
96
styles/DynamicCategoryGrid.module.scss
Normal file
96
styles/DynamicCategoryGrid.module.scss
Normal file
@@ -0,0 +1,96 @@
|
||||
@import "variables.scss";
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 10px 30px;
|
||||
|
||||
@media (max-width: $categoryList-breakpoint-1) {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px 10px;
|
||||
}
|
||||
|
||||
@media (max-width: $categoryList-breakpoint-2) {
|
||||
grid-template-columns: 1fr;
|
||||
width: 100%;
|
||||
|
||||
padding: 0px 20px 0 20px;
|
||||
}
|
||||
|
||||
.linkContainer {
|
||||
aspect-ratio: 14/9;
|
||||
width: 250px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
@media (max-width: $categoryList-breakpoint-2) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
text-align: center;
|
||||
aspect-ratio: 14/9;
|
||||
width: 230px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
row-gap: 20px;
|
||||
background-color: #384d54;
|
||||
color: white;
|
||||
font-size: 0.8em;
|
||||
transition: all 100ms linear;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.481);
|
||||
color: white !important;
|
||||
text-decoration: none !important;
|
||||
width: 250px;
|
||||
row-gap: 30px;
|
||||
.svgContainer {
|
||||
svg {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $categoryList-breakpoint-2) {
|
||||
font-size: 1.2em;
|
||||
width: 95%;
|
||||
&:hover {
|
||||
box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0);
|
||||
width: 100%;
|
||||
|
||||
.svgContainer {
|
||||
svg {
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.svgContainer {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
@media (max-width: $categoryList-breakpoint-2) {
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
svg {
|
||||
transition: all 100ms linear;
|
||||
fill: rgb(255, 255, 255);
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
|
||||
@media (max-width: $categoryList-breakpoint-2) {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
@import "variables.scss";
|
||||
.nav {
|
||||
background-color: var(--color-background-nav);
|
||||
height: 60px;
|
||||
margin-bottom: 50px;
|
||||
height: $nav-height-inital;
|
||||
margin-bottom: 10px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
align-items: center;
|
||||
@@ -37,6 +37,43 @@
|
||||
.links {
|
||||
font-size: 0.8em;
|
||||
font-weight: bold;
|
||||
|
||||
.dropDown {
|
||||
color: var(--color-font-link);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
.dropDownContainer {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.dropDownContainer {
|
||||
display: none;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
.content {
|
||||
background-color: var(--color-background-dropdown);
|
||||
min-width: 160px;
|
||||
box-shadow: 0px 12px 16px 5px rgba(0, 0, 0, 0.2);
|
||||
margin-top: 21px;
|
||||
|
||||
a {
|
||||
float: none;
|
||||
color: var(--color-font-link);
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
text-align: left;
|
||||
border-left: 2px solid transparent;
|
||||
transition: all 50ms linear;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--color-accent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,9 +10,12 @@
|
||||
--color-svg-nav: rgb(191, 191, 191);
|
||||
|
||||
--color-background-card: rgba(123, 123, 123, 0.13);
|
||||
--color-background-dropdown: var(--color-background-body);
|
||||
--color-accent: #2294ff;
|
||||
--color-font-link: var(--color-accent);
|
||||
|
||||
--color-font-link-hover: #5caffc;
|
||||
|
||||
/* Colors: Markdown */
|
||||
--md-color-font: rgb(220, 217, 217);
|
||||
--md-color-headline: rgb(229, 228, 228);
|
||||
@@ -35,8 +38,10 @@
|
||||
--color-svg-nav: rgb(54, 54, 54);
|
||||
|
||||
--color-background-card: rgba(171, 170, 170, 0.13);
|
||||
--color-background-dropdown: var(--color-background-body);
|
||||
--color-accent: #2294ff;
|
||||
--color-font-link: var(--color-accent);
|
||||
--color-font-link-hover: #0966be;
|
||||
|
||||
/* Colors: Markdown */
|
||||
--md-color-font: rgb(33, 33, 33);
|
||||
|
||||
@@ -43,9 +43,11 @@ a {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: var(--color-font-link);
|
||||
transition: color 50ms linear;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
color: var(--color-font-link-hover) !important;
|
||||
}
|
||||
|
||||
&:visited {
|
||||
|
||||
@@ -17,7 +17,12 @@ $footer-breakpoint-3: 800px;
|
||||
$footer-breakpoint-4: 440px;
|
||||
|
||||
/* Nav */
|
||||
$nav-height-inital: 60px;
|
||||
$nav-breakpoint-1: 1040px;
|
||||
$nav-breakpoint-2: 820px;
|
||||
$nav-breakpoint-3: 500px;
|
||||
$nav-breakpoint-4: 400px;
|
||||
|
||||
/* CategoryList */
|
||||
$categoryList-breakpoint-1: 850px;
|
||||
$categoryList-breakpoint-2: 600px;
|
||||
|
||||
Reference in New Issue
Block a user