\startcomponent pr23-cover_front_web
% \environment env-pr23
% \environment env-fonts-23
% \environment env-layout-23
\project proj-dd23


%make this the front cover in the future since it can be compiled without compiling the rest of the manual


\definelayer[etukansi]
    [x=0mm,y=0mm,width=\paperwidth,height=\paperheight]


%%% \setupexternalfigures[directory={./originals}]
% \useexternalfigure[kplogo][kplogo][width=4cm]
% \useexternalfigure[coverpicture][coverpicture_web]%[height=0.5\paperheight]

\setupmakeup[page][top=,bottom=]

\setupcolors[state=start]
\definecolor[kpltgray][c=0,m=0,y=0,k=0.16] % light gray for cover bg bar etc.
\definecolor[kpltblack][r=0,g=0,b=0] % light gray for bars, rgb color space
\definecolor[kpdkgray][c=0,m=0,y=0,k=.7] % dark gray for the texts
\definecolor[kpred][c=0,m=1,y=.65,k=.0] % red for website address (could be used also inside!)

\abbreviation[effdate]{June 11, 2019}{June 2019}
\abbreviation[revno]{1.96}{1.96}



% ------------------ START OF DOCUMENT -------------------------
% The document itself starts here
\starttext

% this enables the use of colors in the document
% only used in draft stages, turn off for final version
%\setupcolors[state=start]

% color usage
% \startcolor[colorname]
% \stopcolor

% This stops the cover page and toc from getting page numbers
% Result: Chapter 1 starts from page 1.
\setuppagenumber[state=stop]

% -----------------------MANUAL FRONT COVER IN CONTEXT --------------------------

\startpagemakeup[doublesided=no,textstyle={\switchtobodyfont[12pt]},style={\setupinterlinespace[line=3ex]}]

%\setmainfont[arial]
\definefontfamily [myfamily] [sans] [Arial]
\setupbodyfont [myfamily,12pt]


%\definebodyfontenvironment[12pt][d=28]
\definebodyfontenvironment[default][d=3.5]

% the individual layers

% The gray bar on the right
\setlayerframed[etukansi]
    [frame=off,
    width=0.228\paperheight,
    height=0.5\paperheight,
    preset=rightbottom,
    background=color,
    backgroundcolor=kpltgray]
    {}

%%% The cover photo
% \setlayerframed[etukansi]
%     [frame=off,
%     width=0.342\paperwidth,
%     height=0.5\paperheight,
%     preset=righttop]
%     {\externalfigure[coverpicture]}%}


%%% Logo
% \setlayerframed[etukansi]
%     [frame=off,
%     width=40mm,
%     preset=lefttop,
%     hoffset=21mm,
%     voffset=19mm]
%         {\externalfigure[kplogo]}


% Static text on left near spine and bottom
\setlayerframed[etukansi]
    [frame=off,
    preset=middleleft,
%     height=10cm,
%     width=15cm,
    hoffset=21mm,
%     voffset=50mm,
    align=right]
    {\bfd \cap{\startcolor[kpltblack]process\crlf refractometer\crlf pr-23\stopcolor}}


% Manual title (will be a variable later)
\setlayerframed[etukansi]
    [frame=off,
    preset=rightbottom,
%     width=6.5cm,
    hoffset=10mm,
    voffset=41mm,
    align=left]
        {\bfc \cap{\startcolor[kpdkgray]instruction\crlf manual\stopcolor}}

% Manual version
\setlayerframed[etukansi]
    [frame=off,
    preset=rightbottom,
%     width=6.5cm,
    hoffset=10mm,
    voffset=26mm,
    align=right]
        {\bfx {\startcolor[kpdkgray]IM-EN-PR23 Rev. \revno        \stopcolor}}


\placelayer[etukansi]

\stoppagemakeup

\stoptext

\stopcomponent




\installpagebreakhandler{last}{}\stopcomponent


