Skip to content

Commit

Permalink
fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasanince committed Nov 8, 2023
1 parent 302c87d commit b638e2a
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 29 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
15 changes: 5 additions & 10 deletions src/components/footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@ import { Image } from 'astro:assets';

<footer class="bg-black">
<div class="container flex flex-wrap gap-4 items-center justify-between py-5">
<Image
src="/assets/images/logo.svg"
width={135}
height={32}
alt="Craftgate"
/>
<Image src="/images/logo.svg" width={135} height={32} alt="Craftgate" />
<nav>
<ul class="flex gap-4 text-sm">
<li class="flex gap-1.5 items-center">
<Image
src="/assets/images/github.svg"
src="/images/github.svg"
width={16}
height={16}
alt="Craftgate Github"
Expand All @@ -23,7 +18,7 @@ import { Image } from 'astro:assets';
</li>
<li class="flex gap-1.5 items-center">
<Image
src="/assets/images/x.svg"
src="/images/x.svg"
width={16}
height={16}
alt="Craftgate Twitter"
Expand All @@ -32,7 +27,7 @@ import { Image } from 'astro:assets';
</li>
<li class="flex gap-1.5 items-center">
<Image
src="/assets/images/linkedin.svg"
src="/images/linkedin.svg"
width={16}
height={16}
alt="Craftgate Linkedin"
Expand All @@ -41,7 +36,7 @@ import { Image } from 'astro:assets';
</li>
<li class="flex gap-1.5 items-center">
<Image
src="/assets/images/instagram.svg"
src="/images/instagram.svg"
width={16}
height={16}
alt="Craftgate Instagram"
Expand Down
7 changes: 1 addition & 6 deletions src/components/header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ import { Image } from 'astro:assets';
<header
class="container flex flex-wrap gap-4 items-center justify-between py-5"
>
<Image
src="/assets/images/logo.svg"
width={135}
height={32}
alt="Craftgate"
/>
<Image src="/images/logo.svg" width={135} height={32} alt="Craftgate" />
<nav>
<ul class="flex gap-8 font-medium">
<li>
Expand Down
9 changes: 2 additions & 7 deletions src/components/repo-card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ const { name, description, stargazers_count, html_url } = Astro.props;
rel="noopener noreferrer"
>
<div class="flex gap-3 items-center">
<Image
src="/assets/images/bookmark.svg"
width={16}
height={16}
alt="Bookmark"
/>
<Image src="/images/bookmark.svg" width={16} height={16} alt="Bookmark" />
<h5 class="group-hover:underline">{name}</h5>
<div
class="text-xs text-tertiary bg-card border border-tertiary rounded-full py-1 px-2"
Expand All @@ -29,7 +24,7 @@ const { name, description, stargazers_count, html_url } = Astro.props;
</div>
<p class="text-sm text-tertiary">{description}</p>
<div class="flex gap-2 items-center">
<Image src="/assets/images/star.svg" width={16} height={16} alt="Star" />
<Image src="/images/star.svg" width={16} height={16} alt="Star" />
{stargazers_count}
</div>
</a>
2 changes: 1 addition & 1 deletion src/components/team-member-card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { name, login, avatar_url, html_url } = Astro.props;
<p class="text-tertiary">{login}</p>
</div>
<Image
src="/assets/images/github.svg"
src="/images/github.svg"
width={36}
height={36}
alt="Github"
Expand Down
2 changes: 1 addition & 1 deletion src/views/hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Image } from 'astro:assets';
</p>
</div>
<Image
src="/assets/images/blogging.svg"
src="/images/blogging.svg"
width={533}
height={399}
alt="Blogging"
Expand Down
4 changes: 2 additions & 2 deletions src/views/open-source-projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import RepoCard from '@/components/repo-card.astro';
import type { GithubRepo } from '@/types';
const GITHUB_TOKEN = import.meta.env.GITHUB_TOKEN;
const API_TOKEN = import.meta.env.API_TOKEN;
const response = await fetch('https://api.github.com/orgs/craftgate/repos', {
headers: {
Accept: 'application/vnd.github+json',
Authorization: `Bearer ${GITHUB_TOKEN}`,
Authorization: `Bearer ${API_TOKEN}`,
'X-GitHub-Api-Version': '2022-11-28',
},
});
Expand Down
4 changes: 2 additions & 2 deletions src/views/team.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import TeamMemberCard from '@/components/team-member-card.astro';
import type { GithubUser } from '@/types';
const GITHUB_TOKEN = import.meta.env.GITHUB_TOKEN;
const API_TOKEN = import.meta.env.API_TOKEN;
const USERNAMES = [
'abalikci',
'AlicanAkkus',
Expand All @@ -25,7 +25,7 @@ const response = await Promise.all(
fetch(`https://api.github.com/users/${username}`, {
headers: {
Accept: 'application/vnd.github+json',
Authorization: `Bearer ${GITHUB_TOKEN}`,
Authorization: `Bearer ${API_TOKEN}`,
'X-GitHub-Api-Version': '2022-11-28',
},
}),
Expand Down

0 comments on commit b638e2a

Please sign in to comment.