Skip to content

Commit 1f2adef

Browse files
committed
Tickets with toc magic.
1 parent 76bfeb5 commit 1f2adef

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

src/components/ticket-tiers/ticket-tiers.astro

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const formatPrice = (price: number | string) => {
134134
---
135135

136136
<div class="ticket-tiers-container">
137-
<div class="grid grid-cols-1 lg:grid-cols-3 gap-10 md:gap-6 lg:gap-10">
137+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-3 py-24">
138138
{
139139
tiers.map((tier) => (
140140
<div class="bg-white text-black rounded-2xl p-6 pb-20 relative not-prose z-0">
@@ -203,19 +203,30 @@ const formatPrice = (price: number | string) => {
203203

204204
<style is:global>
205205
.ticket-tiers-container {
206-
width: 100vw;
207-
max-width: 1400px;
208-
margin-left: 50%;
209-
transform: translateX(-50%);
206+
width: 97vw;
207+
max-width: 1115px;
208+
/*margin-left: 50%;*/
209+
/*transform: translateX(-50%);*/
210210
position: relative;
211-
padding: 0 40px;
211+
/*padding: 0 40px;*/
212+
background: linear-gradient( to top,
213+
rgba(245, 229, 214, 0) 0%,
214+
rgb(245, 229, 214) 5%,
215+
rgb(245, 229, 214) 95%,
216+
rgba(245, 229, 214, 0
217+
) 100% )
218+
;
212219
}
213220

214-
@media (max-width: 768px) {
221+
@media (max-width: 1023px) {
215222
.ticket-tiers-container {
216-
width: 100%;
217-
padding: 0 10px;
218-
position: relative;
223+
max-width: 700px;
224+
/*max-width: 95vw;*/
225+
/*width: 100%;*/
226+
/*width: 100vw;*/
227+
/*padding: 0 10px;*/
228+
/*position: relative;*/
229+
219230
}
220231
}
221232
</style>

src/content/pages/tickets.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Tickets
33
subtitle:
44
Discover the latest Python trends, learn from 180+ expert speakers, network with fellow developers, enjoy social events, and explore open spaces to spark new ideas! Organized by the community for the community.
5-
toc: false
65
---
76

87
import TicketTiers from "../../components/ticket-tiers/ticket-tiers.astro";

0 commit comments

Comments
 (0)