Skip to content

Commit ea6cd01

Browse files
committed
.
1 parent f322e96 commit ea6cd01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+4923
-201
lines changed

Diff for: components/Card.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { IconCoffee } from '@tabler/icons-react';
2+
3+
const Card: React.FC<{ image: string; name: string; gitUser: string }> = ({ image, name, gitUser }) => {
4+
return (
5+
<div className="flex w-32 flex-col items-center justify-center gap-2 mt-10 rp">
6+
<div className="card--style">
7+
<img className='img__bg' src="../public/static/bg.jpeg" />
8+
<div className="card--style__logo">
9+
<img className='card__logo' src="../public/static/icewhite.png" />
10+
</div>
11+
<div className="gradient"></div>
12+
</div>
13+
</div>
14+
);
15+
};
16+
17+
export default Card;

Diff for: components/Contributors.tsx

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { IconCoffee } from '@tabler/icons-react';
2+
import React, { useEffect, useState } from "react";
3+
4+
5+
const Contributors: React.FC<{ image: string; name: string; gitUser: string }> = ({ image, name, gitUser }) => {
6+
const blacklistedNames = ["DaniGP17", "zKXDEX"]
7+
const [contributors, setContributors] = useState([]);
8+
9+
useEffect(() => {
10+
fetch("https://api.github.com/repos/IceClusters/icmysql/contributors?anon=1")
11+
.then((response) => response.json())
12+
.then((data) => {
13+
setContributors(function(){
14+
let retval = [];
15+
for(let i = 0; i < data.length; i++){
16+
if(blacklistedNames.includes(data[i].login)) continue;
17+
console.log(data[i].login)
18+
retval.push({
19+
name: data[i].login,
20+
avatar: data[i].avatar_url,
21+
commits: data[i].contributions
22+
})
23+
}
24+
return retval;
25+
});
26+
})
27+
.catch((error) => console.log("Error: ", error));
28+
}, []);
29+
30+
return (
31+
<div className="container__contributor">
32+
{contributors.map((contributor, i) => (
33+
<div className="card--c">
34+
<img className='avatar' src={contributor.avatar}/>
35+
<div className="space__info">
36+
<a href={`https://github.com/${contributor.name}`} className='title__c'>{contributor.name}</a>
37+
<h5 className='desc__c'>{contributor.commits} commits</h5>
38+
</div>
39+
</div>
40+
))}
41+
42+
</div>
43+
);
44+
};
45+
46+
export default Contributors;

Diff for: components/Hero.tsx

-5
This file was deleted.

Diff for: components/Profile.tsx

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { IconCoffee } from '@tabler/icons-react';
2+
3+
const Profile: React.FC<{ image: string; banner: string; name: string; gitUser: string; desc: string; tags: string[] }> = ({ image, name, gitUser, desc, banner, tags }) => {
4+
return (
5+
6+
<div className="card__profile">
7+
<div className="content">
8+
<div className="banner-container">
9+
<div className="banner">
10+
<img className='banner--img' src={banner} />
11+
<div className="profile--img">
12+
<div className="img--srt">
13+
<div className="container--img">
14+
<a className='a--cont' href={`https://github.com/${gitUser}`}>
15+
<span className='BG '>
16+
<img src={image} alt={`${name}-image`} className="rounded-md bg-neutral-100 shadow-md dark:bg-neutral-900 avatar" />
17+
18+
</span>
19+
<div className="txt--name--content">{name}</div>
20+
21+
</a>
22+
</div>
23+
24+
</div>
25+
</div>
26+
</div>
27+
28+
</div>
29+
<div className="container--desc_profile">
30+
<div className="tag--cont">
31+
{tags.map((tag, index) => (
32+
<div className="tag" key={index}>
33+
{tag}
34+
</div>
35+
))}
36+
</div>
37+
<div className="desc--content">
38+
<h2 className='desc--text'>{desc}</h2>
39+
</div>
40+
</div>
41+
</div>
42+
43+
</div>
44+
45+
46+
);
47+
};
48+
49+
export default Profile;

Diff for: components/Resource.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
3+
interface Props {
4+
children?: React.ReactNode;
5+
repo: string;
6+
docs?: string;
7+
}
8+
9+
const Resource = ({ repo, docs }: Props) => {
10+
return (
11+
<div className="flex flex-wrap gap-1">
12+
13+
</div>
14+
);
15+
};
16+
17+
export default Resource;

Diff for: components/Search.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React, { useState } from 'react';
2+
import { DocSearch } from '@docsearch/react';
3+
4+
import '@docsearch/css';
5+
6+
const Search: React.FC = () => {
7+
const [inputValue, setInputValue] = useState('');
8+
9+
return (
10+
<div className="nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300">
11+
<input spellCheck={false}
12+
onChange={e => setInputValue(e.target.value)}
13+
value={inputValue} className="nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors nx-text-base nx-leading-tight md:nx-text-sm nx-bg-black/[.05] dark:nx-bg-gray-50/10 focus:nx-bg-white dark:focus:nx-bg-dark placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400 contrast-more:nx-border contrast-more:nx-border-current" type="search" placeholder="Search documentation…" />
14+
</div>
15+
);
16+
};
17+
18+
export default Search;

0 commit comments

Comments
 (0)