-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.astro
154 lines (134 loc) · 3.27 KB
/
index.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---
import PageLayout from "../layouts/page.astro";
import BlogFeed from "../components/BlogFeed.astro";
import { border } from "../styles/shared.js";
import home from "./home-digital-development.jpg";
import { Image } from "astro:assets";
---
<PageLayout edit="index.astro">
<section id="shaping-the-future-of-digital-journalism">
<div class="flexedText">
<h2>We're shaping the future of digital journalism.</h2>
<h2>
<a href="https://workforus.theguardian.com/careers/product-engineering"
>Join Us.</a
>
</h2>
</div>
<div class="flexedImage">
<Image
id="home"
src={home}
height={home.height / 2}
width={home.width / 2}
alt="Five people gathered around a table, with a man in the centre wearing an 'I heart the Guardian' tshirt"
/>
</div>
</section>
<section id="build-for-a-greater-cause">
<h3>We build in pursuit of a cause that is greater than ourselves.</h3>
<ul>
<li>
<h4>Empowering journalists</h4>
We build products that make it easier for journalists to publish informative
and delightful stories.
</li>
<li>
<h4>Coding in the open</h4>
We do much of our coding in public. Check out <a
href="https://github.com/guardian">our GitHub profile</a
> to see what we’ve been working on.
</li>
<li>
<h4>Moving fast</h4>
We spend our energy on the right things, shipping code and then rapidly iterating
on it. Move fast, break news.
</li>
<li>
<h4>Using the best tool for the job</h4>
We mostly program in Scala and TypeScript, but we use the best tool that
solves the problem.
</li>
</ul>
</section>
<section id="engineering-blog-posts">
<BlogFeed />
</section>
</PageLayout>
<style lang="scss" define:vars={{ border }}>
section {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 1rem;
gap: 1em;
}
// All but the first section
section:nth-of-type(n + 2) {
border-top: var(--border);
}
h2,
h3 {
line-height: 1.1;
}
h2 {
font-size: clamp(2rem, 8vw, 3.75rem);
}
h3 {
font-size: clamp(1.5rem, 6vw, 3rem);
}
#shaping-the-future-of-digital-journalism {
div.flexedText {
flex: 1 0 50%;
}
.flexedImage {
display: flex;
flex: 1 0 420px;
align-items: center;
}
a {
background-color: #ccc;
color: #111;
text-decoration: none;
padding: 0 0.25em;
}
a:hover {
background-color: gold;
}
img {
max-width: 100%;
height: auto;
width: auto;
}
}
#build-for-a-greater-cause {
h3 {
flex: 50%;
}
ul {
flex: 1 auto;
padding: 0rem;
list-style-type: none;
display: grid;
gap: 1rem;
grid-template-columns: 1fr;
counter-reset: card;
@media (min-width: 740px) {
& {
flex: 1 0 30rem;
padding: 2rem;
grid-template-columns: repeat(2, 1fr);
}
}
li {
padding: 0.5em;
background-color: #333;
position: relative;
h4 {
margin: 0;
padding-bottom: 0.5em;
}
}
}
}
</style>