Skip to content

Commit 0085cb6

Browse files
committed
add services rules
1 parent 0ae7ca9 commit 0085cb6

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

src/Redirects.elm

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Redirects exposing (discordURL, githubURL)
1+
module Redirects exposing (..)
22

33
-- There has to be a better way of doing this...
44

@@ -9,3 +9,11 @@ discordURL =
99

1010
githubURL =
1111
"https://github.com/TheDeveloperDen"
12+
13+
14+
paidServicesURL =
15+
"https://discord.com/channels/821743100203368458/1024625154107654234"
16+
17+
18+
freeServicesURL =
19+
"https://discord.com/channels/821743100203368458/1037763084485406760"

src/Views/Rules.elm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ module Views.Rules exposing (Model, Msg, view)
33
import Browser.Navigation as Nav
44
import Html exposing (Html, a, div, h1, h2, h3, h4, text)
55
import Html.Attributes exposing (class, href)
6+
import Redirects exposing (freeServicesURL, paidServicesURL)
7+
import Route
68
import Tailwind as Tw
79

810

@@ -44,7 +46,7 @@ view _ =
4446
, ruleLine [ text "d. Keep shitposts to ", inlineLink "#🌞-random" "https://discord.com/channels/821743100203368458/932661343520194640", text " as much as possible." ]
4547
, ruleLine [ text "e. You can share things you've made in ", inlineLink "#💫-showcase" "https://discord.com/channels/821743100203368458/847936633964724254", text " (read the pinned message before posting)." ]
4648
, ruleHeader "5. Other stuff"
47-
, ruleLine [ text "a. Hiring freelancers & offering services is currently not permitted." ]
49+
, ruleLine [ text "a. Hiring freelancers & offering services must be done in ", inlineLink "#💰-paid-services" paidServicesURL, text " and ", inlineLink "🆓-free-services" freeServicesURL, text ". Before posting, make sure you've read the ", inlineLink "rules" (Route.routeToString Route.ServicesRules), text " for those channels." ]
4850
, ruleLine [ text "b. Don't minimod." ]
4951
, ruleLine [ text "c. Don't try and find loopholes in rules." ]
5052
, ruleLine [ text "d. Staff reserve the right to punish anyone even if they haven't explicitly broken any rules." ]

src/Views/ServicesRules.elm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module Views.ServicesRules exposing (Model, Msg, view)
33
import Browser.Navigation as Nav
44
import Html exposing (Html, a, b, div, h1, h2, h3, i, li, p, text, ul)
55
import Html.Attributes exposing (class, href)
6+
import Redirects exposing (freeServicesURL, paidServicesURL)
67
import Tailwind as Tw
78

89

@@ -22,7 +23,7 @@ view _ =
2223
div [ Tw.bg_opacity_80, Tw.bg_gray_700, Tw.w_full, Tw.flex_1, Tw.text_white, Tw.flex, Tw.flex_col ]
2324
[ div [ Tw.ml_16, Tw.mr_16, Tw.mb_20 ]
2425
[ h1 [ Tw.text_6xl, class "montserrat", Tw.mt_2, Tw.py_2, Tw.text_center ] [ text "Services Rules" ]
25-
, h2 [ Tw.text_2xl, Tw.py_2, Tw.font_titillium, Tw.text_center ] [ text "Rules for posting in ", inlineLink "#💰-paid-services" "https://discord.com/channels/821743100203368458/1024625154107654234", text " and ", inlineLink "🆓-free-services" "https://discord.com/channels/821743100203368458/1037763084485406760" ]
26+
, h2 [ Tw.text_2xl, Tw.py_2, Tw.font_titillium, Tw.text_center ] [ text "Rules for posting in ", inlineLink "#💰-paid-services" paidServicesURL, text " and ", inlineLink "🆓-free-services" freeServicesURL ]
2627
, ruleHeader "Global Rules"
2728
, rulesList
2829
[ i [] [ text "In all rules, the term 'host' refers to someone offering their services and the term 'client' refers to anyone seeking the services of a host." ]
@@ -39,7 +40,7 @@ view _ =
3940
]
4041
, ruleHeader "Paid Services"
4142
, rulesList
42-
[ i [] [ text "These rules only apply to ", inlineLink "#💰-paid-services" "https://discord.com/channels/821743100203368458/1024625154107654234", text "." ]
43+
[ i [] [ text "These rules only apply to ", inlineLink "#💰-paid-services" paidServicesURL, text "." ]
4344
, div []
4445
[ text "This channel is for offering or requesting "
4546
, b [] [ text "paid" ]
@@ -51,7 +52,7 @@ view _ =
5152
]
5253
, ruleHeader "Free Services"
5354
, rulesList
54-
[ i [] [ text "These rules only apply to ", inlineLink "🆓-free-services" "https://discord.com/channels/821743100203368458/1037763084485406760", text "." ]
55+
[ i [] [ text "These rules only apply to ", inlineLink "🆓-free-services" freeServicesURL, text "." ]
5556
, div []
5657
[ text "This channel is only for "
5758
, b [] [ text "offering" ]

0 commit comments

Comments
 (0)