Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
About view new update
Browse files Browse the repository at this point in the history
  • Loading branch information
anubhavpulkit committed Apr 7, 2020
1 parent 9cebf70 commit 4b14009
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 63 deletions.
15 changes: 15 additions & 0 deletions Powerup/AboutViewController.swift
Expand Up @@ -7,10 +7,25 @@ class AboutViewController: UIViewController {
dismiss(animated: true, completion: nil)
}

@IBOutlet weak var aboutViewText: UITextView!


override func viewDidAppear(_ animated: Bool) {
addPopup()
text(desc: aboutText)

}

func text(desc: String){
aboutViewText.text! = desc
aboutViewText.textColor? = #colorLiteral(red: 0.3803921569, green: 0.6, blue: 0.6928837435, alpha: 1)
aboutViewText.safeAreaInsets.left
aboutViewText.safeAreaInsets.right
aboutViewText.safeAreaInsets.bottom
aboutViewText.font = UIFont(name: "Arial", size: 20)

}

func addPopup() {
let model = PopupEvent(topText: "Made with ♥",
botText: "by Systers Open Source",
Expand Down
75 changes: 12 additions & 63 deletions Powerup/Base.lproj/Main.storyboard
Expand Up @@ -24,67 +24,13 @@
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="about_background" translatesAutoresizingMaskIntoConstraints="NO" id="tEY-r5-Byb">
<rect key="frame" x="0.0" y="0.0" width="667" height="375"/>
</imageView>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" usesAttributedText="YES" allowsEditingTextAttributes="YES" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FdT-xN-nZO">
<rect key="frame" x="35" y="61.5" width="400" height="298.5"/>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" misplaced="YES" editable="NO" usesAttributedText="YES" allowsEditingTextAttributes="YES" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FdT-xN-nZO">
<rect key="frame" x="35" y="62" width="464" height="299"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="400" id="D4I-aU-tqT"/>
<constraint firstAttribute="width" constant="500" id="D4I-aU-tqT" userLabel="width = 500"/>
</constraints>
<attributedString key="attributedText">
<fragment content="The Game ">
<attributes>
<color key="NSColor" red="0.3803921569" green="0.59999999999999998" blue="0.69288374350000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" size="24" name="Arial-BoldItalicMT"/>
<font key="NSOriginalFont" size="24" name="Arial-BoldItalicMT"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment>
<string key="content">PowerUp is an educational choose-your-own-adventure game for girls between the age of 12 and 14. The game consists of different scenarios in which the user can choose between multiple answers and thereby lead the conversation into different directions. The user can create a personalized avatar by choosing clothes, hair eye and skin color. Later on the avatar can be further customized and other accessories can be bought using points earned in the scenarios. Additional mini games contain key information surrounding reproductive health and provide a break from the storyline.</string>
<attributes>
<color key="NSColor" red="0.3803921569" green="0.59999999999999998" blue="0.69288374350000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" size="18" name="ArialMT"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment>
<string key="content">

Why this app is needed? </string>
<attributes>
<color key="NSColor" red="0.3803921569" green="0.59999999999999998" blue="0.69288374350000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" size="24" name="Arial-BoldItalicMT"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment>
<string key="content">Increased exposure among preadolescents aged 12-14 to sexualized media has normalized engagement in sexual activity at younger ages. However information regarding sex is not very accessible to preadolescents. Only 65% of schools provide sex education and even less explain condom use. Having the talk at home is usually very awkward. Preadolescent girls need better options for reproductive health and self-esteem education. They are at risk for possible pregnancy and spread of sexually transmitted infection (STI), yet very little information reaches preadolescents about risk and responsibility associated with sex. Additionally, preadolescents struggle with self-esteem, which makes them vulnerable to peer and media influence. Current trends in sexual activity among preadolescents impact the economy, hurt family cohesion, affect female education, and burden healthcare systems.</string>
<attributes>
<color key="NSColor" red="0.3803921569" green="0.59999999999999998" blue="0.69288374350000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" size="18" name="ArialMT"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment>
<string key="content">

How does PowerUp help teenagers?
</string>
<attributes>
<color key="NSColor" red="0.3803921569" green="0.59999999999999998" blue="0.69288374350000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" size="24" name="Arial-BoldItalicMT"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment>
<string key="content"> The app uses Social and Emotional Learning (SEL) to empower middle school girls to take ownership of their health and sexual activity. It is designed to increase access to reproductive health and self-esteem education by incorporating quality and relevant information surrounding those topics and it helps concretize corresponding concepts through interactive activities. The content is based on SEL Core Competencies (Self-awareness, Self-management, Social awareness, Relationship skills, Decision making).</string>
<attributes>
<color key="NSColor" red="0.3803921569" green="0.59999999999999998" blue="0.69288374350000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" metaFont="system" size="18"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<attributedString key="attributedText"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ycz-xD-2DD">
Expand Down Expand Up @@ -126,10 +72,13 @@ How does PowerUp help teenagers?
</constraints>
<viewLayoutGuide key="safeArea" id="2TS-AX-Kbm"/>
</view>
<connections>
<outlet property="aboutViewText" destination="FdT-xN-nZO" id="3eC-SF-Ksq"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Zwe-o9-mfo" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-169" y="-551"/>
<point key="canvasLocation" x="-169.56521739130437" y="-551.20000000000005"/>
</scene>
<!--Start View Controller-->
<scene sceneID="bOj-Fm-Fh1">
Expand Down Expand Up @@ -1603,7 +1552,7 @@ How does PowerUp help teenagers?
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="endscreen_background" translatesAutoresizingMaskIntoConstraints="NO" id="GqS-kL-Xqm" userLabel="Background Image">
<rect key="frame" x="0.0" y="0.0" width="667" height="375"/>
<rect key="frame" x="0.0" y="0.0" width="1024" height="375"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="karma_star" translatesAutoresizingMaskIntoConstraints="NO" id="OdA-pZ-nes" userLabel="Karma Motif">
<rect key="frame" x="10" y="10" width="40" height="40"/>
Expand Down Expand Up @@ -1633,7 +1582,7 @@ How does PowerUp help teenagers?
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UMB-Yq-rOx">
<rect key="frame" x="249" y="200.5" width="169" height="54.5"/>
<rect key="frame" x="427.5" y="200.5" width="169" height="54.5"/>
<constraints>
<constraint firstAttribute="width" constant="169" id="SDR-Yu-9ny"/>
</constraints>
Expand All @@ -1643,7 +1592,7 @@ How does PowerUp help teenagers?
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Wow! You Are Brilliant. Game Completed!!" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wyS-fw-fBB">
<rect key="frame" x="95.5" y="154" width="476" height="27"/>
<rect key="frame" x="274" y="154" width="476" height="27"/>
<fontDescription key="fontDescription" name="Montserrat-Bold" family="Montserrat" pointSize="22"/>
<color key="textColor" red="0.3803921569" green="0.59999999999999998" blue="0.69411764710000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
Expand Down Expand Up @@ -1721,6 +1670,6 @@ How does PowerUp help teenagers?
<inferredMetricsTieBreakers>
<segue reference="Vcg-vV-Did"/>
<segue reference="0it-aH-Xs8"/>
<segue reference="mzp-Ek-ra4"/>
<segue reference="1yy-KV-VO2"/>
</inferredMetricsTieBreakers>
</document>
15 changes: 15 additions & 0 deletions Powerup/Strings.swift
Expand Up @@ -35,3 +35,18 @@ let errorFetchingScenarioMessage = "Error fetching scenario data from database."
let errorSavingKarmaPointsMessage = "Error saving Karma points."
let errorSavingScenarioCompletionMessage = "Error saving scenario completion."
let mapMigrationAlertMessage = "If you migrate to map, current scene karma points will be lost"
let aboutText = """
The Game
PowerUp is an educational choose-your-own-adventure game for girls between the age of 12 and 14. The game consists of different scenarios in which the user can choose between multiple answers and thereby lead the conversation into different directions. The user can create a personalized avatar by choosing clothes, hair eye and skin color. Later on the avatar can be further customized and other accessories can be bought using points earned in the scenarios. Additional mini games contain key information surrounding reproductive health and provide a break from the storyline.
Why this app is needed?
Increased exposure among preadolescents aged 12-14 to sexualized media has normalized engagement in sexual activity at younger ages. However information regarding sex is not very accessible to preadolescents. Only 65% of schools provide sex education and even less explain condom use. Having the talk at home is usually very awkward. Preadolescent girls need better options for reproductive health and self-esteem education. They are at risk for possible pregnancy and spread of sexually transmitted infection (STI), yet very little information reaches preadolescents about risk and responsibility associated with sex. Additionally, preadolescents struggle with self-esteem, which makes them vulnerable to peer and media influence. Current trends in sexual activity among preadolescents impact the economy, hurt family cohesion, affect female education, and burden healthcare systems.
How does PowerUp help teenagers?
The app uses Social and Emotional Learning (SEL) to empower middle school girls to take ownership of their health and sexual activity. It is designed to increase access to reproductive health and self-esteem education by incorporating quality and relevant information surrounding those topics and it helps concretize corresponding concepts through interactive activities. The content is based on SEL Core Competencies (Self-awareness, Self-management, Social awareness, Relationship skills, Decision making).
"""


0 comments on commit 4b14009

Please sign in to comment.