Compare commits
No commits in common. "e31a64658e4d2426d730712188e6bf94f9967e21" and "1186ef7a54b404a157df03263857ad686b1962e3" have entirely different histories.
e31a64658e
...
1186ef7a54
@ -3,8 +3,8 @@
|
|||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
body {
|
body {
|
||||||
transition:
|
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
|
||||||
background-color 0.2s ease-in-out,
|
@apply bg-stone-100 dark:bg-gray-950 text-black dark:text-stone-100 text-center;
|
||||||
color 0.2s ease-in-out;
|
|
||||||
@apply bg-stone-100 dark:bg-gray-950 text-black dark:text-stone-100 text-center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,25 +1,20 @@
|
|||||||
<script>
|
<script>
|
||||||
import { AccordionItem } from 'flowbite-svelte';
|
import { AccordionItem } from 'flowbite-svelte';
|
||||||
import { Heading, Secondary } from 'flowbite-svelte';
|
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
export let index;
|
export let isOpen = false;
|
||||||
export let link;
|
export let link;
|
||||||
export let title;
|
export let title;
|
||||||
export let description;
|
export let description;
|
||||||
export let published;
|
export let published;
|
||||||
const pubAgo = moment(published).fromNow();
|
const pubAgo = moment(published).fromNow();
|
||||||
const open = index === 0;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<AccordionItem {...open ? { open: true } : {}}>
|
<AccordionItem {...isOpen ? { open: true } : {}}>
|
||||||
<span slot="header" class="flex justify-between items-center w-full">
|
<span slot="header">{@html title} - {pubAgo}</span>
|
||||||
<span>{@html title}</span>
|
|
||||||
<p class="text-xs mr-2">{pubAgo}</p>
|
|
||||||
</span>
|
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
{#if description}
|
{#if description}
|
||||||
<p>with the message:</p>
|
<p>with the message:</p>
|
||||||
<code class="overflow-x-clip">{@html description}</code>
|
<code>{@html description}</code>
|
||||||
{/if}
|
{/if}
|
||||||
<a class="hover:text-slate-100" href={link}>view commit for more details</a>
|
<a class="hover:text-slate-100" href={link}>view commit for more details</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,9 +62,13 @@
|
|||||||
<Spinner />
|
<Spinner />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<Accordion flush>
|
<Accordion>
|
||||||
{#each feed.slice(0, 5) as commit, i}
|
{#each feed.slice(0, 5) as commit, i}
|
||||||
<Commit {...commit} index={i} />
|
{#if i === 0}
|
||||||
|
<Commit {...commit} isOpen={true} />
|
||||||
|
{:else}
|
||||||
|
<Commit {...commit} open={false} />
|
||||||
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</Accordion>
|
</Accordion>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
import ThemeSwitch from '$lib/ThemeSwitch.svelte';
|
import ThemeSwitch from '$lib/ThemeSwitch.svelte';
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import CloudflareAnalytics from '../lib/CloudflareAnalytics.svelte';
|
import CloudflareAnalytics from '../lib/CloudflareAnalytics.svelte';
|
||||||
import { DarkMode } from 'flowbite-svelte';
|
|
||||||
|
|
||||||
// Navigation links are generated based on this object
|
// Navigation links are generated based on this object
|
||||||
const nav = [
|
const nav = [
|
||||||
@ -74,7 +73,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
{/key}
|
{/key}
|
||||||
<DarkMode />
|
<ThemeSwitch />
|
||||||
</nav>
|
</nav>
|
||||||
<div class="mx-auto max-w-xs sm:max-w-md md:max-w-3xl text-center">
|
<div class="mx-auto max-w-xs sm:max-w-md md:max-w-3xl text-center">
|
||||||
<slot />
|
<slot />
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
<div in:fade>
|
<div in:fade>
|
||||||
<h1 class="text-2xl">Svelte Portfolio Page</h1>
|
<h1 class="text-2xl">Svelte Portfolio Page</h1>
|
||||||
<p class="text-left">For this project i've used the following:</p>
|
<p class="text-left">For this product i've used the following:</p>
|
||||||
|
|
||||||
<p class="text-left">
|
<p class="text-left">
|
||||||
<a
|
<a
|
||||||
class="underline font-normal hover:text-slate-400"
|
class="underline font-normal hover:text-slate-400"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
export default {
|
export default {
|
||||||
content: ['./src/**/*.{html,js,svelte,ts}', './node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'],
|
content: ['./src/**/*.{html,js,svelte,ts}', './node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'],
|
||||||
plugins: [require('flowbite/plugin')],
|
plugins: [require('flowbite/plugin')],
|
||||||
darkMode: 'class',
|
darkMode: 'selector',
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
|
Loading…
Reference in New Issue
Block a user