Skip to content

Commit

Permalink
Merge pull request #77 from adastackio/os_builders
Browse files Browse the repository at this point in the history
Improve styles, add OS links across the site, general fixes and reorg
  • Loading branch information
adastackio authored Dec 10, 2024
2 parents 755bab3 + baf8d12 commit 607269c
Show file tree
Hide file tree
Showing 102 changed files with 1,473 additions and 36,055 deletions.
Binary file removed assets/dark/1.jpg
Binary file not shown.
7 changes: 7 additions & 0 deletions assets/icons/blank_fallback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/cardano.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export { default as StarIcon } from "./star.svg";
export { default as CopyIcon } from "./copy.svg";
export { default as CopySuccessIcon } from "./copy_success.svg";
export { default as SingleCommitIcon } from "./single_commit.svg";
export { default as CardanoIcon } from "./cardano.svg";
export { default as BlankFallback } from "./blank_fallback.svg";
2 changes: 1 addition & 1 deletion assets/icons/oss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/black_sand.jpg
Binary file not shown.
Binary file removed assets/light/1.jpg
Binary file not shown.
20 changes: 0 additions & 20 deletions components/Favicon.tsx

This file was deleted.

6 changes: 4 additions & 2 deletions components/HomeHero.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// components/HomeHero.jsx
import Link from "next/link";
import Image from "next/image";
import bgImage from "../assets/images/bg.jpg";
Expand Down Expand Up @@ -26,7 +25,10 @@ const HomeHero = () => {
</p>

<div className="flex flex-col items-center gap-2 mb-9 text-gray-300">
<div className="flex items-center gap-2 w-[355px] text-[17px]">
<div
className="flex items-center gap-2 text-[17px]"
style={{ maxWidth: "355px" }}
>
<span>
Adastack is your comprehensive guide to the Cardano ecosystem.
Open-source knowledge, curated by the Cardano community.
Expand Down
21 changes: 21 additions & 0 deletions components/LibraryInfoBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import RepoShieldIo from "./badges/shield_io_badges/RepoShieldIo";
import LanguageShieldIo from "./badges/shield_io_badges/LanguageShieldIo";
import LatestCommitBadgeIo from "./badges/shield_io_badges/LatestCommitBadgeIo";

interface LibraryInfoBarProps {
repoURL: string;
language: string;
}

const LibraryInfoBar = ({ repoURL, language }: LibraryInfoBarProps) => {
return (
<div className="code-library-info-bar flex gap-2 items-center">
<LanguageShieldIo language={language} isColorChanging={false} />
<LatestCommitBadgeIo repoURL={repoURL} />
<RepoShieldIo repoURL={repoURL} />
</div>
);
};

export default LibraryInfoBar;
138 changes: 0 additions & 138 deletions components/StarBadge.tsx

This file was deleted.

25 changes: 20 additions & 5 deletions components/badges/Favicon.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
import Image from "next/image";
import { useState } from "react";
import { BlankFallback } from "../../assets/icons";

type FaviconProps = {
url: string | null;
};

const Favicon = ({ url }: FaviconProps) => {
const [imageError, setImageError] = useState(false);
const [src] = useState(
`https://www.google.com/s2/favicons?sz=128&domain_url=${url}`
);

return (
<span className="inline-flex size-6 items-center justify-center shrink-0 rounded-md bg-background p-1 favicon-custom-css">
<Image
loading="lazy"
className="aspect-square h-3"
src={`https://www.google.com/s2/favicons?sz=128&domain_url=${url}`} alt={""} />
<span className="inline-flex size-6 items-center justify-center shrink-0 rounded-md bg-background p-1 favicon-custom-css relative h-3 w-3">
{imageError ? (
<BlankFallback className="h-full w-full" />
) : (
<Image
loading="lazy"
className="aspect-square"
src={src}
alt="Favicon"
fill
onError={() => setImageError(true)}
/>
)}
</span>
);
};
Expand Down
19 changes: 19 additions & 0 deletions components/badges/OS.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { OSIcon } from "../../assets/icons";

const OS = ({ url, className }) => {
if (!url) return null;

const spanClass = className
? `open-source-icon-inline inline-block h-3 w-3 ${className}`
: "open-source-icon-inline inline-block h-3 w-3";

return (
<span className={spanClass}>
<a href={url} target="_blank" rel="noopener">
<OSIcon />
</a>
</span>
);
};

export default OS;
108 changes: 0 additions & 108 deletions components/badges/shield_io_badges/CodeLanguageShieldIoBadge.tsx

This file was deleted.

Loading

1 comment on commit 607269c

@vercel
Copy link

@vercel vercel bot commented on 607269c Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.