Skip to content

Commit 4364cfa

Browse files
committed
feat: add sponsors and workflowa
1 parent 1d419f7 commit 4364cfa

File tree

2 files changed

+100
-35
lines changed

2 files changed

+100
-35
lines changed

.github/workflows/github-pages.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Hackhaftasi
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '23.1.0'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Build project
28+
run: npm run build
29+
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./build
35+
cname: hackhaftasi.com

src/components/sponsor/Sponsor.jsx

+65-35
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,74 @@ import React from 'react';
22
import styles from './sponsor.module.css';
33

44
const allSponsors = [
5-
{
6-
webUrl: 'https://pausiber.xyz/',
7-
imgUrl: '/images/pausiber-logo-cekirdek.png',
8-
imgAlt: 'pausiber_cekirdek_logo',
9-
},
10-
{
11-
webUrl: 'https://siberkulupler.com/',
12-
imgUrl: '/images/skb_logo.png',
13-
imgAlt: 'skb_logo',
14-
},
5+
{
6+
webUrl: 'https://pausiber.xyz/',
7+
imgUrl: '/images/pausiber-logo-cekirdek.png',
8+
imgAlt: 'pausiber_cekirdek_logo',
9+
},
10+
{
11+
webUrl: 'https://siberkulupler.com/',
12+
imgUrl: '/images/skb_logo.png',
13+
imgAlt: 'skb_logo',
14+
},
15+
{
16+
webUrl: 'https://ratel.com.tr/tr/',
17+
imgUrl: '/images/ratel_logo.webp',
18+
imgAlt: 'ratel_logo',
19+
},
20+
{
21+
webUrl: 'https://www.tubitak.gov.tr/',
22+
imgUrl: '/images/tubitak_logo.png',
23+
imgAlt: 'tubitak_logo',
24+
},
25+
{
26+
webUrl: 'https://secureway.com.tr/',
27+
imgUrl: '/images/secureWay.jpeg',
28+
imgAlt: 'secure_way_logo',
29+
},
30+
{
31+
webUrl: 'https://www.netinternet.com.tr/',
32+
imgUrl: '/images/netinternet.svg',
33+
imgAlt: 'netinternet_logo',
34+
},
35+
{
36+
webUrl: 'https://bento.me/turkiye-rust-community',
37+
imgUrl: '/images/turkiye_rust_community.jpg',
38+
imgAlt: 'turkiye_rust_community_logo',
39+
},
40+
{
41+
webUrl: 'https://magfiads.com/',
42+
imgUrl: '/images/magfiADS.png',
43+
imgAlt: 'mafiADS_logo',
44+
},
1545
];
1646

1747
const Sponsor = () => {
18-
return (
19-
<div id='sponsor' className={styles.container}>
20-
<div className={styles.title}>
21-
<span>SPONSORLAR</span>
22-
</div>
23-
<div
24-
className={styles.sponsors}
25-
style={{
26-
justifyContent: allSponsors.length <= 3 ? 'flex-start' : 'center',
27-
}}
28-
>
29-
{allSponsors.map((sponsor) => (
30-
<div className={styles.img}>
31-
<img
32-
onClick={function redirectToLinkedIn() {
33-
window.open(sponsor.webUrl, '_blank');
34-
}}
35-
src={sponsor.imgUrl}
36-
alt={sponsor.imgAlt}
37-
/>
38-
</div>
39-
))}
40-
</div>
41-
</div>
42-
);
48+
return (
49+
<div id='sponsor' className={styles.container}>
50+
<div className={styles.title}>
51+
<span>SPONSORLAR</span>
52+
</div>
53+
<div
54+
className={styles.sponsors}
55+
style={{
56+
justifyContent: allSponsors.length <= 3 ? 'flex-start' : 'center',
57+
}}
58+
>
59+
{allSponsors.map((sponsor) => (
60+
<div className={styles.img}>
61+
<img
62+
onClick={function redirectToLinkedIn() {
63+
window.open(sponsor.webUrl, '_blank');
64+
}}
65+
src={sponsor.imgUrl}
66+
alt={sponsor.imgAlt}
67+
/>
68+
</div>
69+
))}
70+
</div>
71+
</div>
72+
);
4373
};
4474

4575
export default Sponsor;

0 commit comments

Comments
 (0)