Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonRP committed Oct 15, 2024
1 parent 208bb34 commit a97d882
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"deno.codeLens.references": true,
"deno.codeLens.implementations": true,
"deno.codeLens.referencesAllFunctions": true,
"deno.codeLens.test": true
"deno.codeLens.test": true,
"editor.defaultFormatter": "denoland.vscode-deno"

}
34 changes: 15 additions & 19 deletions src/components/resume/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ const {
>
{
linq(skills)
.groupBy(({ category, categoryTag }) => [category, categoryTag], {
equals: ([a, b], [c, d]) => a === c && b === d,
getHashCode: hash,
})
.select((g) =>
[
g.key,
g.select((s) => ({ tag: s.tag, name: s.name, keywords: s.keywords }))
.toArray(),
] as const
)
.select(([[category, categoryTag], collectiveSkills]) => (
.groupBy(({ category, categoryTag }) => [category, categoryTag], {
equals: ([a, b], [c, d]) => a === c && b === d,
getHashCode: hash,
})
.select((g) =>
[
g.key,
g.select((s) => ({ tag: s.tag, name: s.name, keywords: s.keywords }))
.toArray(),
] as const
)
.select(([[category, categoryTag], collectiveSkills]) => (
<section
class:list={['category', { 'extend': collectiveSkills.length > 1 }]}
aria-labelledby={categoryTag}
Expand All @@ -114,18 +114,14 @@ const {
collectiveSkills.length === 1 ? collectiveSkills[0]?.name : collectiveSkills.length > 1 ? category : ''
}
</h2>{
collectiveSkills.length === 1
? (
collectiveSkills.length === 1 ? (
<TagsCatalog labels={collectiveSkills[0]?.keywords ?? ''} />
)
: collectiveSkills.length > 1
? collectiveSkills.map((skill) => (
): collectiveSkills.length > 1 ? collectiveSkills.map((skill) => (
<div class="sub-category" aria-labelledby={skill.tag}>
<h3 id={skill.tag} class="subheading">{skill.name}:</h3>
<TagsCatalog labels={skill.keywords.sort()} />
</div>
))
: null
)): null
}
</section>
))
Expand Down
24 changes: 12 additions & 12 deletions src/pages/resume/index.astro
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
import website from "@/website.config";
import website from '@/website.config';
import AppLayout from "@/layouts/app.astro";
import SEO from "@/components/SEO/index.svelte";
import { Picture } from "astro:assets";
import resumePreview from "@/images/ResumePreview.png";
import Resume from "@/components/resume";
import { Content } from "@/lib/content";
import AppLayout from '@/layouts/app.astro';
import SEO from '@/components/SEO/index.svelte';
import { Picture } from 'astro:assets';
import resumePreview from '@/images/ResumePreview.png';
import Resume from '@/components/resume';
import { Content } from '@/lib/content';
const pageTitle = "Resume",
const pageTitle = 'Resume',
metadescription =
"Hard working and detail oriented professional, seeking a software development position where I can use my skills and contribute to the growth of a company.",
slug = "/Resume",
'Hard working and detail oriented professional, seeking a software development position where I can use my skills and contribute to the growth of a company.',
slug = '/Resume',
{ author } = website;
const breadcrumbs = [
{
name: "Home",
name: 'Home',
slug: Astro.url.origin,
},
{
Expand Down Expand Up @@ -50,7 +50,7 @@ const data = await Content.getLatestResumeData();
<div class="resume:hidden">
<Picture
src={resumePreview}
formats={["avif", "webp", "png"]}
formats={['avif', 'webp', 'png']}
widths={[360, 720, 1080, resumePreview.width]}
sizes={`(max-width: 360px) 360px, (max-width: 720px) 720px, (max-width: 1080px) 1080px, ${resumePreview.width}px`}
alt="Resume"
Expand Down
2 changes: 1 addition & 1 deletion src/styles/abstracts/_breakpoints.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ $breakpoints: (
md: $base-point + calc($ratio * 3),
lg: $base-point + calc($ratio * 6),
xl: $base-point + calc($ratio * 9),
resume: calc(297mm + calc(46px * 2) + 1rem)
resume: calc(297mm + calc(46px * 2) + 1rem),
) !default;

0 comments on commit a97d882

Please sign in to comment.