Skip to content

Commit c563548

Browse files
committed
Update index
1 parent 2ac3857 commit c563548

6 files changed

Lines changed: 97 additions & 13 deletions

File tree

src/assets/monserate-headshot.png

266 KB
Loading

src/components/Card.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.2);
33
transition: 0.15s;
44
height: 100%;
5+
border-radius: 1em;
56
}
67

78
a {
@@ -16,6 +17,7 @@ a {
1617
.card>.card-image {
1718
width: 100%;
1819
height: auto;
20+
border-radius: 1em 1em 0px 0px;
1921
}
2022

2123
.card>.card-icon-container {

src/components/NavDropdown.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
display: block;
2626
text-align: left;
2727
text-wrap: break-word;
28+
transition: 0.1s;
29+
2830
}
2931

3032
/* Add a grey background color to dropdown links on hover */

src/components/Navlink.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
text-decoration: none;
1212
height: 100%;
1313
line-height: 1em;
14+
transition: 0.1s;
15+
1416
}
1517

1618
.link a:hover,

src/pages/index.astro

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
import Layout from "@components/Layout.astro";
3-
43
import "../styles/global.css";
4+
import "../styles/index.css";
55
6+
import headshot from "@assets/monserate-headshot.png";
7+
import { Image } from "astro:assets";
68
const pageTitle = "Home";
79
const ogType = "website";
810
const ogDescription =
@@ -12,16 +14,24 @@ const seoDescription =
1214
---
1315

1416
<Layout {pageTitle} {ogType} {ogDescription} {seoDescription}>
15-
<h1>{pageTitle}</h1>
16-
<h2>Computer Engineering and Philosophy: Ethics Student</h2>
17-
<p>
18-
Welcome to my brand new* website! This is a place where I will be
19-
posting my projects, blog posts, and other things I find interesting.
20-
</p>
21-
<p>&lt;Big Button to "about me"&gt;</p>
22-
<p>&lt;Big Button to "projects"&gt;</p>
23-
<p>
24-
*This website is still under construction, so please excuse the mess! I
25-
will be adding more content soon.
26-
</p>
17+
<div id="content">
18+
<div id="left">
19+
<h1>Violet Monserate</h1>
20+
<h2>Computer Engineering and Philosophy: Ethics Student</h2>
21+
<p>
22+
Welcome to my website! This is a place where I will
23+
posting my projects, contact info, and other things I find
24+
interesting. Feel free to explore, and feel free to contact
25+
me below. I love hearing from folks!
26+
</p>
27+
<a href="/about" class="button">About Me</a>
28+
<a href="/projects" class="button">Projects</a>
29+
<a href="/contact" class="button">Contact Me</a>
30+
</div>
31+
<Image
32+
id="headshot"
33+
src={headshot}
34+
alt="Headshot of Violet Monserate, a brown woman with long black hair, playing cello"
35+
/>
36+
</div>
2737
</Layout>

src/styles/index.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#content {
2+
display: flex;
3+
flex-flow: row nowrap;
4+
align-items: center;
5+
justify-content: center;
6+
min-height: 70vh;
7+
gap: 2em;
8+
padding: 2em 1em;
9+
}
10+
11+
#left {
12+
flex: 1 1 300px;
13+
max-width: 500px;
14+
}
15+
16+
#headshot {
17+
width: 100%;
18+
height: auto;
19+
border-radius: 1em;
20+
box-shadow: 0 4px 24px rgba(80, 0, 120, 0.15);
21+
object-fit: cover;
22+
margin: 0 auto;
23+
display: block;
24+
}
25+
26+
.button {
27+
background: #7213ad;
28+
border: none;
29+
color: white;
30+
padding: 0.75em 2em;
31+
margin: 0.5em 0.5em 0 0;
32+
border-radius: 1em;
33+
text-align: center;
34+
text-decoration: none;
35+
display: inline-block;
36+
box-shadow: 0 2px 8px rgba(80, 0, 120, 0.08);
37+
transition: 0.1s;
38+
cursor: pointer;
39+
}
40+
.button:hover, .button:focus {
41+
background: #af2eff;
42+
}
43+
44+
h1 {
45+
font-size: 2.5em;
46+
margin-bottom: 0.2em;
47+
}
48+
49+
p {
50+
font-size: 1.1em;
51+
color: #333;
52+
margin-bottom: 1.5em;
53+
}
54+
55+
@media (max-width: 900px) {
56+
#content {
57+
flex-direction: column;
58+
align-items: stretch;
59+
gap: 1.5em;
60+
min-height: unset;
61+
}
62+
#headshot {
63+
margin-bottom: 1em;
64+
}
65+
#left {
66+
max-width: 100%;
67+
}
68+
}

0 commit comments

Comments
 (0)