feat: appunti and guide prototype page styling
parent
16bffed2be
commit
182238f89d
@ -0,0 +1,15 @@
|
||||
export const AppuntiCard = ({ image, course, title, author, courseYear }) => {
|
||||
return (
|
||||
<div class="appunti-item">
|
||||
<div class="thumbnail"></div>
|
||||
{title && <div class="title">{title}</div>}
|
||||
{course && <div class="course">{course}</div>}
|
||||
<div class="author">@{author}</div>
|
||||
<div class="course-year">{courseYear}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export const AppuntiList = ({ children }) => {
|
||||
return <div class="appunti-list">{children}</div>
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
---
|
||||
import PageLayout from '@layouts/PageLayout.astro'
|
||||
|
||||
import { AppuntiList, AppuntiCard } from '@client/Appunti'
|
||||
---
|
||||
|
||||
<PageLayout pageName="appunti">
|
||||
<h1>Appunti & Dispense</h1>
|
||||
|
||||
<div class="search">
|
||||
<input type="text" />
|
||||
<span class="material-symbols-outlined">search</span>
|
||||
</div>
|
||||
|
||||
<h2>In primo piano</h2>
|
||||
|
||||
<div class="appunti-scrollable center">
|
||||
<AppuntiList>
|
||||
<AppuntiCard client:load title="Appunti 1" author="someuser" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load course="Geometria 1" author="exampleuser" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load course="Algebra 1" author="anotheruser" courseYear="2023/2024" />
|
||||
</AppuntiList>
|
||||
</div>
|
||||
|
||||
<h2>Categorie</h2>
|
||||
|
||||
<h3>Analisi</h3>
|
||||
|
||||
<div class="appunti-scrollable">
|
||||
<AppuntiList>
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
</AppuntiList>
|
||||
</div>
|
||||
|
||||
<h3>Algebra Lineare</h3>
|
||||
|
||||
<div class="appunti-scrollable">
|
||||
<AppuntiList>
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
</AppuntiList>
|
||||
</div>
|
||||
|
||||
<h3>Geometria</h3>
|
||||
|
||||
<div class="appunti-scrollable">
|
||||
<AppuntiList>
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
<AppuntiCard client:load title="Appunti 1" author="example" courseYear="2023/2024" />
|
||||
</AppuntiList>
|
||||
</div>
|
||||
|
||||
</PageLayout>
|
@ -1,8 +1,17 @@
|
||||
@mixin neo-brutalist-card($size: 3px, $offset: $size + 1, $shadow: true) {
|
||||
@mixin neo-brutalist-card($size: 3px, $offset: $size + 1, $shadow: true, $hoverable: false) {
|
||||
border: $size solid #222;
|
||||
border-radius: $size * 2;
|
||||
|
||||
@if $shadow {
|
||||
box-shadow: $offset $offset 0 0 #222;
|
||||
}
|
||||
|
||||
@if $hoverable {
|
||||
transition: all 64ms linear;
|
||||
|
||||
&:hover {
|
||||
transform: translate(-1px, -1px);
|
||||
box-shadow: $offset + 1 $offset + 1 0 0 #222;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue