Started overhaul of website. Currently still in progress

This commit is contained in:
BOTAlex 2024-10-09 11:48:06 +02:00
parent 04202dd936
commit ec1ff4ad57
1 changed files with 21 additions and 40 deletions

View File

@ -19,49 +19,30 @@
<MediaQuery query='(max-width: {mobileThreshold})' bind:matches={mobile} /> <MediaQuery query='(max-width: {mobileThreshold})' bind:matches={mobile} />
<div class="main-title"> <div class="main-title">
<h1>The Deprived Devs</h1> <h1>Deprived Devs</h1>
</div> <div class="collapse collapse-arrow bg-base-200 text-start">
<input type="radio" name="my-accordion-2" checked/>
<div class="collapse-title text-xl font-medium "><b>Alex / Zhen</b></div>
<section id="news-section"> <div class="collapse-content">
<header id="news-header"> <p>Hello, I am Zhen Aka. Alex.</p>
<h1>Recent News</h1> <p>Here's my portfolio: <a href="/zhen/cv/rev1?hideOnPrint=1" style="color:lightblue;">pdf</a></p>
</header>
<div class="news-container">
<!-- The newest blog post being showcased -->
<div class="showcase">
<ShowcaseNewsCard
thumbnail_url={most_recent_post.cover_img}
thumbnail_alt={most_recent_post.cover_alt}
post_url={most_recent_post.url}
title={most_recent_post.title}
summary={most_recent_post.summary}
creation_date={most_recent_post.creation_date}
/>
</div> </div>
<!-- </div>
<div class="news-list"> <div class="collapse collapse-arrow bg-base-200">
{#each data.summaries.slice(1, post_show_count) as summary} <input type="radio" name="my-accordion-2" />
<NewsCard <div class="collapse-title text-xl font-medium">Click to open this one and close others</div>
thumbnail_url={summary.cover_img} <div class="collapse-content">
thumbnail_alt={summary.cover_alt} <p>hello</p>
post_url={summary.url}
title={summary.title}
summary={summary.summary}
creation_date={summary.creation_date}
/>
{/each}
</div> </div>
</div>
<div class="collapse collapse-arrow bg-base-200">
<input type="radio" name="my-accordion-2" />
<div class="collapse-title text-xl font-medium">Click to open this one and close others</div>
<div class="collapse-content">
<p>hello</p>
</div> -->
</div> </div>
<footer id="news-footer"> </div>
<div class="dummy"/>
<div id="more-posts">
<Button href="/posts" type={ButtonType.Primary}>
<span slot="content">More News</span>
</Button>
</div>
</footer>
</section>
<Timeline/> <Timeline/>