Skip to content

Commit 019d766

Browse files
ildyriad7415
andauthored
Improve feature list + release Beta 2 (#156)
* improve feature list * more things * fix styling * improve list * more details * more data * add link to release * Apply suggestions from code review Co-authored-by: Martin Stone <[email protected]> --------- Co-authored-by: Martin Stone <[email protected]>
1 parent 0d51dfe commit 019d766

File tree

11 files changed

+372
-232
lines changed

11 files changed

+372
-232
lines changed

src/assets/styles/window.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,8 @@
144144

145145
.bg-mix {
146146
background-color: #d7f0fe;
147+
}
148+
149+
.dark\:bg-dark-mix:is(.dark *) {
150+
background-color: #0b7ab0;
147151
}

src/components/ui/Tag.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
import { twMerge } from 'tailwind-merge';
3+
4+
const { tag = 'v6', classes = {} } = Astro.props;
5+
---
6+
7+
<span class={twMerge("rounded-full text-xs text-white bg-sky-300 dark:text-neutral-300 dark:bg-sky-600 px-2 shadow-sm shadow-black/20 ml-2", classes)}>{ tag }</span>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
import Headline from '~/components/ui/Headline.astro';
3+
import WidgetWrapper from '~/components/ui/WidgetWrapper.astro';
4+
import type { FeaturesList as Props } from '~/types';
5+
import Tick from '../ui/Tick.astro';
6+
import Tag from '../ui/Tag.astro';
7+
8+
const {
9+
title = await Astro.slots.render('title'),
10+
subtitle = await Astro.slots.render('subtitle'),
11+
tagline = await Astro.slots.render('tagline'),
12+
products = [],
13+
specs = [],
14+
15+
id,
16+
isDark = false,
17+
classes = {},
18+
bg = await Astro.slots.render('bg'),
19+
} = Astro.props;
20+
---
21+
22+
<WidgetWrapper id={id} isDark={isDark} containerClass={`max-w-3xl mx-auto ${classes?.container ?? ''}`} bg={bg}>
23+
<Headline title={title} subtitle={subtitle} tagline={tagline} classes={classes?.headline as Record<string, string>} />
24+
<div>
25+
<table class="w-full border-collapse border border-neutral-200 dark:border-neutral-800">
26+
<thead>
27+
<tr class="bg-neutral-100 dark:bg-neutral-700">
28+
<th class="p-2 text-xl font-bold text-left">Features</th>
29+
{
30+
products.map((name) => (
31+
<th class="p-2 text-xl font-bold">
32+
<Fragment set:html={name} />
33+
</th>
34+
))
35+
}
36+
</tr>
37+
</thead>
38+
<tbody>
39+
{
40+
specs.map(({ feature, isHeader, isV6, values, available }) => (
41+
<tr class={(isHeader && ' bg-neutral-50 dark:bg-neutral-800') || ''}>
42+
{isHeader && <td class="p-2 font-semibold"><Fragment set:html={feature} /></td>}
43+
{isHeader && products.map(() => <td class="p-2 text-center" />)}
44+
{!isHeader && <td class="px-2 text-muted"><Fragment set:html={feature} />{ isV6 && <Tag/> }</td> }
45+
{!isHeader && values && (values.map((val) => <td class="px-2 text-muted text-center">{val}</td>))}
46+
{!isHeader && available && available.map((yes) => <td class="px-2 text-muted text-center">{yes && <Tick />}</td>)}
47+
</tr>
48+
))
49+
}
50+
</tbody>
51+
</table>
52+
</div>
53+
</WidgetWrapper>

src/components/widgets/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const currentPath = `/${trimSlash(new URL(Astro.url).pathname)}`;
120120
]}
121121
href={href}
122122
>
123-
{text}
123+
<Fragment set:html={text} />
124124
</a>
125125
)}
126126
</li>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
publishDate: 2024-10-15T18:00:00Z
3+
author: ildyria
4+
title: 'Bite-size v6: Beta.2 is Live!'
5+
excerpt: Bite-size v6 is a series of small post showing the progress made on the development of the future version of Lychee.
6+
image: https://images.unsplash.com/photo-1484480974693-6ca0a78fb36b?q=80&w=3544&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
7+
category: Active Development
8+
tags:
9+
- lychee
10+
- vuejs
11+
- v6
12+
---
13+
14+
I got some nice and extensive feedback from Beta 1.
15+
See below the fixes and improvements that have been made in the Beta 2.
16+
17+
- [x] : Fix pictures not being deleted when clicked on the button.
18+
- [x] : Fix links and bold which were invisible in light mode in Album and Photo descriptions
19+
- [x] : Add link shape check on Upload via Url
20+
- [x] : Dropbox upload is now set to `disabled` if it was empty, no more useless warning in Diagnostics.
21+
- [x] : Import from server is gone from the menu (it was already gone in v5).
22+
- [x] : Some labels have been updated for readability.
23+
- [x] : Added a button in the middle of the screen when the album is empty to prompt the upload of pictures.
24+
- [x] : Drag & Drop fixed on Upload + Full drag & drop support on album pages + Paste image support as upload on album pages.
25+
- [x] : Ongoing progress of uploads is now displayed on top of the modal.
26+
- [x] : Added tooltips on the action bar for photos (star, rotate, delete)
27+
- [x] : In slideshow the actions buttons for photos were still visible (though unusable).
28+
- [x] : Fixed the Edit photo dialog for consistent design.
29+
- [x] : Improved visibility form in Albums.
30+
- [x] : Add set as album header button in photo view
31+
- [x] : Rotating a photo refreshes the photo.
32+
- [x] : Added setting to preserve photo on upload when auto rotation is set.
33+
- [x] : Added swipe left / right to switch picture.
34+
- [x] : Added scroll up / down to switch picture.
35+
- [x] : Fixed some Warnings as Info in Diagnostics.
36+
- [x] : Fixed broken images on thumbs
37+
- [x] : After upload is completed, refresh album in the background
38+
- [x] : Switching from dark mode to light mode and vice-versa no longer requires reloading.
39+
- [x] : Fixed Photo details colors in light mode.
40+
- [x] : Do not show the Map when Map settings is disabled.
41+
- [x] : Fixes error messages showing up full screen when `dist/user.css` and `dist/custom.js` do not exist.
42+
- [x] : Add `GET api/v2/Photo::random` end point to request random pictures, this provides the full data of the photo instead of the src links for the frame.
43+
- [x] : Revamped completely the User Management panel.
44+
45+
With this out of the pipe, it is now time to release a [new Beta version](https://github.com/LycheeOrg/Lychee/releases/tag/v6.0.0-beta.2).
46+
And as always, the Docker `alpha` tag reflects the latest changes to Version 6.

src/navigation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export const headerData = {
2323
text: 'About us',
2424
href: '/support',
2525
},
26+
{
27+
text: 'Lychee <span class="text-sky-500 ml-1">SE</span>',
28+
href: '/get-supporter-edition',
29+
},
2630
{
2731
text: 'Docs',
2832
href: '/docs',
@@ -39,11 +43,13 @@ export const footerData = {
3943
links: [
4044
{ text: 'Read the Docs', href: '/docs' },
4145
{ text: 'Community Forum', href: 'https://github.com/LycheeOrg/Lychee/discussions' },
46+
{ text: 'Join our discord', href: 'https://discord.gg/JMPvuRQcTf' },
4247
],
4348
},
4449
{
4550
title: 'Support Lychee',
4651
links: [
52+
{ text: 'Get Lychee <span class="text-sky-500">SE</span>', href: 'https://lycheeorg.github.io/get-supporter-edition' },
4753
{ text: 'GitHub sponsor', href: 'https://github.com/sponsors/LycheeOrg' },
4854
{ text: 'Open Collective', href: 'https://opencollective.com/LycheeOrg' },
4955
],

src/pages/[...blog]/[...page].astro

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Pagination from '~/components/blog/Pagination.astro';
88
// import PostTags from "~/components/blog/Tags.astro";
99
1010
import { blogListRobots, getStaticPathsBlogList } from '~/utils/blog';
11+
import CallToAction2 from '~/components/widgets/CallToAction2.astro';
1112
1213
export const prerender = true;
1314
@@ -48,5 +49,23 @@ const metadata = {
4849
<PostTags tags={allCategories} class="mb-2" title="Search by Categories:" isCategory />
4950
<PostTags tags={allTags} title="Search by Tags:" />
5051
-->
51-
</section>
52+
<CallToAction2
53+
classes={{headline: 'bg-white'}}
54+
title="Support us!"
55+
subtitle="If you are using Lychee, a small token of gratitude will go a long way. You can support further development of Lychee on GitHub."
56+
actions={[
57+
// {
58+
// variant: 'secondary',
59+
// text: '<img src="https://next-images.opencollective.com/_next/image?url=%2Fstatic%2Fimages%2Foc-logo-watercolor-256.png&w=64&q=75" class="h-5 w-5 mr-2.5"/>Open Collective',
60+
// href: 'https://opencollective.com/LycheeOrg',
61+
// },
62+
{
63+
variant: 'secondary',
64+
text: 'GitHub sponsor',
65+
href: 'https://github.com/sponsors/LycheeOrg',
66+
icon: 'tabler:heart',
67+
},
68+
]}
69+
/>
70+
</section>
5271
</Layout>

src/pages/[...blog]/index.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ const metadata = merge(
5353
<CallToAction2
5454
classes={{headline: 'bg-white'}}
5555
title="Support us!"
56-
subtitle="If you are using Lychee, a small token of gratitude will go a long way. You can support further development of Lychee on opencollective or on GitHub."
56+
subtitle="If you are using Lychee, a small token of gratitude will go a long way. You can support further development of Lychee on GitHub."
5757
actions={[
58-
{
59-
variant: 'secondary',
60-
text: '<img src="https://next-images.opencollective.com/_next/image?url=%2Fstatic%2Fimages%2Foc-logo-watercolor-256.png&w=64&q=75" class="h-5 w-5 mr-2.5"/>Open Collective',
61-
href: 'https://opencollective.com/LycheeOrg',
62-
},
58+
// {
59+
// variant: 'secondary',
60+
// text: '<img src="https://next-images.opencollective.com/_next/image?url=%2Fstatic%2Fimages%2Foc-logo-watercolor-256.png&w=64&q=75" class="h-5 w-5 mr-2.5"/>Open Collective',
61+
// href: 'https://opencollective.com/LycheeOrg',
62+
// },
6363
{
6464
variant: 'secondary',
6565
text: 'GitHub sponsor',

0 commit comments

Comments
 (0)