






#import "CommonExhaustedYahooPromotionWindowsCell.h"
#import "ReadWaxDash.h"
#import "Masonry.h"

@implementation CommonExhaustedYahooPromotionWindowsCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        self.backgroundColor = UIColor.whiteColor;
        self.contentView.backgroundColor = UIColor.whiteColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        
        self.seeCascadeView = [UIImageView new];
        self.seeCascadeView.tintColor = [ReadWaxDash trackForkColor];
        self.seeCascadeView.layer.cornerRadius = 15;
        [self.contentView addSubview:self.seeCascadeView];
        [self.seeCascadeView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(ReadWaxDash.strideFooter.slovenianCan);
            make.centerY.mas_equalTo(self);
            make.width.height.mas_equalTo(ReadWaxDash.strideFooter.birthCarrier);
        }];
        
        
        self.forPaperName = [UILabel new];
        self.forPaperName.font = [UIFont boldSystemFontOfSize:16];
        self.forPaperName.textColor = UIColor.darkGrayColor;
        [self.contentView addSubview:self.forPaperName];
        [self.forPaperName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.seeCascadeView.mas_right).offset(ReadWaxDash.strideFooter.slovenianCan);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.kitSamplingTime = [UILabel new];
        self.kitSamplingTime.font =  [UIFont systemFontOfSize:11];
        self.kitSamplingTime.textColor = UIColor.grayColor;
        [self.contentView addSubview:self.kitSamplingTime];
        [self.kitSamplingTime mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_centerY).offset(ReadWaxDash.strideFooter.dailyEntity);
            make.left.equalTo(self.forPaperName);
        }];
    }
    return self;
}

@end
