Skip to content

Commit

Permalink
Add event page
Browse files Browse the repository at this point in the history
Signed-off-by: mohin7 <mohin@appscode.com>
  • Loading branch information
mohin7 committed Aug 19, 2024
1 parent ddcd706 commit 33e6ebb
Show file tree
Hide file tree
Showing 8 changed files with 23,467 additions and 4,315 deletions.
3 changes: 3 additions & 0 deletions content/events/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Events | AppsCode
---
85 changes: 85 additions & 0 deletions data/events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
{
"id":"1",
"date": "AUG 01 - 04, 2024",
"sort_date": "2024-08-01",
"title": "1 AUG KubeCon | CloudNativeCon 2024",
"description": "AUG The Cloud Native Computing Foundation’s flagship conference gathers adopters and technologists from leading open source and cloud native communities in Salt Lake City, Utah from November 12-15, 2024.",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"2",
"date": "SEP 01 - 04, 2024",
"sort_date": "2024-09-01",
"title": "2 KubeCon | CloudNativeCon 2024",
"description": "The Cloud Native Computing Foundation’s flagship conference gathers adopters and technologists from leading open source and cloud native communities in Salt Lake City, Utah from November 12-15, 2024.",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"3",
"date": "OCT 02 - 04, 2024",
"sort_date": "2024-10-02",
"title": "3 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"4",
"date": "NOV 03 - 04, 2024",
"sort_date": "2024-11-03",
"title": "4 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2",
"show": true
},
{
"id":"5",
"date": "DEC 03 - 04, 2024",
"sort_date": "2024-12-03",
"title": "5 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"6",
"date": "JAN 03 - 04, 2025",
"sort_date": "2025-01-03",
"title": "6 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"6",
"date": "FEB 03 - 04, 2025",
"sort_date": "2025-02-03",
"title": "7 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"6",
"date": "MAR 03 - 04, 2025",
"sort_date": "2025-03-03",
"title": "8 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2"
},
{
"id":"6",
"date": "APR 03 - 04, 2025",
"sort_date": "2025-04-03",
"title": "9 ContainerDays Conference",
"description": "The CDS family grows every year and you can't miss this fantastic learning experience...",
"meet_with_us": "#link1",
"event_details": "#link2"
}

]
14 changes: 14 additions & 0 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"arrow",
"arrows",
"back-button",
"badge",
"bb-1",
"bg-color-available",
"bg-gradient-1",
Expand Down Expand Up @@ -141,6 +142,7 @@
"disaster-recovery",
"dots-style",
"embeded-console-button",
"events-page",
"fa",
"fa-angle-down",
"fa-angle-up",
Expand Down Expand Up @@ -178,6 +180,7 @@
"gallery-area",
"gallery-card",
"gallery-wrapper",
"gap-4",
"go-to-top",
"h-6",
"h-right-content",
Expand All @@ -194,6 +197,7 @@
"has-text-right-tablet",
"has-text-weight-light",
"has-text-weight-semibold",
"has-text-white",
"header--fixed",
"header-items",
"header-left",
Expand All @@ -218,6 +222,8 @@
"is-10-desktop",
"is-10-tablet",
"is-12",
"is-2",
"is-2-desktop",
"is-3",
"is-4",
"is-4-desktop",
Expand All @@ -226,6 +232,7 @@
"is-6",
"is-6-desktop",
"is-6-tablet",
"is-6-touch",
"is-64x64",
"is-7",
"is-8",
Expand All @@ -239,6 +246,7 @@
"is-centered",
"is-checkradio",
"is-danger",
"is-elipsis-4",
"is-ellipsis-2",
"is-ellipsis-3",
"is-ellipsis-4",
Expand All @@ -254,6 +262,7 @@
"is-full-touch",
"is-fullwidth",
"is-gap-4",
"is-gap-8",
"is-gradient",
"is-half-mobile",
"is-half-tablet",
Expand Down Expand Up @@ -283,6 +292,7 @@
"is-one-third-tablet",
"is-one-third-widescreen",
"is-one-thirds-fullhd",
"is-outlined",
"is-paddingless",
"is-paddingless-desktop",
"is-primary",
Expand All @@ -303,6 +313,7 @@
"is-variable",
"is-vcentered",
"is-warning",
"is-white",
"item",
"kd-left-sidebar",
"kd-sidebar-menu",
Expand Down Expand Up @@ -398,6 +409,7 @@
"pr-20",
"pr-40",
"pr-60",
"primary-gradient",
"product-description",
"product-info",
"product-logo",
Expand All @@ -409,6 +421,7 @@
"provisioing",
"provisioning",
"pt-0",
"pt-40",
"quote-icon",
"reg-illustration",
"register-notification",
Expand All @@ -432,6 +445,7 @@
"single-brand",
"single-card",
"single-contact-info",
"single-event",
"single-feature",
"single-footer-widget",
"single-input-form",
Expand Down
77 changes: 77 additions & 0 deletions layouts/_default/events.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{{ define "header-bottom" }}
<section></section>
{{ end }}

{{ define "main" }}

<section class="events-page">
<div class="container">
<div class="columns is-multiline">
{{ $currentDate := now.Format "2006-01-02" }} <!-- Format current date -->

<!-- Get the latest event -->
{{ $sortedEvents := sort (where $.Site.Data.events "sort_date" "ge" $currentDate) "sort_date" "ase" }}
{{ $lastEvent := first 1 $sortedEvents }}
{{ range $event := $lastEvent }}
<div class="column is-full-mobile is-6-tablet is-8-desktop">
<div class="single-event primary-gradient">
<div class="is-flex is-justify-content-space-between">
<span class="date">{{ $event.date }}</span>
<span class="badge tag">UPCOMING</span>
</div>
<h2>{{ $event.title }}</h2>
<p class="is-ellipsis-4">{{ $event.description }}</p>

<div class="buttons is-gap-8">
<a href="{{ $event.meet_with_us }}" class="button ac-button is-primary">Join with us</a>
<a href="{{ $event.event_details }}" class="button ac-button is-transparent has-text-white">Event Details</a>
</div>
</div>
</div>
{{ end }}

<!-- Display the rest of the events excluding the last one -->
{{ $lastEventID := (index $sortedEvents 0).id }}
{{ $restEvents := where $sortedEvents "id" "!=" $lastEventID }}

{{ range $event := sort $restEvents "sort_date" "ase" }}
<div class="column is-full-mobile is-6-tablet is-4-desktop">
<div class="single-event">
<div class="is-flex is-justify-content-space-between">
<span class="date">{{ $event.date }}</span>
</div>
<h2>{{ $event.title }}</h2>
<p class="is-ellipsis-4">{{ $event.description }}</p>

<div class="buttons is-gap-8">
<a href="{{ $event.meet_with_us }}" class="button ac-button is-outlined">Join with us</a>
<a href="{{ $event.event_details }}" class="button ac-button is-transparent">Event Details</a>
</div>
</div>
</div>
{{ end }}



</div>
<!-- <div class="columns is-centered">
<div class="column is-full-mobile is-2-desktop">
<button class="button ac-button is-outlined is-fullwidth">View More</button>
</div>
</div> -->
</div>
</section>

{{ end }}

{{ define "testimonial" }}
<section></section>
{{ end }}

{{ define "customer-logos" }}
<section></section>
{{ end }}

{{ define "cta-install" }}
<section></section>
{{ end }}
6 changes: 3 additions & 3 deletions layouts/partials/helpers/style-bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css" media="print" onload="this.media='all'">

<!-- Load custom CSS asynchronously -->
<!-- <link rel="stylesheet" href="/assets/sass/main.css"> -->
<link rel="stylesheet" href="/assets/sass/main.css">

{{ with $style := resources.Get "/assets/sass/main.css" | resources.PostCSS | resources.Minify | resources.Fingerprint }}
<!-- {{ with $style := resources.Get "/assets/sass/main.css" | resources.PostCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ end }}
{{ end }} -->
Loading

0 comments on commit 33e6ebb

Please sign in to comment.