Skip to content

Commit

Permalink
Stash work
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewbadour committed Jul 23, 2024
1 parent 4b374ed commit 2d36d49
Show file tree
Hide file tree
Showing 21 changed files with 1,801 additions and 578 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgs.mkShell
{
nativeBuildInputs = with pkgs; [
git,
git
nodejs
];
}
427 changes: 180 additions & 247 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro",
"type": "module",
"version": "0.0.1",
"version": "0.0.2",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand All @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^3.1.2",
"astro": "^4.11.5"
"@astrojs/mdx": "^3.1.3",
"astro": "^4.12.2"
}
}
Binary file added src/assets/controller-back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/drew-wwdc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/photo-download.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/reach-hmi-truck.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/reach-hmi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/components/Cursor.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
---

<div id="cursor"/>


<script>
document.body.onmousemove = function(e) {
document.documentElement.style.setProperty (
'--x', (
e.clientX + window.scrollX
)
+ 'px'
);

document.documentElement.style.setProperty (
'--y', (
e.clientY + window.scrollY
)
+ 'px'
);
}
</script>


<style>
#cursor {
position: absolute;

top: var(--y, 0);
left: var(--x, 0);
transform: translate(-50%, -50%);
z-index: 2;

width: 1rem;
height: 1rem;

background: white;
border-radius: 50%;

mix-blend-mode: difference;
/* transition: transform 0.2s;*/
}
</style>
35 changes: 13 additions & 22 deletions src/components/ExperienceItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,21 @@ import SkillItem from "./SkillItem.astro"
import WorkReference from "./WorkReference.astro"
interface Props {
achor: string;
startDate: string;
endDate: string;
role: string;
company: string;
href: string;
blurb: string;
skills: Array<string>;
work: Array<Object>;
}
const { anchor, startDate, endDate, role, company, href, blurb, skills, work } = Astro.props;
// const { anchor, startDate, endDate, role, company, href, blurb, skills, work } = Astro.props;
const { startDate, endDate, blurb, skills, work } = Astro.props;
---

<div id={anchor} class="experience">
<div class="experience">
<h4 class="date text-dark">{startDate}{endDate}</h4>

<a href={href}>
<h3 class="role">
<span class="line">{role}</span>
<span class="line">
@ {company}
<i class="fa fa-fw fa-angle-double-right" aria-hidden="true"/>
</span>
</h3>
</a>

<div class="blurb text-dark">{blurb}</div>
<div class="blurb">{blurb}</div>

<div class="work-links">
{ work && work.map((work) =>
Expand All @@ -41,13 +28,17 @@ const { anchor, startDate, endDate, role, company, href, blurb, skills, work } =
)}
</div>

<div style="height: 100%;"/>

<!--
<div class="skills">
{ skills && skills.map((skill) =>
{ /*skills && skills.map((skill) =>
<div class="skill fade-item">
{skill}
</div>
)}
)*/}
</div>
-->
</div>


Expand All @@ -70,7 +61,7 @@ h3 {
}

.role {
font-family: "Rasa", serif;
/* font-family: "Rasa", serif;*/
font-size: 1.5em;
line-height: 1em;

Expand All @@ -95,7 +86,7 @@ h3 {
.work-link {
display: block;

font-family: "Rasa", serif;
/* font-family: "Rasa", serif;*/
text-decoration: none;

margin: 0.25em 0;
Expand Down Expand Up @@ -130,7 +121,7 @@ h3 {
color: var(--gold);
background-color: var(--goldTransparent);

font-family: "Rasa", serif;
/* font-family: "Rasa", serif;*/
line-height: 2em;

border-radius: 0.5em;
Expand Down
157 changes: 157 additions & 0 deletions src/components/ExperienceItemOld.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
---
import SkillItem from "./SkillItem.astro"
import WorkReference from "./WorkReference.astro"

interface Props {
achor: string;
startDate: string;
endDate: string;
role: string;
company: string;
href: string;
blurb: string;
skills: Array<string>;
work: Array<Object>;
}

const { anchor, startDate, endDate, role, company, href, blurb, skills, work } = Astro.props;
---

<div id={anchor} class="experience">
<h4 class="date text-dark">{startDate} — {endDate}</h4>

<a href={href}>
<h3 class="role">
<span class="line">{role}</span>
<span class="line">
@ {company}
<i class="fa fa-fw fa-angle-double-right" aria-hidden="true"/>
</span>
</h3>
</a>

<div class="blurb text-dark">{blurb}</div>

<div class="work-links">
{ work && work.map((work) =>
<a class="work-link" href={work.href}>
<span class="work-text">{work.text}</span>
<i class="fa fa-fw fa-angle-double-right" aria-hidden="true"/>
</a>
)}
</div>

<div class="skills">
{ skills && skills.map((skill) =>
<div class="skill fade-item">
{skill}
</div>
)}
</div>
</div>


<style>

.experience {
padding: 1em;
}



h4 {
margin: 0.25em 0 0.25em 0.1em;
}



h3 {
margin: 0.2em 0 0.6em 0;
}

.role {
font-family: "Rasa", serif;
font-size: 1.5em;
line-height: 1em;

.line {
text-decoration: underline;
text-decoration-color: var(--gold);
}
}



.blurb {
margin: 0em 0em 1em 0em;
}



.work-links {
margin: 1em 0;
}

.work-link {
display: block;

font-family: "Rasa", serif;
text-decoration: none;

margin: 0.25em 0;
}

.work-text {
text-decoration: underline;
text-decoration-color: var(--gold);
}



.skills {
margin: 1em 0;
}

.skills .skill {
/* This has to be here to properly animate */
transition: opacity 0.2s;
}

.skills:has(.skill:hover) .skill:not(:hover) {
opacity: 0.2;
}

.skill {
display: inline-block;

padding: 0 0.5em;
margin: 0.25em 0.1em;

color: var(--gold);
background-color: var(--goldTransparent);

font-family: "Rasa", serif;
line-height: 2em;

border-radius: 0.5em;
}



@media (prefers-reduced-motion) {
.skills:has(.skill:hover) .skill:not(:hover) {
opacity: 1;
}
}

@media (prefers-reduced-transparency) {
.skill {
background-color: rgb(47, 41, 28);
}

.skills:has(.skill:hover) .skill:not(:hover) {
opacity: 1;
}
}

</style>
Loading

0 comments on commit 2d36d49

Please sign in to comment.