Skip to content

Commit

Permalink
better mobile, minor touches to color & "title"
Browse files Browse the repository at this point in the history
  • Loading branch information
fallow64 committed Mar 31, 2024
1 parent 98df4af commit 17afad2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
21 changes: 18 additions & 3 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import pfpImage from "../images/pfp.png";
<Image id="pfp" loading="eager" alt="Austin Schneider" src={pfpImage} />
<div id="text">
<h1>Austin Schneider</h1>
<span>Software Developer</span>
<span><em>Software Developer</em></span>
</div>

<style>
#header-container {
height: 100px;
margin: 10px;
margin: 10px 10px 10px 0px;

display: flex;
}
Expand All @@ -28,7 +28,7 @@ import pfpImage from "../images/pfp.png";
}

#text > span {
color: var(--darkgray);
color: var(--brown);
}

#pfp {
Expand All @@ -37,5 +37,20 @@ import pfpImage from "../images/pfp.png";
margin-right: 30px;
border-radius: 20px;
}

@media only screen and (max-width: 600px) {
#header-container {
height: auto;
display: block;
}

#pfp {
display: block;
width: 100%;
max-width: 320px;
height: auto;
margin: 0px auto 20px auto;
}
}
</style>
</div>
8 changes: 4 additions & 4 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ const { title } = Astro.props;
:root {
--background: #f5f0f0;
--main-text: #121212;
--lightgray: #dddddd;
--darkgray: #8c7d70;

--link: #704e2b;
--lightgray: #dddddd;
--brown: #704e2b;
}

html,
body {
margin: 20px;
background-color: var(--background);
overflow-x: hidden;
}

body {
Expand All @@ -53,7 +53,7 @@ const { title } = Astro.props;
}

a {
color: var(--link);
color: var(--brown);
}

a:visited {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import Horizontal from "../components/Horizontal.astro";
<ul>
<li>
<p>
<a href="https://github.com/fallow64/flama">Flama</a> - A programming language
written in Rust that transpiles to Minecraft blocks using <a
<a href="https://github.com/fallow64/flama">Flama</a> - A toy programming
language written in Rust that transpiles to Minecraft blocks using <a
href="https://mcdiamondfire.com/about">DiamondFire</a
>'s coding system.
</p>
Expand Down

0 comments on commit 17afad2

Please sign in to comment.