Skip to content

Commit

Permalink
Preparing for JerseyCTF2024
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicPhoenix committed Jan 17, 2024
1 parent 5d84168 commit 5f0ad3f
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 121 deletions.
7 changes: 6 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ li{
height: 75px;
}

.centered {
margin-left: auto;
margin-right: auto;
}

[id='Code of Conduct'] > p,
[id='Privacy Policy'] > p{
padding: .5% 4% .5% 4%;
Expand All @@ -79,4 +84,4 @@ li{
[id='Code of Conduct'] > h3,
[id='Privacy Policy'] > h3{
font-weight: bold;
}
}
122 changes: 61 additions & 61 deletions src/lib/speakers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
// Segment Number refers to how one wishes to break down
// cards
const (
SEGMENT_NUM = 5
SEGMENT_NUM = 1
)

type SpeakerStruct struct {
Pic string
Name string
Position string
Talk string
Time string
Time string
}

// Copy and Paste Add
Expand All @@ -30,62 +30,65 @@ type SpeakerStruct struct {

func GetSpeakers() []SpeakerStruct {
return []SpeakerStruct{
{
Pic: "JohnHammond.png",
Name: "John Hammond",
Position: "Cybersecurity Researcher, Educator & Content Creator",
Talk: "Cybersecurity Shop Talk",
Time: "",
},
{
Pic: "CelinePedalino.jpg",
Name: "Celine Pedalino",
Position: "SOC Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "SeonukKim.jpg",
Name: "Seonuk Kim",
Position: "SOC Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "TrentMeyers.jpg",
Name: "Trent Meyers",
Position: "SOC Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "SwathiParthibha.jpg",
Name: "Swathi Parthibha",
Position: "Security Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "personPlaceholder.png",
Name: "Andrew Garcia",
Position: "Security Analyst at the NJCCIC",
Talk: "Two-Factor Authentication: Not as Secure as You Think",
Time: "",
},
{
Pic: "IlanPonimansky.jpg",
Name: "Ilan Ponimansky",
Position: "Staff Cloud Security Engineer at Block",
Talk: "Acing your Cloud Security Interviews AMA",
Time: "",
},
{
Pic: "personPlaceholder.png",
Name: "Kevin Conklin",
Position: "Cyber National Security Supervisory Special Agent at FBI Newark",
Talk: "Inside the FBI Cyber Program",
Time: "",
},
{},
/*
{
Pic: "JohnHammond.png",
Name: "John Hammond",
Position: "Cybersecurity Researcher, Educator & Content Creator",
Talk: "Cybersecurity Shop Talk",
Time: "",
},
{
Pic: "CelinePedalino.jpg",
Name: "Celine Pedalino",
Position: "SOC Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "SeonukKim.jpg",
Name: "Seonuk Kim",
Position: "SOC Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "TrentMeyers.jpg",
Name: "Trent Meyers",
Position: "SOC Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "SwathiParthibha.jpg",
Name: "Swathi Parthibha",
Position: "Security Analyst at the NJCCIC",
Talk: "Behind the Scenes of Cyber Defense: A Look into the SOC",
Time: "",
},
{
Pic: "personPlaceholder.png",
Name: "Andrew Garcia",
Position: "Security Analyst at the NJCCIC",
Talk: "Two-Factor Authentication: Not as Secure as You Think",
Time: "",
},
{
Pic: "IlanPonimansky.jpg",
Name: "Ilan Ponimansky",
Position: "Staff Cloud Security Engineer at Block",
Talk: "Acing your Cloud Security Interviews AMA",
Time: "",
},
{
Pic: "personPlaceholder.png",
Name: "Kevin Conklin",
Position: "Cyber National Security Supervisory Special Agent at FBI Newark",
Talk: "Inside the FBI Cyber Program",
Time: "",
},
*/
}
}

Expand All @@ -104,8 +107,6 @@ func Speaker(w http.ResponseWriter, tpl *template.Template) {

tpl.ExecuteTemplate(w, "speaker-start", nil)



tpl.ExecuteTemplate(w, "speaker-card-group-start", nil)

for _, speaker := range speakers {
Expand All @@ -114,7 +115,6 @@ func Speaker(w http.ResponseWriter, tpl *template.Template) {

tpl.ExecuteTemplate(w, "speaker-div-end", nil)


tpl.ExecuteTemplate(w, "speaker-div-end", nil)

}
96 changes: 48 additions & 48 deletions src/lib/sponsors.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package lib

type Tier struct {
Spons []Sponsor
Spons []Sponsor
TierName string
CSSName string
CSSName string
}

type Sponsor struct {
Expand All @@ -26,67 +26,67 @@ func GetSponsors() Sponsors {
Width: "200",
},
}

ciso := []Sponsor{
}

manager := []Sponsor{
}

ciso := []Sponsor{}

manager := []Sponsor{}

analyst := []Sponsor{
{
HREF: "https://www.paloaltonetworks.com/",
Source: "palo_alto_logo.png",
ALT: "Palo Alto",
Width: "400",
},
{
HREF: "https://cloud.google.com/",
Source: "google_logo.gif",
ALT: "Google",
Width: "200",
},
{
HREF: "https://www.github.com/",
Source: "github_logo.png",
ALT: "GitHub",
Width: "150",
},
{
HREF: "https://www.offsec.com/",
Source: "offsec_logo.jpg",
ALT: "OffSec",
Width: "400",
},
{
HREF: "https://www.specterops.io",
Source: "specterops_logo.png",
ALT: "SpecterOps",
Width: "400",
},
/*
{
HREF: "https://www.paloaltonetworks.com/",
Source: "palo_alto_logo.png",
ALT: "Palo Alto",
Width: "400",
},
{
HREF: "https://cloud.google.com/",
Source: "google_logo.gif",
ALT: "Google",
Width: "200",
},
{
HREF: "https://www.github.com/",
Source: "github_logo.png",
ALT: "GitHub",
Width: "150",
},
{
HREF: "https://www.offsec.com/",
Source: "offsec_logo.jpg",
ALT: "OffSec",
Width: "400",
},
{
HREF: "https://www.specterops.io",
Source: "specterops_logo.png",
ALT: "SpecterOps",
Width: "400",
},
*/
}

tiers := []Tier{
{
Spons: title,
Spons: title,
TierName: "Title Sponsor",
CSSName: "sponsor-title",
CSSName: "sponsor-title",
},

{
Spons: ciso,
Spons: ciso,
TierName: "CISO Sponsor",
CSSName: "sponsor-ciso",
CSSName: "sponsor-ciso",
},
{
Spons: manager,
Spons: manager,
TierName: "Security Manager Sponsor",
CSSName: "sponsor-manager",
CSSName: "sponsor-manager",
},
{
Spons: analyst,
Spons: analyst,
TierName: "Security Analyst Sponsor",
CSSName: "sponsor-analyst",
CSSName: "sponsor-analyst",
},
}

Expand Down
5 changes: 4 additions & 1 deletion src/templates/schedule.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{{block "schedule" .}}
<div id="Schedule" class="row justify-content-evenly">
<h4 class="jerctf">@schedule</h4>
<img src="/assets/img/JCTFIII/JCTF_III_Run_of_Show.png" class="col-md-6 col-lg-6 col-sm-12 sched">
<div class="card-body centered">
<h5 style="font-weight: bold; text-align: center;">Event Schedule Coming Soon</h5>
</div>
<!-- <img src="/assets/img/JCTFIII/JCTF_III_Run_of_Show.png" class="col-md-6 col-lg-6 col-sm-12 sched"> -->
<!--<iframe
src="https://calendar.google.com/calendar/embed?height=600&amp;wkst=1&amp;bgcolor=%23D50000&amp;ctz=America%2FNew_York&amp;src=N2xmZmRsdmVjZHB2ZXVjdjR2NTVobWlmOW9AZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ&amp;color=%234285F4&amp;mode=AGENDA"
style="border:solid 1px #777" width="800" height="600" frameborder="0" scrolling="no"></iframe>-->
Expand Down
26 changes: 16 additions & 10 deletions src/templates/speakers.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,26 @@ <h4 class="jerctf">@speakers</h4>
{{end}}

{{block "speaker-card" .}}
{{if .Name}}
<div class="col-md-4 col-lg-3 col-sm-6">
<div class="card h-100" style="padding: 1rem;">
<img src="/assets/img/speaker/{{.Pic}}" class="card-img-top" alt="{{.Name}}">
<div class="card-body">
<h5 style="font-weight: bold;" class="card-title">{{.Name}}</h5>
<h6 class="card-text">{{.Time}}</h6>
<p class="card-text">{{.Position}}</p>
{{if .Talk}}
<p class="card-text">Speaker Topic: <i>{{.Talk}}</i></p>
{{end}}

</div>
<img src="/assets/img/speaker/{{.Pic}}" class="card-img-top" alt="{{.Name}}">
<div class="card-body">
<h5 style="font-weight: bold;" class="card-title">{{.Name}}</h5>
<h6 class="card-text">{{.Time}}</h6>
<p class="card-text">{{.Position}}</p>
{{if .Talk}}
<p class="card-text">Speaker Topic: <i>{{.Talk}}</i></p>
{{end}}
</div>
</div>
</div>
{{else}}
<div class="row justify-content-evenly">
<h5 style="font-weight: bold; text-align: center;">Speaker Information Coming Soon</h5>
</div>
{{end}}

{{end}}

{{block "speaker-div-end" .}}
Expand Down

0 comments on commit 5f0ad3f

Please sign in to comment.