NAME Tags::HTML::Login::Button - Tags helper for login button. SYNOPSIS use Tags::HTML::Login::Button; my $obj = Tags::HTML::Login::Button->new(%params); $obj->process; $obj->process_css; METHODS "new" my $obj = Tags::HTML::Login::Button->new(%params); Constructor. Returns instance of object. * "css" 'CSS::Struct::Output' object for process_css processing. Default value is undef. * "link" Login button link. Default value is 'login'. * "tags" 'Tags::Output' object. Default value is undef. * "title" Login button title. Default value is 'LOGIN'. "process" $obj->process($percent_value); Process Tags structure for gradient. Returns undef. "process_css" $obj->process_css; Process CSS::Struct structure for output. Returns undef. ERRORS new(): From Class::Utils::set_params(): Unknown parameter '%s'. From Tags::HTML::new(): Parameter 'css' must be a 'CSS::Struct::Output::*' class. Parameter 'tags' must be a 'Tags::Output::*' class. process(): From Tags::HTML::process(): Parameter 'tags' isn't defined. process_css(): From Tags::HTML::process_css(): Parameter 'css' isn't defined. EXAMPLE use strict; use warnings; use CSS::Struct::Output::Indent; use Tags::HTML::Login::Button; use Tags::Output::Indent; # Object. my $css = CSS::Struct::Output::Indent->new; my $tags = Tags::Output::Indent->new; my $obj = Tags::HTML::Login::Button->new( 'css' => $css, 'tags' => $tags, ); # Process login button. $obj->process_css; $tags->put(['b', 'body']); $obj->process; $tags->put(['e', 'body']); # Print out. print "CSS\n"; print $css->flush."\n\n"; print "HTML\n"; print $tags->flush."\n"; # Output: # CSS # .outer { # position: fixed; # top: 50%; # left: 50%; # transform: translate(-50%, -50%); # } # .login { # text-align: center; # background-color: blue; # padding: 1em; # } # .login a { # text-decoration: none; # color: white; # font-size: 3em; # } # # HTML # #
# # LOGIN # #
# DEPENDENCIES Class::Utils, Error::Pure, Tags::HTML. REPOSITORY AUTHOR Michal Josef Špaček LICENSE AND COPYRIGHT © 2021-2022 Michal Josef Špaček BSD 2-Clause License VERSION 0.01