Skip to content

Commit 61227f8

Browse files
Updates (#150)
* updated styles * updated npm dependencies * added .nvmrc * added typescript
1 parent 08c380b commit 61227f8

File tree

7 files changed

+6350
-6549
lines changed

7 files changed

+6350
-6549
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

package-lock.json

Lines changed: 6329 additions & 6538 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
"lint:eslint": "eslint \"src/**/*.{css,js}\""
1313
},
1414
"devDependencies": {
15-
"astro": "^1.0.0",
1615
"eslint": "^8.18.0",
17-
"prettier": "^2.7.1",
16+
"prettier": "^3.2.5",
1817
"prettier-plugin-astro": "^0.13.0"
1918
},
2019
"dependencies": {
21-
"cypress": "^10.0.3"
20+
"astro": "^4.5.18",
21+
"cypress": "^13.7.2",
22+
"typescript": "^5.4.4"
2223
}
2324
}

src/components/FeedbackForm.astro

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p>Here's an example of a Netlify Form! When you fill this out, the submissions can be found in the Netlify Admin site.</p>
55
<div class="feedback-form">
66
<form
7-
netlify
7+
data-netlify="true"
88
netlify-honeypot
99
name="feedback"
1010
method="POST"
@@ -32,18 +32,24 @@
3232
min-width: 250px;
3333
width: 45%;
3434
}
35+
label {
36+
font-size: 16px;
37+
}
3538
input,
3639
textarea,
3740
button {
41+
border-radius: 5px;
42+
border: 1px solid #cbd5e1;
3843
font-size: inherit;
3944
margin: 15px 0;
4045
padding: 12px 20px;
4146
width: 100%;
4247
}
4348
button {
44-
background-color: teal;
45-
border: 1px solid black;
46-
color: white;
49+
background-color: #2bdcd2;
50+
border: 1px solid #2bdcd2;
51+
color: #1e293b;
52+
font-size: 16px;
4753
width: 50%;
4854
}
4955
.hidden {

src/components/Layout.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { title } = Astro.props as Props;
2626
--font-size-xl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
2727

2828
--color-text: hsl(12, 5%, 4%);
29-
--color-bg: hsl(0, 0%, 100%);
29+
--color-bg: #f8fafc;
3030
}
3131

3232
html {
@@ -52,4 +52,7 @@ const { title } = Astro.props as Props;
5252
font-family: Menlo, Monaco, Lucida Console, Liberation Mono,
5353
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
5454
}
55+
:global(p) {
56+
line-height: 1.6;
57+
}
5558
</style>

src/env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="astro/client" />

src/pages/index.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import FeedbackForm from '../components/FeedbackForm.astro';
99
<div class="logo">
1010
<img
1111
src="https://user-images.githubusercontent.com/43764894/223557634-f62606c5-bdf9-476c-9264-0d3728189962.png"
12+
alt="Netlify and Astro.js logos"
1213
/>
1314
</div>
1415
</div>
@@ -41,9 +42,6 @@ import FeedbackForm from '../components/FeedbackForm.astro';
4142
</Layout>
4243

4344
<style>
44-
:root {
45-
text-align: center;
46-
}
4745
.logo img {
4846
padding: 30px 0;
4947
width: 100%;

0 commit comments

Comments
 (0)