Skip to content

Commit

Permalink
Merge pull request #9 from hackclub/faisal/landing
Browse files Browse the repository at this point in the history
feat: improve the landing page
  • Loading branch information
grymmy authored Jan 14, 2025
2 parents fc35fe7 + c4f47af commit 4d08c3f
Show file tree
Hide file tree
Showing 8 changed files with 241 additions and 30 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
144 changes: 114 additions & 30 deletions scenes/menu.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[gd_scene load_steps=15 format=3 uid="uid://cq5lurxxpg0m6"]
[gd_scene load_steps=26 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="Script" path="res://scripts/OpenUrl.gd" id="4_uxj7i"]
[ext_resource type="Texture2D" uid="uid://cnv1blqx06pxh" path="res://art/hackclub/flag-orpheus-top.png" id="5_r2vtw"]
[ext_resource type="Texture2D" uid="uid://bqqp3k8uklm0q" path="res://icon.png" id="6_30r1a"]
[ext_resource type="PackedScene" 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="Texture2D" uid="uid://dqlffb3i7uwy6" path="res://art/hackclub/play-button.png" id="9_iql0b"]

[sub_resource type="Environment" id="Environment_hmidh"]
background_mode = 1
Expand All @@ -32,16 +36,25 @@ texture_margin_right = 30.0
texture_margin_bottom = 30.0
region_rect = Rect2(6, 5, 501, 246)

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_pqisb"]
blend_mode = 1
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_wdinj"]

[sub_resource type="ViewportTexture" id="ViewportTexture_0jba3"]
viewport_path = NodePath("SubViewport")
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_maf7b"]

[sub_resource type="Environment" id="Environment_gk5e2"]
background_energy_multiplier = 0.0
ambient_light_source = 1
tonemap_mode = 3
[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"]

[node name="Menu" type="Node3D"]
script = ExtResource("1_kawqa")
Expand Down Expand Up @@ -79,17 +92,53 @@ 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="FlagButton" type="Button" parent="Panel"]
layout_mode = 0
offset_left = 26.0
offset_right = 401.0
offset_bottom = 208.0
mouse_default_cursor_shape = 2
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("4_uxj7i")
url = "https://hackclub.com"

[node name="TextureRect2" type="TextureRect" parent="Panel/FlagButton"]
layout_mode = 1
anchors_preset = 5
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 = 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 +148,58 @@ 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="GetStartedContainer" 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 = 30.0
offset_top = -140.0
offset_right = 693.0
offset_bottom = -30.0
grow_vertical = 0
texture = SubResource("ViewportTexture_0jba3")
mouse_default_cursor_shape = 2

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

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

[node name="TitleText" type="RichTextLabel" parent="Panel/GetStartedContainer"]
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 = 93
bbcode_enabled = true
text = "[b]Make a card![/b]"

[node name="GettingStartedButton" type="Button" parent="Panel"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 30.0
offset_top = -140.0
offset_right = 694.0
offset_bottom = -30.0
grow_vertical = 0
mouse_default_cursor_shape = 2
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("4_uxj7i")
url = "https://github.com/hackclub/hackstone/blob/main/README.md"

[node name="Node2D" type="Node2D" parent="Panel"]

[node name="Node" type="Node" parent="."]
script = ExtResource("3_3mbs6")
Expand All @@ -121,13 +210,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.363239, -0.926666, -0.2339
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
metadata/_edit_lock_ = true

[node name="SubViewport" type="SubViewport" parent="."]

[node name="Camera3D" type="Camera3D" parent="SubViewport"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.334301, 1.00952, 1.33931)
visible = false
environment = SubResource("Environment_gk5e2")

[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("7_nv0cn")
volume_db = -29.931
Expand All @@ -137,3 +219,5 @@ 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/FlagButton" to="Panel/FlagButton" method="_on_Button_pressed"]
[connection signal="pressed" from="Panel/GettingStartedButton" to="Panel/GettingStartedButton" method="_on_Button_pressed"]
16 changes: 16 additions & 0 deletions scripts/OpenUrl.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
extends Button

@export var url: String;

# 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

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

0 comments on commit 4d08c3f

Please sign in to comment.