|
1 | 1 | --- |
2 | | -import Base from '../layouts/Base.astro'; |
3 | | -import ExtLink from '../components/ExtLink.astro'; |
4 | | -import Icon from '../components/Icon.astro'; |
5 | | -import InkCanvas from '../components/InkCanvas.astro'; |
6 | | -import ProjectCard from '../components/ProjectCard.astro'; |
7 | | -import { getCollection } from 'astro:content'; |
| 2 | +import Base from "../layouts/Base.astro"; |
| 3 | +import ExtLink from "../components/ExtLink.astro"; |
| 4 | +import Icon from "../components/Icon.astro"; |
| 5 | +import InkCanvas from "../components/InkCanvas.astro"; |
| 6 | +import ProjectCard from "../components/ProjectCard.astro"; |
| 7 | +import { getCollection } from "astro:content"; |
8 | 8 |
|
9 | | -const projects = (await getCollection('projects')) |
10 | | - .sort((a, b) => a.data.order - b.data.order); |
| 9 | +const projects = (await getCollection("projects")).sort( |
| 10 | + (a, b) => a.data.order - b.data.order, |
| 11 | +); |
11 | 12 |
|
12 | 13 | const featured = projects.filter((p) => p.data.featured); |
13 | | -const research = (await getCollection('research')).sort((a, b) => a.data.order - b.data.order); |
| 14 | +const research = (await getCollection("research")).sort( |
| 15 | + (a, b) => a.data.order - b.data.order, |
| 16 | +); |
14 | 17 |
|
15 | | -const blog = (await getCollection('blog')) |
16 | | - .sort((a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime()); |
| 18 | +const blog = (await getCollection("blog")).sort( |
| 19 | + (a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime(), |
| 20 | +); |
17 | 21 | const latestPost = blog[0]; |
18 | 22 | --- |
19 | 23 |
|
20 | | -<Base title="Abhyudit Singh" description="Developer & Researcher at IIIT Hyderabad"> |
| 24 | +<Base |
| 25 | + title="Abhyudit Singh" |
| 26 | + description="Developer & Researcher at IIIT Hyderabad" |
| 27 | +> |
21 | 28 | <section class="hero"> |
22 | 29 | <InkCanvas /> |
23 | 30 | <div class="hero__content"> |
24 | 31 | <span class="hero__greeting">Hello, I'm</span> |
25 | 32 | <h1 class="hero__name">Abhyudit Singh</h1> |
26 | 33 | <p class="hero__bio"> |
27 | | - Undergraduate at IIIT Hyderabad. |
28 | | - Interested in cybersecurity, machine learning, and systems programming. |
29 | | - Rated <a href="https://codeforces.com/profile/BitMap4">1592 on Codeforces</a>. |
| 34 | + Undergraduate at IIIT Hyderabad. Interested in cybersecurity, machine |
| 35 | + learning, and systems programming. Rated <a |
| 36 | + href="https://codeforces.com/profile/BitMap4">1608 on Codeforces</a |
| 37 | + >. |
30 | 38 | </p> |
31 | 39 | <div class="hero__links"> |
32 | | - <a href="https://github.com/bitmap4" class="hero__link" target="_blank" rel="noopener noreferrer"><Icon name="github" size={15} /> GitHub</a> |
| 40 | + <a |
| 41 | + href="https://github.com/bitmap4" |
| 42 | + class="hero__link" |
| 43 | + target="_blank" |
| 44 | + rel="noopener noreferrer"><Icon name="github" size={15} /> GitHub</a |
| 45 | + > |
33 | 46 | <span class="hero__link-sep">·</span> |
34 | | - <a href="https://linkedin.com/in/abhyudit-singh" class="hero__link" target="_blank" rel="noopener noreferrer">LinkedIn</a> |
| 47 | + <a |
| 48 | + href="https://linkedin.com/in/abhyudit-singh" |
| 49 | + class="hero__link" |
| 50 | + target="_blank" |
| 51 | + rel="noopener noreferrer"><Icon name="linkedin" size={15} /> LinkedIn</a |
| 52 | + > |
35 | 53 | <span class="hero__link-sep">·</span> |
36 | | - <a href="mailto:abhyudit.singh@research.iiit.ac.in" class="hero__link"><Icon name="mail" size={15} /> Email</a> |
| 54 | + <a href="mailto:abhyudit.singh@research.iiit.ac.in" class="hero__link" |
| 55 | + ><Icon name="mail" size={15} /> Email</a |
| 56 | + > |
37 | 57 | <span class="hero__link-sep">·</span> |
38 | | - <a href="https://drive.google.com/file/d/1L8lr5-B45VnHHbTIvZRya9fNBJOjI8h3/" class="hero__link" target="_blank" rel="noopener noreferrer">Résumé</a> |
| 58 | + <a |
| 59 | + href="https://drive.google.com/file/d/1L8lr5-B45VnHHbTIvZRya9fNBJOjI8h3/" |
| 60 | + class="hero__link" |
| 61 | + target="_blank" |
| 62 | + rel="noopener noreferrer">Résumé</a |
| 63 | + > |
39 | 64 | </div> |
40 | 65 | </div> |
41 | 66 | </section> |
42 | 67 |
|
43 | | - {latestPost && ( |
44 | | - <div class="latest-post-banner"> |
45 | | - <span class="latest-post-banner__label">Latest post</span> |
46 | | - <a href={`/blog/${latestPost.id.replace(/\.md$/, '')}`} class="latest-post-banner__link"> |
47 | | - {latestPost.data.title} <Icon name="arrow-right" size={12} /> |
48 | | - </a> |
49 | | - </div> |
50 | | - )} |
| 68 | + { |
| 69 | + latestPost && ( |
| 70 | + <div class="latest-post-banner"> |
| 71 | + <span class="latest-post-banner__label">Latest post</span> |
| 72 | + <a |
| 73 | + href={`/blog/${latestPost.id.replace(/\.md$/, "")}`} |
| 74 | + class="latest-post-banner__link" |
| 75 | + > |
| 76 | + {latestPost.data.title} <Icon name="arrow-right" size={12} /> |
| 77 | + </a> |
| 78 | + </div> |
| 79 | + ) |
| 80 | + } |
51 | 81 |
|
52 | 82 | <span class="ornament">§</span> |
53 | 83 |
|
54 | 84 | <section> |
55 | | - <h2 class="section-heading">Featured Work</h2> |
56 | | - <div class="project-list"> |
57 | | - {featured.map((project) => ( |
58 | | - <ProjectCard |
59 | | - title={project.data.title} |
60 | | - description={project.data.description} |
61 | | - tech={project.data.tech} |
62 | | - github={project.data.github} |
63 | | - href={`/projects/${project.id.replace(/\.md$/, '')}`} |
64 | | - /> |
65 | | - ))} |
66 | | - {research.map((r) => ( |
67 | | - <ProjectCard |
68 | | - title={r.data.title} |
69 | | - description={r.data.description} |
70 | | - tech={r.data.tech} |
71 | | - href={`/research/${r.id.replace(/\.md$/, '')}`} |
72 | | - /> |
73 | | - ))} |
| 85 | + <h2 class="section-heading">Open Source</h2> |
| 86 | + <div class="misc-item"> |
| 87 | + <div class="misc-item__title">Microsoft PowerToys</div> |
| 88 | + <p class="misc-item__desc"> |
| 89 | + Contributed to <ExtLink href="https://github.com/microsoft/PowerToys" |
| 90 | + >Microsoft PowerToys</ExtLink |
| 91 | + >, a set of utilities for power users to streamline their Windows |
| 92 | + experience. |
| 93 | + </p> |
74 | 94 | </div> |
75 | 95 | </section> |
76 | 96 |
|
77 | 97 | <span class="ornament">§</span> |
78 | 98 |
|
79 | 99 | <section> |
80 | | - <h2 class="section-heading">Open Source</h2> |
81 | | - <div class="misc-item"> |
82 | | - <div class="misc-item__title">Microsoft PowerToys</div> |
83 | | - <p class="misc-item__desc"> |
84 | | - Contributed to <ExtLink href="https://github.com/microsoft/PowerToys">Microsoft PowerToys</ExtLink>, a set of utilities for power users to streamline their Windows experience. |
85 | | - </p> |
| 100 | + <h2 class="section-heading">Featured Work</h2> |
| 101 | + <div class="project-list"> |
| 102 | + { |
| 103 | + featured.map((project) => ( |
| 104 | + <ProjectCard |
| 105 | + title={project.data.title} |
| 106 | + description={project.data.description} |
| 107 | + tech={project.data.tech} |
| 108 | + github={project.data.github} |
| 109 | + href={`/projects/${project.id.replace(/\.md$/, "")}`} |
| 110 | + /> |
| 111 | + )) |
| 112 | + } |
| 113 | + { |
| 114 | + research.map((r) => ( |
| 115 | + <ProjectCard |
| 116 | + title={r.data.title} |
| 117 | + description={r.data.description} |
| 118 | + tech={r.data.tech} |
| 119 | + href={`/research/${r.id.replace(/\.md$/, "")}`} |
| 120 | + /> |
| 121 | + )) |
| 122 | + } |
86 | 123 | </div> |
87 | 124 | </section> |
88 | 125 | </Base> |
0 commit comments