Skip to content

Commit

Permalink
feat: improve the landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalsayed10 committed Dec 18, 2024
1 parent fc35fe7 commit 1c02cef
Show file tree
Hide file tree
Showing 11 changed files with 339 additions and 17 deletions.
3 changes: 3 additions & 0 deletions art/hackclub/flag-orpheus-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions art/hackclub/flag-orpheus-top.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cnv1blqx06pxh"
path="res://.godot/imported/flag-orpheus-top.png-78409f74963b1bbf2b858d753fcc1314.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://art/hackclub/flag-orpheus-top.png"
dest_files=["res://.godot/imported/flag-orpheus-top.png-78409f74963b1bbf2b858d753fcc1314.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
3 changes: 3 additions & 0 deletions art/hackclub/github-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions art/hackclub/github-mark.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://l3l65hyw5t0"
path="res://.godot/imported/github-mark.png-84f4edac2751fe3f350abbe237a58251.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://art/hackclub/github-mark.png"
dest_files=["res://.godot/imported/github-mark.png-84f4edac2751fe3f350abbe237a58251.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
3 changes: 3 additions & 0 deletions art/hackclub/play-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions art/hackclub/play-button.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://dqlffb3i7uwy6"
path="res://.godot/imported/play-button.png-142674dc0f2e53e499b7f37b4d8d6e63.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://art/hackclub/play-button.png"
dest_files=["res://.godot/imported/play-button.png-142674dc0f2e53e499b7f37b4d8d6e63.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
2 changes: 1 addition & 1 deletion scenes/main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[ext_resource type="Script" path="res://scripts/DragController.gd" id="9_slc2b"]
[ext_resource type="Script" path="res://scripts/Notifier.gd" id="10_yh5st"]
[ext_resource type="Resource" uid="uid://d3f4j3k5ep0ew" path="res://sounds/defaults.tres" id="12_g1dgu"]
[ext_resource type="PackedScene" path="res://components/city_scape.tscn" id="13_i4787"]
[ext_resource type="PackedScene" uid="uid://dsw0npqbxdtpj" path="res://components/city_scape.tscn" id="13_i4787"]
[ext_resource type="Script" path="res://scripts/CardDisplayController.gd" id="13_kk3ip"]
[ext_resource type="Texture2D" uid="uid://bnwngrd34ng6o" path="res://art/counterspell_hackclub/Reference/cloud1.png" id="20_m3ydw"]
[ext_resource type="PackedScene" uid="uid://4cw3cdp1kc87" path="res://components/avatar.tscn" id="21_5rpq5"]
Expand Down
192 changes: 176 additions & 16 deletions scenes/menu.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
[gd_scene load_steps=15 format=3 uid="uid://cq5lurxxpg0m6"]
[gd_scene load_steps=32 format=3 uid="uid://cq5lurxxpg0m6"]

[ext_resource type="Script" path="res://scripts/MainMenu.gd" id="1_kawqa"]
[ext_resource type="Texture2D" uid="uid://dhrki7qfnf2ng" path="res://art/counterspell_hackclub/Reference/pink_button_hover.png" id="2_nuhov"]
[ext_resource type="Script" path="res://scripts/FpsCounter.gd" id="3_3mbs6"]
[ext_resource type="Texture2D" uid="uid://cnnpcx755qf7q" path="res://art/counterspell_hackclub/Reference/pink_button.png" id="3_65mxl"]
[ext_resource type="FontFile" uid="uid://c4daplyykkrh0" path="res://fonts/phantomsans/PhantomSans0.8-Bold.otf" id="4_s4ja2"]
[ext_resource type="PackedScene" path="res://components/city_scape.tscn" id="7_nmblm"]
[ext_resource type="Texture2D" uid="uid://cnv1blqx06pxh" path="res://art/hackclub/flag-orpheus-top.png" id="5_r2vtw"]
[ext_resource type="Script" path="res://scenes/open_hackclub_url.gd" id="5_vbfap"]
[ext_resource type="Texture2D" uid="uid://bqqp3k8uklm0q" path="res://icon.png" id="6_30r1a"]
[ext_resource type="PackedScene" uid="uid://dsw0npqbxdtpj" path="res://components/city_scape.tscn" id="7_nmblm"]
[ext_resource type="AudioStream" uid="uid://b4pcqqgpo8ssa" path="res://sounds/background_menu_music.ogg" id="7_nv0cn"]
[ext_resource type="Script" path="res://scenes/open_github.gd" id="8_2q2h4"]
[ext_resource type="Texture2D" uid="uid://l3l65hyw5t0" path="res://art/hackclub/github-mark.png" id="8_5p5w7"]
[ext_resource type="Texture2D" uid="uid://dqlffb3i7uwy6" path="res://art/hackclub/play-button.png" id="9_iql0b"]
[ext_resource type="Script" path="res://scenes/open_get_started.gd" id="10_v3cit"]

[sub_resource type="Environment" id="Environment_hmidh"]
background_mode = 1
Expand Down Expand Up @@ -38,6 +45,26 @@ blend_mode = 1
[sub_resource type="ViewportTexture" id="ViewportTexture_0jba3"]
viewport_path = NodePath("SubViewport")

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_wdinj"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_maf7b"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_kprfh"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_udjrh"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ahxi3"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_r84am"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_tsm1a"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_n1fvq"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_x48y1"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ewflp"]

[sub_resource type="Environment" id="Environment_gk5e2"]
background_energy_multiplier = 0.0
ambient_light_source = 1
Expand Down Expand Up @@ -79,17 +106,64 @@ theme_override_styles/hover = SubResource("StyleBoxTexture_h047p")
theme_override_styles/normal = SubResource("StyleBoxTexture_hsu72")
text = "PLAY"

[node name="TitleText" type="RichTextLabel" parent="Panel"]
[node name="TextureRect" type="TextureRect" parent="Panel"]
visible = false
material = SubResource("CanvasItemMaterial_pqisb")
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -509.0
offset_right = 512.0
offset_bottom = 3.0
grow_vertical = 0
texture = SubResource("ViewportTexture_0jba3")

[node name="Button" type="Button" parent="Panel"]
layout_mode = 0
offset_left = 26.0
offset_right = 401.0
offset_bottom = 208.0
theme_override_styles/focus = SubResource("StyleBoxEmpty_wdinj")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_maf7b")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kprfh")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_udjrh")
theme_override_styles/normal = SubResource("StyleBoxEmpty_ahxi3")
flat = true
script = ExtResource("5_vbfap")

[node name="TextureRect2" type="TextureRect" parent="Panel/Button"]
layout_mode = 1
offset_left = 13.0
offset_right = 385.0
offset_bottom = 209.0
texture = ExtResource("5_r2vtw")
expand_mode = 2

[node name="TitleContainer" type="HBoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 5
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
offset_left = -708.0
offset_top = 180.0
offset_right = 680.18
offset_bottom = 490.18
anchor_bottom = 0.5
offset_left = -960.0
offset_top = -279.0
offset_right = 961.0
offset_bottom = -8.0
grow_horizontal = 2
pivot_offset = Vector2(672.86, 0)
grow_vertical = 2
alignment = 1

[node name="TextureRect" type="TextureRect" parent="Panel/TitleContainer"]
layout_mode = 2
texture = ExtResource("6_30r1a")
expand_mode = 2

[node name="TitleText" type="RichTextLabel" parent="Panel/TitleContainer"]
custom_minimum_size = Vector2(1200, 240)
layout_mode = 2
size_flags_vertical = 4
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_y = 16
theme_override_constants/shadow_offset_x = 11
Expand All @@ -99,18 +173,101 @@ theme_override_font_sizes/bold_font_size = 211
bbcode_enabled = true
text = "[center][b]HACKSTONE[/b][/center]"

[node name="TextureRect" type="TextureRect" parent="Panel"]
visible = false
material = SubResource("CanvasItemMaterial_pqisb")
[node name="FooterContainer1" type="HBoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -509.0
offset_right = 512.0
offset_bottom = 3.0
offset_left = 40.0
offset_top = -150.0
offset_right = 662.0
offset_bottom = -40.0
grow_vertical = 0
texture = SubResource("ViewportTexture_0jba3")

[node name="TextureRect" type="TextureRect" parent="Panel/FooterContainer1"]
layout_mode = 2
texture = ExtResource("8_5p5w7")
expand_mode = 2

[node name="TextureRect2" type="TextureRect" parent="Panel/FooterContainer1"]
custom_minimum_size = Vector2(15, 0)
layout_mode = 2

[node name="TitleText" type="RichTextLabel" parent="Panel/FooterContainer1"]
custom_minimum_size = Vector2(480, 110)
layout_mode = 2
size_flags_vertical = 4
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_fonts/bold_font = ExtResource("4_s4ja2")
theme_override_font_sizes/bold_font_size = 100
bbcode_enabled = true
text = "[b]Contribute[/b]"

[node name="FooterContainer2" type="HBoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -703.0
offset_top = -150.0
offset_right = -40.0
offset_bottom = -40.0
grow_horizontal = 0
grow_vertical = 0

[node name="TextureRect" type="TextureRect" parent="Panel/FooterContainer2"]
layout_mode = 2
texture = ExtResource("9_iql0b")
expand_mode = 2

[node name="TextureRect2" type="TextureRect" parent="Panel/FooterContainer2"]
custom_minimum_size = Vector2(15, 0)
layout_mode = 2

[node name="TitleText" type="RichTextLabel" parent="Panel/FooterContainer2"]
custom_minimum_size = Vector2(530, 110)
layout_mode = 2
size_flags_vertical = 4
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_fonts/bold_font = ExtResource("4_s4ja2")
theme_override_font_sizes/bold_font_size = 100
bbcode_enabled = true
text = "[b]Get Started[/b]"

[node name="URLButtonFooter1" type="Button" parent="Panel"]
layout_mode = 2
offset_left = 31.0
offset_top = 930.0
offset_right = 665.0
offset_bottom = 1040.0
theme_override_styles/focus = SubResource("StyleBoxEmpty_r84am")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_tsm1a")
theme_override_styles/hover = SubResource("StyleBoxEmpty_n1fvq")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_x48y1")
theme_override_styles/normal = SubResource("StyleBoxEmpty_ewflp")
flat = true
script = ExtResource("8_2q2h4")

[node name="URLButtonFooter2" type="Button" parent="Panel"]
layout_mode = 2
offset_left = 1211.0
offset_top = 930.0
offset_right = 1875.0
offset_bottom = 1040.0
theme_override_styles/focus = SubResource("StyleBoxEmpty_r84am")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_tsm1a")
theme_override_styles/hover = SubResource("StyleBoxEmpty_n1fvq")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_x48y1")
theme_override_styles/normal = SubResource("StyleBoxEmpty_ewflp")
flat = true
script = ExtResource("10_v3cit")

[node name="Button2" type="Button" parent="Panel"]
layout_mode = 0
offset_right = 8.0
offset_bottom = 8.0

[node name="Node" type="Node" parent="."]
script = ExtResource("3_3mbs6")
Expand All @@ -137,3 +294,6 @@ parameters/looping = true
[node name="CityScape" parent="." instance=ExtResource("7_nmblm")]

[connection signal="pressed" from="Panel/PlayButton" to="." method="goto_main"]
[connection signal="pressed" from="Panel/Button" to="Panel/Button" method="_on_Button_pressed"]
[connection signal="pressed" from="Panel/URLButtonFooter1" to="Panel/URLButtonFooter1" method="_on_Button_pressed"]
[connection signal="pressed" from="Panel/URLButtonFooter2" to="Panel/URLButtonFooter2" method="_on_Button_pressed"]
17 changes: 17 additions & 0 deletions scenes/open_get_started.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends Button


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

var url = "https://github.com/hackclub/hackstone/blob/main/README.md"

func _on_Button_pressed():
# Open the URL in the default web browser
OS.shell_open(url)
17 changes: 17 additions & 0 deletions scenes/open_github.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends Button


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

var url = "https://github.com/hackclub/hackstone"

func _on_Button_pressed():
# Open the URL in the default web browser
OS.shell_open(url)
Loading

0 comments on commit 1c02cef

Please sign in to comment.