Skip to content

Commit

Permalink
Fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed Apr 2, 2024
1 parent 26a368a commit cf9b22b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/about/ProjectsSection.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { JSX, Component } from "solid-js";
import { Separator } from "@kobalte/core";
import { css } from "@linaria/core";
import cn from "classnames";
import { Component, JSX } from "solid-js";
import LabeledBox from "~/about/LabeledBox";
import { Separator } from "@kobalte/core";
import IconText from "~/components/IconText";
import { config } from "~/config";
import { breakpoint } from "~/style/commonStyle";

interface Props {
Expand Down Expand Up @@ -78,7 +79,7 @@ const Project: Component<any> = (props: any) => {
const PreviewImage: Component<any> = (props: any) => {
return (
<img
src="/preview/preview-blog1.jpg"
src={`${config.base}/preview/preview-blog1.jpg`}
class={cn(
Image,
"h-32 w-[30%] max-w-60 rounded border-2 border-colors-primary-800 object-cover xs:w-[50%]"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { css } from "@linaria/core";
import cn from "classnames";
import { Component } from "solid-js";
import SVG from "~/components/SVG";
import { config } from "~/config";

interface Props {
class?: string;
Expand All @@ -15,7 +16,7 @@ const Icon: Component<Props> = (props) => {

return (
<SVG
src={`/icons/icon-${icon}.svg`}
src={`${config.base}/icons/icon-${icon}.svg`}
// alt={description}
class={cn(_Icon, $class)}
{...(rest as any)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SVG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function getInitialData(src: string, async?: boolean) {
if (!isServer) {
return undefined;
} else {
if (src.startsWith(config.resourceBaseURL))
src = src.slice(config.resourceBaseURL.length);
// if (src.startsWith(config.resourceBaseURL))
// src = src.slice(config.resourceBaseURL.length);

src = path.join(process.cwd(), "public", src);

Expand Down

0 comments on commit cf9b22b

Please sign in to comment.