Skip to content

Commit

Permalink
Merge pull request #15 from codez-one/feature/style
Browse files Browse the repository at this point in the history
Add styling
  • Loading branch information
kirkone authored Jan 28, 2022
2 parents 2afe2cb + 414b82c commit 64effc1
Show file tree
Hide file tree
Showing 49 changed files with 891 additions and 1,334 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
run: dotnet build -c Release --no-restore
- name: Publish Frontend
run: dotnet publish ./src/CZ.Azure.FileExchange/ -o temp/frontend
run: dotnet publish -c Release ./src/CZ.Azure.FileExchange/ -o temp/frontend
- name: Publish API
run: dotnet publish ./src/CZ.Azure.FileExchange.Api/ -o temp/api
run: dotnet publish -c Release ./src/CZ.Azure.FileExchange.Api/ -o temp/api
- name: Deploy
id: deploy
run: './build/deploy.ps1 -Token ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KINDDUNE004C2C103 }} -appBuildOutput ./temp/frontend/wwwroot/ -apiBuildOutput ./temp/api/ -envrionmentName ${{ github.event.number }} -pullrequestTitle "${{steps.Pr-Title.outputs.pr-title}}" -branchName ${{ github.head_ref }} -Verbose'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -455,4 +455,5 @@ $RECYCLE.BIN/

##
## CZ.Azure.FileExchange
temp/*
temp/*
**/wwwroot/client/
8 changes: 8 additions & 0 deletions CZ.Azure.FileExchange.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CZ.Azure.FileExchange", "sr
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CZ.Azure.FileExchange.Api", "src\CZ.Azure.FileExchange.Api\CZ.Azure.FileExchange.Api.csproj", "{249DF799-1F70-42DD-9508-1C3F44FD0227}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EB741972-8D2F-4D7F-A51A-A5ED45914AE1}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
azure-pipelines.yml = azure-pipelines.yml
main.bicep = main.bicep
Readme.md = Readme.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
Binary file modified docs/.assets/ce9c3c1a-eb2d-4222-befb-fc57b8823404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.assets/dbf1f27a-e386-4b94-bd34-418bca1a057a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "6.0.100"
}
}
24 changes: 19 additions & 5 deletions src/CZ.Azure.FileExchange/CZ.Azure.FileExchange.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand All @@ -7,16 +7,30 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DartSassBuilder" Version="0.2.1-beta" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.10.0" />
<PackageReference Include="BlazorDownloadFileFast" Version="0.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.1" PrivateAssets="all" />
</ItemGroup>

<!-- SASS options -->
<PropertyGroup>
<!-- outputstyle option -->
<DartSassOutputStyle>compressed</DartSassOutputStyle>
<DartSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</DartSassOutputStyle>
<!-- level option -->
<DartSassOutputLevel>verbose</DartSassOutputLevel>
<!-- msbuild output level -->
<DartSassMessageLevel>High</DartSassMessageLevel>
</PropertyGroup>
<ItemGroup>
<Content Update="wwwroot\appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<!-- add files manually -->
<SassFile Include="Client/**/*.scss" />
</ItemGroup>

</Project>
<Target Name="copy_sass_to_the_right_place" AfterTargets="DartSass_Build">
<Copy SourceFiles="Client/styles/main.css" DestinationFolder="wwwroot/client/" />
</Target>

</Project>
10 changes: 10 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@use "variables";

@mixin glass-pane($color: variables.$backgroundcolor) {
background: rgba($color, 0.2);
border-radius: 0px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba($color, 0.5);
}
35 changes: 35 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/abstracts/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
$background: linear-gradient(320deg,#ffffff,#d7d7df,#999fb3);
$backgroundcolor: #ffffff;

$foregroundcolor: #fff;
$foregroundcolor-dark: rgb(41, 41, 41);


$accentcolor: #fff;
$accentcolor-light: #1eff00;
$accentcolor-lightest: #bbcde5;

$gradient-color-start: #dbdbdb;
$gradient-color-end: #a3a3a3;

$gradient-liniar: linear-gradient(var(--gradient-color-start), var(--gradient-color-end));

$text-shadow: 0 4px 10px rgb(0 0 0 / 20%);
$box-shadow: 5px 5px 5px rgba(0,0,0,0.1),
15px 15px 15px rgba(0,0,0,0.1),
20px 20px 15px rgba(0,0,0,0.1),
30px 30px 15px rgba(0,0,0,0.1),
inset 1px 1px 2px #fff;

$filter-glow: drop-shadow(0 0 5px var(--accentcolor)) drop-shadow(0 0 15px var(--accentcolor));

:root {
--backgroundcolor: #{$backgroundcolor};
--foregroundcolor: #{$foregroundcolor};
--foregroundcolor-dark: #{$foregroundcolor-dark};
--accentcolor: #{$accentcolor};
--accentcolor-light: #{$accentcolor-light};
--accentcolor-lightest: #{$accentcolor-lightest};
--gradient-color-start: #{$gradient-color-start};
--gradient-color-end: #{$gradient-color-end};
}
16 changes: 16 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@use '../abstracts/variables';
@use 'typography';

body,
html {
scroll-behavior: smooth;
min-height: 100vh;
}

body {
font-family: typography.$font;
font-weight: 100;
font-size: 1.1em;
color: var(--foregroundcolor-dark);
background: variables.$background;
}
9 changes: 9 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*,
:after,
:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
2 changes: 2 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// more on that: https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/
$font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
Original file line number Diff line number Diff line change
@@ -1,40 +1,4 @@
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
outline: none;
}

a, .btn-link {
color: #0071c1;
}

.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}

.content {
padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
}

.invalid {
outline: 1px solid red;
}

.validation-message {
color: red;
}

#blazor-error-ui {
#blazor-error-ui {
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
Expand All @@ -44,21 +8,22 @@ a, .btn-link {
position: fixed;
width: 100%;
z-index: 1000;
}

#blazor-error-ui .dismiss {
.dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
}


.blazor-error-boundary {
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
padding: 1rem 1rem 1rem 3.7rem;
color: white;
}

.blazor-error-boundary::after {
&::after {
content: "An error has occurred."
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@use '../abstracts/variables';

/* splash */

#app {

header nav span{
color: var(--foregroundcolor);
text-decoration: none;
text-shadow: variables.$text-shadow;
font-weight: 400;
font-size: 1.5em;
margin: auto 1em;
filter: variables.$filter-glow;
}
}

/* End splash */
33 changes: 33 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/components/_button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@use '../abstracts/variables';
@use '../abstracts/mixins';

button{
border: none;
background: none;
outline: none;
cursor: pointer;
}

button.glass {
width: 100%;
margin-top: 1em;
@include mixins.glass-pane(variables.$accentcolor-light);
color: var(--foregroundcolor-dark);
font-size: 1.1em;
font-weight: 400;
text-shadow: variables.$text-shadow;
line-height: 2em;
outline: none;
cursor: pointer;

transition: background 250ms, opacity 250ms ;

&:hover{
background: rgba(variables.$accentcolor-light, 0.4);
}

&:disabled{
opacity: 0.3;
cursor: no-drop;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@use '../abstracts/variables';
@use '../abstracts/mixins';

label[for^=txt]{
position: absolute;
font-size: 0.8em;
transform: translateX(1em) translateY(-1.5em);
}

input[type=text]{
@include mixins.glass-pane(variables.$foregroundcolor);
font-size: 1em;
padding: 0.5em;
outline: none;
width: 100%;

&:active, &:focus{
border: 1px solid rgba(variables.$accentcolor-light, 0.5);
background-color: variables.$foregroundcolor;
}
}
15 changes: 15 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/layout/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use '../abstracts/variables';

header {
width: 100%;

h1 {
color: var(--foregroundcolor);
text-shadow: variables.$text-shadow;
font-size: 3.5em;
line-height: 2em;
text-align: center;
font-weight: 400;
outline:none;
}
}
11 changes: 11 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/layout/_main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
main{
width: 80vw;
margin: 0 auto;
padding-top: 1em;
margin-bottom: 1em;

section{
text-align: center;
margin-top: 1em;
}
}
20 changes: 20 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/layout/_navigation.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@use '../abstracts/variables';

nav{
display: flex;
justify-content: center;
margin-top: 1em;

a{
color: var(--foregroundcolor);
text-decoration: none;
text-shadow: variables.$text-shadow;
font-weight: 400;
font-size: 1.5em;
margin: auto 1em;

&.active{
filter: variables.$filter-glow;
}
}
}
24 changes: 24 additions & 0 deletions src/CZ.Azure.FileExchange/Client/styles/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@charset "UTF-8";
// Structuring your Sass Projects
// https://itnext.io/structuring-your-sass-projects-c8d41fa55ed4

@use './vendors/cssgg';

@use './abstracts/variables';
@use './abstracts/mixins';

@use "./base/reset";
@use "./base/typography";
@use "./base/base";

@use "./layout/header";
@use "./layout/navigation";
@use "./layout/main";

@use "./components/blazor-error";
@use "./components/blazor-splash";
@use "./components/button";
@use "./components/input-text";

@use "./pages/index";
@use "./pages/download";
Loading

0 comments on commit 64effc1

Please sign in to comment.