Manos Chorianopoulos

MyRewardsOffersScrollTableViewCell implementation

Showing 87 changed files with 697 additions and 43 deletions
......@@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
1E64E1832DE48E0600543217 /* MyRewardsOfferCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1E64E1822DE48E0600543217 /* MyRewardsOfferCollectionViewCell.xib */; };
1E64E1842DE48E0600543217 /* MyRewardsOfferCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E64E1812DE48E0600543217 /* MyRewardsOfferCollectionViewCell.swift */; };
1E917CD62DDF64B2002221D8 /* MyRewardsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1E917CD52DDF64B2002221D8 /* MyRewardsViewController.xib */; };
1E917CD72DDF64B2002221D8 /* MyRewardsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E917CD42DDF64B2002221D8 /* MyRewardsViewController.swift */; };
1E917CDB2DDF68C7002221D8 /* CouponViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1E917CDA2DDF68C7002221D8 /* CouponViewController.xib */; };
......@@ -148,6 +150,8 @@
/* Begin PBXFileReference section */
1E108A9728A3FA9B0008B8E7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
1E64E1812DE48E0600543217 /* MyRewardsOfferCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyRewardsOfferCollectionViewCell.swift; sourceTree = "<group>"; };
1E64E1822DE48E0600543217 /* MyRewardsOfferCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MyRewardsOfferCollectionViewCell.xib; sourceTree = "<group>"; };
1E917CD42DDF64B2002221D8 /* MyRewardsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyRewardsViewController.swift; sourceTree = "<group>"; };
1E917CD52DDF64B2002221D8 /* MyRewardsViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MyRewardsViewController.xib; sourceTree = "<group>"; };
1E917CD92DDF68C7002221D8 /* CouponViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponViewController.swift; sourceTree = "<group>"; };
......@@ -327,6 +331,15 @@
name = Fonts;
sourceTree = "<group>";
};
1E64E1802DE48DD600543217 /* MyRewardsOfferCollectionViewCell */ = {
isa = PBXGroup;
children = (
1E64E1812DE48E0600543217 /* MyRewardsOfferCollectionViewCell.swift */,
1E64E1822DE48E0600543217 /* MyRewardsOfferCollectionViewCell.xib */,
);
path = MyRewardsOfferCollectionViewCell;
sourceTree = "<group>";
};
1E917CD32DDF6472002221D8 /* MyRewardsViewController */ = {
isa = PBXGroup;
children = (
......@@ -368,6 +381,7 @@
1EA8E5BC2DDF34FB00CD3418 /* cells */ = {
isa = PBXGroup;
children = (
1E64E1802DE48DD600543217 /* MyRewardsOfferCollectionViewCell */,
1ED41E492DE0C21800836ABA /* MyRewardsBannerOfferCollectionViewCell */,
1EB4F4282DE0A09500D934C0 /* MyRewardsOffersScrollTableViewCell */,
1EB4F4222DE09A4300D934C0 /* MyRewardsBannerOffersScrollTableViewCell */,
......@@ -822,6 +836,7 @@
E6A77905282933E60045BBA8 /* warp_white_back_button@2x.png in Resources */,
1EB4F4252DE09AAC00D934C0 /* MyRewardsBannerOffersScrollTableViewCell.xib in Resources */,
1EA8E5C02DDF427A00CD3418 /* PingLCG-Bold.otf in Resources */,
1E64E1832DE48E0600543217 /* MyRewardsOfferCollectionViewCell.xib in Resources */,
1EA8E5C12DDF427A00CD3418 /* PingLCG-Light.otf in Resources */,
1EA8E5C22DDF427A00CD3418 /* PingLCG-Regular.otf in Resources */,
E6A77908282933E60045BBA8 /* warp_white_close_button@2x.png in Resources */,
......@@ -886,6 +901,7 @@
E6A77954282933E70045BBA8 /* MyApi.m in Sources */,
E6A778F2282933E60045BBA8 /* WLNativeAdCollectionViewCell.m in Sources */,
E6A77904282933E60045BBA8 /* WLEvent.m in Sources */,
1E64E1842DE48E0600543217 /* MyRewardsOfferCollectionViewCell.swift in Sources */,
E6A77927282933E70045BBA8 /* UIRefreshControl+AFNetworking.m in Sources */,
E6A77955282933E70045BBA8 /* ViewControllerExtensions.swift in Sources */,
A07936762885E9CC00064122 /* UIColorExtensions.swift in Sources */,
......
{
"images" : [
{
"filename" : "avis_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "avis_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "avis_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "avis_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "avis_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "avis_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "coffeeisland_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "coffeeisland_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "coffeeisland_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "coffeeisland_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "coffeeisland_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "coffeeisland_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "dominos_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "dominos_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "dominos_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "dominos_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "dominos_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "dominos_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "favorite_empty.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "favorite_empty 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "favorite_empty 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "favorite_filled.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "favorite_filled 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "favorite_filled 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "migato_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "migato_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "migato_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "migato_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "migato_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "migato_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "moustakas_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "moustakas_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "moustakas_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "moustakas_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "moustakas_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "moustakas_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "musa_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "musa_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "musa_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "musa_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "musa_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "musa_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "ninemia_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ninemia_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ninemia_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "ninemia_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ninemia_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ninemia_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "ranch_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ranch_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ranch_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "ranch_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ranch_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ranch_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "zuccherino_banner.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "zuccherino_banner 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "zuccherino_banner 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "zuccherino_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "zuccherino_logo 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "zuccherino_logo 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
//
// MyRewardsOfferCollectionViewCell.swift
// SwiftWarplyFramework
//
// Created by Manos Chorianopoulos on 26/5/25.
//
import UIKit
@objc public class MyRewardsOfferCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var parentView: UIView!
@IBOutlet weak var bannerImage: UIImageView!
@IBOutlet weak var favoriteImage: UIImageView!
@IBOutlet weak var discountView: UIView!
@IBOutlet weak var discountLabel: UILabel!
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var subtitleLabel: UILabel!
@IBOutlet weak var expirationLabel: UILabel!
@IBOutlet weak var logoImage: UIImageView!
public override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
parentView.layer.borderWidth = 1.0
parentView.layer.borderColor = UIColor(rgb: 0xCCCCCC).cgColor
parentView.layer.cornerRadius = 8.0
discountView.layer.cornerRadius = 34.0
}
func configureCell(data: OfferModel) {
bannerImage.image = UIImage(named: data.bannerImage, in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
favoriteImage.image = UIImage(named: data.isFavorite ? "favorite_filled" : "favorite_empty", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
let discountSymbol =
data.discountType == "percentage" ? "%"
: data.discountType == "price" ? "€"
: data.discountType == "buyOneGetOne" ? "1+1"
: data.discountType == "free" ? "Δωρεάν"
: ""
discountLabel.text = "\(data.discount)\(discountSymbol)"
discountLabel.font = UIFont(name: "PingLCG-Bold", size: 18)
discountLabel.textColor = UIColor(rgb: 0xF2F2F2)
discountView.backgroundColor = UIColor(rgb: data.color)
titleLabel.text = data.title
titleLabel.font = UIFont(name: "PingLCG-Bold", size: 17)
titleLabel.textColor = UIColor(rgb: 0x000F1E)
subtitleLabel.text = data.description
subtitleLabel.font = UIFont(name: "PingLCG-Regular", size: 14)
subtitleLabel.textColor = UIColor(rgb: 0x00111B)
expirationLabel.text = data.expirationDate
expirationLabel.font = UIFont(name: "PingLCG-Regular", size: 13)
expirationLabel.textColor = UIColor(rgb: 0x00111B)
logoImage.image = UIImage(named: data.merchantLogo, in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
}
}
......@@ -8,11 +8,57 @@
import UIKit
@objc public class MyRewardsOffersScrollTableViewCell: UITableViewCell {
var section: SectionModel?
@IBOutlet weak var categoryLabel: UILabel!
@IBOutlet weak var allButtonView: UIView!
@IBOutlet weak var allButtonLabel: UILabel!
@IBOutlet weak var collectionView: UICollectionView!
var data: SectionModel?
public override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
allButtonView.layer.borderWidth = 1.0
allButtonView.layer.borderColor = UIColor(rgb: 0x000F1E).cgColor
allButtonView.layer.cornerRadius = 4.0
allButtonLabel.text = "Όλα"
allButtonLabel.font = UIFont(name: "PingLCG-Regular", size: 16)
allButtonLabel.textColor = UIColor(rgb: 0x00111B)
// Register XIBs for collection view cells
collectionView.register(UINib(nibName: "MyRewardsBannerOfferCollectionViewCell", bundle: Bundle(for: MyEmptyClass.self)), forCellWithReuseIdentifier: "MyRewardsBannerOfferCollectionViewCell")
// Fix background colors
collectionView.backgroundColor = UIColor.clear
self.backgroundColor = UIColor.clear
self.contentView.backgroundColor = UIColor.clear
// Remove content insets and gaps
collectionView.contentInset = UIEdgeInsets.zero
collectionView.scrollIndicatorInsets = UIEdgeInsets.zero
if #available(iOS 11.0, *) {
collectionView.contentInsetAdjustmentBehavior = .never
}
// Configure collection view layout
if let layout = collectionView.collectionViewLayout as? UICollectionViewFlowLayout {
layout.scrollDirection = .horizontal
layout.minimumLineSpacing = 0
layout.minimumInteritemSpacing = 0
layout.sectionInset = UIEdgeInsets.zero
}
// Enable paging for smooth banner scrolling
collectionView.isPagingEnabled = true
collectionView.showsHorizontalScrollIndicator = false
// Set delegates
collectionView.delegate = self
collectionView.dataSource = self
}
public override func setSelected(_ selected: Bool, animated: Bool) {
......@@ -23,5 +69,73 @@ import UIKit
func configureCell(data: SectionModel?) {
// struct SectionModel {
// let title: String
// let count: Int
// let offers: [OfferModel]
// }
self.data = data
let catBoldText = (data?.title ?? "") + " "
let catRegText = String(data?.count ?? 0)
let attrBold = [NSAttributedString.Key.font : UIFont(name: "PingLCG-Bold", size: 18) ?? UIFont.boldSystemFont(ofSize: 17), NSAttributedString.Key.foregroundColor: UIColor(rgb: 0x000F1E)]
let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PingLCG-Regular", size: 18) ?? UIFont.systemFont(ofSize: 17), NSAttributedString.Key.foregroundColor: UIColor(rgb: 0x000F1E)]
let catAttributedString = NSMutableAttributedString(string:catBoldText, attributes:attrBold)
let catRegString = NSMutableAttributedString(string: catRegText, attributes:attrRegular)
catAttributedString.append(catRegString)
categoryLabel.attributedText = catAttributedString
self.collectionView.reloadData();
}
}
extension MyRewardsOffersScrollTableViewCell: UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout {
public func numberOfSections(in collectionView: UICollectionView) -> Int {
return 1
}
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return self.data?.offers.count ?? 0
}
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "MyRewardsBannerOfferCollectionViewCell", for: indexPath) as! MyRewardsBannerOfferCollectionViewCell
// cell.configureCell(offer: self.data?.offers[indexPath.row])
if let offer = self.data?.offers[indexPath.row] {
cell.configureCell(data: offer)
}
return cell;
}
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
// TODO: open offer
}
// MARK: - UICollectionViewDelegateFlowLayout
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
// let screenWidth = UIScreen.main.bounds.width
return CGSize(width: 257, height: 232)
}
// Distance Between Item Cells
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
return 7
}
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
return 0
}
// Cell Margin
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
return UIEdgeInsets.zero
// UIEdgeInsets(top: 0, left: 7, bottom: 0, right: 0)
}
}
......
......@@ -22,7 +22,7 @@ struct OfferModel {
let bannerImage: String
let merchantLogo: String
let expirationDate: String
let color: String
let color: UInt
var isFavorite: Bool
}
......@@ -41,7 +41,7 @@ struct OfferModel {
bannerImage: "contest_banner",
merchantLogo: "contest_logo",
expirationDate: "30/06/2025",
color: "#8A2BE2", // Purple
color: 0x8A2BE2,
isFavorite: false
),
OfferModel(
......@@ -53,7 +53,7 @@ struct OfferModel {
bannerImage: "contest_banner",
merchantLogo: "contest_logo",
expirationDate: "30/06/2025",
color: "#8A2BE2", // Purple
color: 0x8A2BE2,
isFavorite: false
),
OfferModel(
......@@ -65,7 +65,7 @@ struct OfferModel {
bannerImage: "contest_banner",
merchantLogo: "contest_logo",
expirationDate: "30/06/2025",
color: "#8A2BE2", // Purple
color: 0x8A2BE2,
isFavorite: false
),
// Top offers
......@@ -78,7 +78,7 @@ struct OfferModel {
bannerImage: "pizza_banner",
merchantLogo: "dominos_logo",
expirationDate: "έως 30/09",
color: "#E91E63", // Pink
color: 0xEE417D,
isFavorite: true
),
OfferModel(
......@@ -90,7 +90,7 @@ struct OfferModel {
bannerImage: "furniture_banner",
merchantLogo: "ikea_logo",
expirationDate: "έως 30/09",
color: "#E91E63", // Pink
color: 0xEE417D,
isFavorite: false
),
// OfferModel(
......@@ -102,7 +102,7 @@ struct OfferModel {
// bannerImage: "delivery_banner",
// merchantLogo: "skroutz_logo",
// expirationDate: "έως 30/09",
// color: "#E91E63", // Pink
// color: 0xEE417D,
// isFavorite: false
// ),
......@@ -116,7 +116,7 @@ struct OfferModel {
// bannerImage: "car_rental_banner",
// merchantLogo: "avis_logo",
// expirationDate: "έως 30/09",
// color: "#E91E63", // Pink
// color: 0xEE417D,
// isFavorite: true
// ),
// OfferModel(
......@@ -128,7 +128,7 @@ struct OfferModel {
// bannerImage: "hotel_banner",
// merchantLogo: "booking_logo",
// expirationDate: "έως 30/09",
// color: "#E91E63", // Pink
// color: 0xEE417D,
// isFavorite: true
// ),
......@@ -139,10 +139,10 @@ struct OfferModel {
description: "σε όλα τα προϊόντα",
discount: "15%",
discountType: "percentage",
bannerImage: "sustainable_fashion_banner",
merchantLogo: "ww_logo",
bannerImage: "musa_banner",
merchantLogo: "musa_logo",
expirationDate: "έως 30/09",
color: "#4CAF50", // Green
color: 0x09914E,
isFavorite: false
),
OfferModel(
......@@ -151,10 +151,10 @@ struct OfferModel {
description: "στην παραγγελία",
discount: "20%",
discountType: "percentage",
bannerImage: "sustainable_food_banner",
merchantLogo: "biomarket_logo",
bannerImage: "musa_banner",
merchantLogo: "musa_logo",
expirationDate: "έως 30/09",
color: "#4CAF50", // Green
color: 0x09914E,
isFavorite: true
),
......@@ -168,7 +168,7 @@ struct OfferModel {
bannerImage: "ranch_banner",
merchantLogo: "ranch_logo",
expirationDate: "έως 30/09",
color: "#FF9800", // Orange
color: 0xFC9F25,
isFavorite: false
),
OfferModel(
......@@ -177,10 +177,10 @@ struct OfferModel {
description: "δώρο στην είσοδο του παιδότοπου",
discount: "1+1",
discountType: "buyOneGetOne",
bannerImage: "playground_banner",
merchantLogo: "playground_logo",
bannerImage: "ranch_banner",
merchantLogo: "ranch_logo",
expirationDate: "έως 30/09",
color: "#FF9800", // Orange
color: 0xFC9F25,
isFavorite: false
),
......@@ -191,10 +191,10 @@ struct OfferModel {
description: "στην αγορά σου",
discount: "2€",
discountType: "amount",
bannerImage: "coffee_banner",
merchantLogo: "mikel_logo",
bannerImage: "coffeeisland_banner",
merchantLogo: "coffeeisland_logo",
expirationDate: "έως 30/09",
color: "#F44336", // Red
color: 0xEE417D,
isFavorite: false
),
OfferModel(
......@@ -203,10 +203,10 @@ struct OfferModel {
description: "σε γλυκά & πεϊνιρλιδες",
discount: "10%",
discountType: "percentage",
bannerImage: "pastry_banner",
merchantLogo: "bakery_logo",
bannerImage: "coffeeisland_banner",
merchantLogo: "coffeeisland_logo",
expirationDate: "έως 30/09",
color: "#F44336", // Red
color: 0xEE417D,
isFavorite: false
),
......@@ -217,10 +217,10 @@ struct OfferModel {
description: "στην διαμονή/διασκέδαση σου",
discount: "10%",
discountType: "percentage",
bannerImage: "resort_banner",
merchantLogo: "agrafa_logo",
bannerImage: "ninemia_banner",
merchantLogo: "ninemia_logo",
expirationDate: "έως 30/09",
color: "#2196F3", // Blue
color: 0xEE417D,
isFavorite: true
),
OfferModel(
......@@ -229,10 +229,10 @@ struct OfferModel {
description: "σε όλες τις υπηρεσίες",
discount: "10%",
discountType: "percentage",
bannerImage: "services_banner",
merchantLogo: "services_logo",
bannerImage: "ninemia_banner",
merchantLogo: "ninemia_logo",
expirationDate: "έως 30/09",
color: "#2196F3", // Blue
color: 0xEE417D,
isFavorite: false
),
......@@ -243,10 +243,10 @@ struct OfferModel {
description: "για αγορές από τα φυσικά καταστήματα",
discount: "10%",
discountType: "percentage",
bannerImage: "toys_banner",
merchantLogo: "jumbo_logo",
bannerImage: "moustakas_banner",
merchantLogo: "moustakas_logo",
expirationDate: "έως 30/09",
color: "#9C27B0", // Purple
color: 0xEE417D,
isFavorite: false
),
OfferModel(
......@@ -255,10 +255,10 @@ struct OfferModel {
description: "στην είσοδο του παιδότοπου",
discount: "1+1",
discountType: "buyOneGetOne",
bannerImage: "playarea_banner",
merchantLogo: "playarea_logo",
bannerImage: "moustakas_banner",
merchantLogo: "moustakas_logo",
expirationDate: "έως 30/09",
color: "#9C27B0", // Purple
color: 0xEE417D,
isFavorite: false
),
......@@ -269,10 +269,10 @@ struct OfferModel {
description: "για αγορές",
discount: "15€",
discountType: "amount",
bannerImage: "fashion_banner",
bannerImage: "migato_banner",
merchantLogo: "migato_logo",
expirationDate: "έως 30/09",
color: "#FF5722", // Deep Orange
color: 0xEE417D,
isFavorite: false
),
OfferModel(
......@@ -281,10 +281,10 @@ struct OfferModel {
description: "στις αγορές σου",
discount: "Έως 30%",
discountType: "percentage",
bannerImage: "shopping_banner",
merchantLogo: "shopping_logo",
bannerImage: "migato_banner",
merchantLogo: "migato_logo",
expirationDate: "έως 30/09",
color: "#FF5722", // Deep Orange
color: 0xEE417D,
isFavorite: false
)
]
......