Skip to content

Commit

Permalink
Support new installer naming.
Browse files Browse the repository at this point in the history
Style tweaks
  • Loading branch information
Rem0o committed Mar 14, 2024
1 parent 87c8b28 commit f79fad6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/layouts/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FooterButton } from "../reactComponents/footerButton";

export const Footer = () => {
return (
<footer className="min-h-sm mt-10 flex border border-t border-body-300 bg-body-100 pt-2 text-center text-body-800">
<footer className="min-h-sm mt-10 flex border-t border-body-300 bg-body-100 pt-2 text-center text-body-800">
<DevInformation />
</footer>
);
Expand Down
7 changes: 4 additions & 3 deletions src/reactComponents/downloadModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Spacer } from "./Spacer";
import { Spacer } from "./spacer";
import { TrackedExternalLink } from "./links";
import { Modal } from "./modal";
import {
Expand Down Expand Up @@ -44,14 +44,15 @@ function GetDownloadable(
}

var splittedName = name.split("_").filter(x => x != props.version.toString());
const [fc/*, version*/, net, major, minor] = splittedName;
// fc, version, net, major, minor
const [fc, version, net, major, minor] = splittedName;

const dotnetString = major == "4" ? ".NET Framework" : ".NET";
const dotnetVersionString =
minor == "0" ? major.toString() : `${major}.${minor}`;

return {
name: `Fan Control V${props.version} ${dotnetString} ${dotnetVersionString}`,
name: `Fan Control V${version} ${dotnetString} ${dotnetVersionString}`,
url: asset.browser_download_url,
type: ExtensionToAssetType(extension)
};
Expand Down
12 changes: 6 additions & 6 deletions src/reactPages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ export const IndexPage = () => {
</div>
</section>

<section className="my-10 w-full bg-body-200 px-5 py-20">
<div className="wrap mx-auto flex max-w-5xl flex-wrap place-content-center content-evenly gap-12 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-3">
<section className="w-full bg-body-200 px-5 py-20">
<div className="mx-auto max-w-xl grid grid-cols-4 gap-12 sm:grid-cols-1 md:grid-cols-2 xl:grid-cols-3">
{[
[icons.svgPaths.bulb, "Flexible by design"],
[icons.svgPaths.graph, "7 Fan Curve types"],
Expand All @@ -231,10 +231,10 @@ export const IndexPage = () => {
[icons.svgPaths.wrench, "Assisted setup"],
[icons.svgPaths.temperature, "Temperature Tray Icons"]
].map(([icon, text, onClick], i) => (
<div key={i} className="m-auto flex items-center">
<Card className="bg-body-700 font-medium text-body-100 shadow-lg shadow-body-500 hover:animate-wiggle hover:bg-primary-700 hover:text-accent">
<div className="h-18 justify-left flex w-52 items-center text-center text-xl">
<div className="mr-2">{BigIcon(icon)}</div>
<div key={i} className="flex items-center mx-auto ">
<Card className="bg-body-700 text-body-100 shadow-lg shadow-body-500 hover:animate-wiggle hover:bg-primary-700 hover:text-accent">
<div className="h-18 justify-left flex items-center text-center">
<div className="mr-2">{Icon(icon)}</div>
<div className="mx-auto">{text}</div>
</div>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
colors: {
primary: toryBlue,
accent: chartreuse["500"],
body: colors.zinc,
body: colors.slate,
"tory-blue": toryBlue,
chartreuse: chartreuse,
},
Expand Down

0 comments on commit f79fad6

Please sign in to comment.