-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.astro
125 lines (109 loc) · 2.41 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
---
import OpenGraph from '@components/OpenGraph.astro'
import Layout from '@layouts/Layout.astro'
const options = {
title: 'Boilerplate | UXCorpRangel',
description:
'Boilerplate que incluye integraciones y configuraciones enfocadas en buenas prácticas para construir sitios rápidos, accesibles y listos para producción.'
}
---
<Layout options={options}>
<OpenGraph
description={options.description}
image="/og/og.jpg"
slot="social-media"
title={options.title}
/>
<main>
<header class="hero">
<img alt="" aria-hidden="true" class="hero-pawprint-1" src="/public/svg/paw-print.svg" />
<img alt="" aria-hidden="true" class="hero-pawprint-2" src="/public/svg/paw-print.svg" />
<figure>
<img alt="Logo de UXCorpRangel Badges" class="hero-logo" src="/public/svg/logo-uxcorpbadges.svg" />
</figure>
<img alt="" aria-hidden="true" class="dog-bone-1" src="/public/svg/dog-bone.svg" />
<img alt="" aria-hidden="true" class="dog-bone-2" src="/public/svg/dog-bone.svg" />
</header>
<div class="pattern-border" />
</main>
</Layout>
<style>
main {
margin: auto;
padding: 1rem;
width: 58.75rem;
height: calc(100vh - 58px);
max-width: calc(100% - 1rem);
color: white;
font-size: 20px;
line-height: 1.6;
}
.hero {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.hero-logo {
aspect-ratio: 1 / 1;
}
.hero-pawprint-1 {
position: absolute;
left: 6%;
top: 25%;
}
.hero-pawprint-2 {
position: absolute;
left: 0;
top: 50%;
}
.dog-bone-1 {
position: absolute;
right: 6%;
top: 25%;
}
.dog-bone-2 {
position: absolute;
right: 0;
top: 50%;
rotate: 90deg;
}
.pattern-border {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 24px;
background: repeating-linear-gradient(
90deg,
black,
black 24px,
white 24px,
white 48px
);
box-sizing: border-box;
}
@media (width < 768px) {
.main {
padding: 0;
width: 100%;
}
.hero-pawprint-1, .hero-pawprint-2, .dog-bone-1, .dog-bone-2{
width: 20%;
}
.here-pawprint-1 {
left: 6%;
}
.hero-pawprint-2 {
left: 0;
top: 42%;
}
.dog-bone-1 {
right: 6%;
}
.dog-bone-2 {
right: 0;
top: 40%;
}
}
</style>