Compare commits
56 Commits
310cf7fbce
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d21bd86c2 | |||
| 76bb1fa40f | |||
| 0f738b2264 | |||
| 134d9399f7 | |||
| 4bf485d523 | |||
| ddc65799f5 | |||
| 3406748c66 | |||
| d8726fbc59 | |||
| 8504d79a3d | |||
| 98810ad1fc | |||
| 3fb4ab3934 | |||
| 74fe4ca4a1 | |||
| a4e6cc4518 | |||
| 5d8d3f1f2f | |||
| 538445760e | |||
| 18e9d7ef5d | |||
| 91b644501a | |||
| 08bc1e4baa | |||
| 82663392dc | |||
| c5994dfc32 | |||
| ece52b9929 | |||
| dc81c5ce60 | |||
| fa75985014 | |||
| 80c7dca613 | |||
| e4821d2d7e | |||
| 9c298c6e76 | |||
| 150cb24ce8 | |||
| e6a2db0753 | |||
| 1b28481b5d | |||
| d3c0737bfe | |||
| d0d9cb8bb3 | |||
| 20c3408537 | |||
| f10f991542 | |||
| b9054b485a | |||
| 11e9a930a1 | |||
| 72d2b788f2 | |||
| 77aa98a493 | |||
| 22351d0e1d | |||
| fb0397694a | |||
| 0b9427e9e5 | |||
| 705146cb8b | |||
| 31c3e33b11 | |||
| fc4c96745e | |||
| 57c110aea3 | |||
| 8295be40f0 | |||
| 27aa1cead7 | |||
| 5191576cdc | |||
| 152a7ac8b4 | |||
| 83c4c46ed2 | |||
| a9b55caf60 | |||
| 8317cec42e | |||
| 95da9a44e5 | |||
| 29329215e7 | |||
| 89447257a5 | |||
| 3dd5e7fa98 | |||
| 41ee4efcce |
4
.editorconfig
Normal file
@ -0,0 +1,4 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
1
.gitignore
vendored
@ -396,3 +396,4 @@ FodyWeavers.xsd
|
||||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
KIKunstKirstenKlöckner/wwwroot/generated_images/*
|
||||
|
||||
13
.idea/.idea.KIKunstKirstenKlöckner/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/modules.xml
|
||||
/.idea.KIKunstKirstenKlöckner.iml
|
||||
/contentModel.xml
|
||||
/projectSettingsUpdater.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
1
.idea/.idea.KIKunstKirstenKlöckner/.idea/.name
generated
Normal file
@ -0,0 +1 @@
|
||||
KIKunstKirstenKlöckner
|
||||
19
.idea/.idea.KIKunstKirstenKlöckner/.idea/dataSources.xml
generated
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="Nackenserver" uuid="2da1b5f0-41db-4b4f-adbd-3ec21fc94746">
|
||||
<driver-ref>sqlserver.jb</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.jetbrains.jdbc.sqlserver.SqlServerDriver</jdbc-driver>
|
||||
<jdbc-url>Server=127.0.0.1,1433;Database=KiKunst</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
<data-source source="LOCAL" name="KiKunstDatenbank@85.215.58.36" uuid="df248d03-0de1-4e34-86bf-d38047939693">
|
||||
<driver-ref>sqlserver.jb</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.jetbrains.jdbc.sqlserver.SqlServerDriver</jdbc-driver>
|
||||
<jdbc-url>Server=85.215.58.36;Database=KiKunstDatenbank</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/.idea.KIKunstKirstenKlöckner/.idea/encodings.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/KIKunstKirstenKlöckner/Program.cs" charset="windows-1252" />
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/.idea.KIKunstKirstenKlöckner/.idea/indexLayout.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
||||
38
.idea/.idea.KIKunstKirstenKlöckner/.idea/sqlDataSources.xml
generated
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="SqlDataSourceStorage">
|
||||
<option name="dataSources">
|
||||
<list>
|
||||
<State>
|
||||
<option name="id" value="01ff5a47-63ce-4ef8-aed7-c9f2f9f5c726" />
|
||||
<option name="name" value="KiKunstDatenbank" />
|
||||
<option name="dbmsName" value="MSSQL" />
|
||||
<option name="urls">
|
||||
<array>
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/Tables/BildInfo.sql" />
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/Tables/WunschInfo.sql" />
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_Insert.sql" />
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spWunschInfo_Insert.sql" />
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_UpdateFileName.sql" />
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_GetAll.sql" />
|
||||
<option value="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spWunschInfo_Get.sql" />
|
||||
</array>
|
||||
</option>
|
||||
<option name="remarks" value="Database Project" />
|
||||
<option name="outPath" value="$PROJECT_DIR$/KiKunstDatenbank" />
|
||||
<option name="codeStyleName" value="Visual Studio Database Project" />
|
||||
<option name="outLayout" value="File per object by schema.groovy" />
|
||||
<option name="scriptOptions">
|
||||
<map>
|
||||
<entry key="ConstraintContext" value="CONSTRAINT_IN_TABLE" />
|
||||
<entry key="MsVsDdlCompatibility" value="1" />
|
||||
<entry key="QualifyWithSchema" value="ALWAYS" />
|
||||
<entry key="Reformat" value="1" />
|
||||
<entry key="UseSemicolon" value="1" />
|
||||
</map>
|
||||
</option>
|
||||
</State>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
12
.idea/.idea.KIKunstKirstenKlöckner/.idea/sqldialects.xml
generated
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="SqlDialectMappings">
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_GetAll.sql" dialect="TSQL" />
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_Insert.sql" dialect="TSQL" />
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_UpdateFileName.sql" dialect="TSQL" />
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spWunschInfo_Get.sql" dialect="TSQL" />
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/StoredProcedures/spWunschInfo_Insert.sql" dialect="TSQL" />
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/Tables/BildInfo.sql" dialect="TSQL" />
|
||||
<file url="file://$PROJECT_DIR$/KiKunstDatenbank/dpo/Tables/WunschInfo.sql" dialect="TSQL" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/.idea.KIKunstKirstenKlöckner/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
48
DataAccess/Data/BildInfoData.cs
Normal file
@ -0,0 +1,48 @@
|
||||
using DataAccess.DbAccess;
|
||||
using DataAccess.Models;
|
||||
|
||||
namespace DataAccess.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Ermöglicht den Zugriff auf die BildInfo Datenbank.
|
||||
/// </summary>
|
||||
public class BildInfoData
|
||||
{
|
||||
private readonly ISqlDataAccess _db;
|
||||
|
||||
public BildInfoData(ISqlDataAccess db)
|
||||
{
|
||||
_db = db;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fügt die gegebene BildInfo zur Datenbank hinzu und aktualisiert das <see cref="BildInfoModel.Id"/>-Feld mit dem entsprechenden Wert.
|
||||
/// </summary>
|
||||
/// <param name="bildInfo">Die BildInfo, die zur Datenbank hinzugefügt werden soll.</param>
|
||||
public async Task InsertBildInfoAsync(BildInfoModel bildInfo)
|
||||
{
|
||||
var id = await _db.LoadData<int, BildInfoModel>("dbo.spBildInfo_Insert", bildInfo);
|
||||
bildInfo.Id = id.Single();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aktualisiert das Dateiname-Feld der übergebenen BildInfo in der Datenbank.
|
||||
/// </summary>
|
||||
/// <param name="bildInfo">Die BildInfo deren Dateiname aktualisiert werden soll.</param>
|
||||
public Task UpdateBildInfoDateinameAsync(BildInfoModel bildInfo)
|
||||
{
|
||||
return _db.SaveData("dbo.spBildInfo_UpdateFileName",
|
||||
new {
|
||||
Id = bildInfo.Id,
|
||||
Dateiname = bildInfo.Dateiname,
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt alle Bild Infos der Datenbank zurück.
|
||||
/// </summary>
|
||||
public Task<IEnumerable<BildInfoModel>> GetAllBildInfosAsync()
|
||||
{
|
||||
return _db.LoadData<BildInfoModel, dynamic>("dbo.spBildInfo_GetAll", new { });
|
||||
}
|
||||
}
|
||||
36
DataAccess/Data/WunschInfoData.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using DataAccess.DbAccess;
|
||||
using DataAccess.Models;
|
||||
|
||||
namespace DataAccess.Data;
|
||||
|
||||
public class WunschInfoData
|
||||
{
|
||||
private readonly ISqlDataAccess _db;
|
||||
|
||||
public WunschInfoData(ISqlDataAccess db)
|
||||
{
|
||||
_db = db;
|
||||
}
|
||||
|
||||
public async Task AddWunschInfoAsync(WunschInfoModel wunschInfo)
|
||||
{
|
||||
var id = await _db.LoadData<int, WunschInfoModel>("dbo.spWunschInfo_Insert", wunschInfo);
|
||||
wunschInfo.Id = id.Single();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt die WunschInfo mit der gegebenen Id zurück.
|
||||
/// </summary>
|
||||
/// <param name="wunschId">Die Id der zu ladenen WunschInfo</param>
|
||||
/// <returns>Die WunschInfo mit der gegebenen Id</returns>
|
||||
public async Task<WunschInfoModel> GetWunschInfoAsync(int wunschId)
|
||||
{
|
||||
var wunschInfo = await _db.LoadData<WunschInfoModel, dynamic>("dbo.spWunschInfo_Get", new { Id = wunschId });
|
||||
return wunschInfo.Single();
|
||||
}
|
||||
}
|
||||
16
DataAccess/DataAccess.csproj
Normal file
@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>12</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Dapper" Version="2.1.35" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
26
DataAccess/DbAccess/ISqlDataAccess.cs
Normal file
@ -0,0 +1,26 @@
|
||||
namespace DataAccess.DbAccess;
|
||||
|
||||
/// <summary>
|
||||
/// Bietet lesenden und schreibenden Zugriff auf eine Datenbank.
|
||||
/// </summary>
|
||||
public interface ISqlDataAccess
|
||||
{
|
||||
/// <summary>
|
||||
/// Führt die angegebene Stored Procedure aus. Diese Prozedur nimmt Parameter des Typs <see cref="TParameter"/> engegen und gibt ein Enumerable des Typs <see cref="TResult"/> zurück.
|
||||
/// </summary>
|
||||
/// <typeparam name="TResult">Der Typ der Parameter</typeparam>
|
||||
/// <typeparam name="TParameter">Der Typ der Rückgabewerte</typeparam>
|
||||
/// <param name="storedProcedure">Der Name der Prozedur</param>
|
||||
/// <param name="parameters">Die Parameter für die Prozedur.</param>
|
||||
/// <param name="connectionId">Die optionale Id des zu verwendenen Connection Strings.</param>
|
||||
Task<IEnumerable<TResult>> LoadData<TResult, TParameter>(string storedProcedure, TParameter parameters, string connectionId = "Default");
|
||||
|
||||
/// <summary>
|
||||
/// Führt die angegebene Stored Procedure aus. Diese Prozedur nimmt Parameter des Typs <see cref="TParameter"/> engegen und gibt nichts zurück.
|
||||
/// </summary>
|
||||
/// <typeparam name="TParameter">Der Typ der Parameter</typeparam>
|
||||
/// <param name="storedProcedure">Der Name der Prozedur</param>
|
||||
/// <param name="parameters">Die Parameter für die Prozedur.</param>
|
||||
/// <param name="connectionId">Die optionale Id des zu verwendenen Connection Strings.</param>
|
||||
Task SaveData<TParameter>(string storedProcedure, TParameter parameters, string connectionId = "Default");
|
||||
}
|
||||
33
DataAccess/DbAccess/SqlDataAccess.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using Dapper;
|
||||
|
||||
namespace DataAccess.DbAccess;
|
||||
|
||||
/// <summary>
|
||||
/// Bietet lesenden und schreibenden Zugriff auf eine Datenbank.
|
||||
/// </summary>
|
||||
public class SqlDataAccess : ISqlDataAccess
|
||||
{
|
||||
private readonly IConfiguration _config;
|
||||
|
||||
public SqlDataAccess(IConfiguration config)
|
||||
{
|
||||
_config = config;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<TResult>> LoadData<TResult, TParameter>(string storedProcedure, TParameter parameters, string connectionId = "Default")
|
||||
{
|
||||
using IDbConnection connection = new SqlConnection(_config.GetConnectionString(connectionId));
|
||||
|
||||
return await connection.QueryAsync<TResult>(storedProcedure, parameters, commandType: CommandType.StoredProcedure);
|
||||
}
|
||||
|
||||
public async Task SaveData<TParameter>(string storedProcedure, TParameter parameters, string connectionId = "Default")
|
||||
{
|
||||
using IDbConnection connection = new SqlConnection(_config.GetConnectionString(connectionId));
|
||||
|
||||
await connection.ExecuteAsync(storedProcedure, parameters, commandType: CommandType.StoredProcedure);
|
||||
}
|
||||
}
|
||||
11
DataAccess/Models/BildInfoModel.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace DataAccess.Models;
|
||||
|
||||
public class BildInfoModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime Datum { get; set; }
|
||||
public string Dateiname { get; set; }
|
||||
public string ImageModel { get; set; }
|
||||
public int WunschId { get; set; }
|
||||
public string Prompt { get; set; }
|
||||
}
|
||||
16
DataAccess/Models/WunschInfoModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
namespace DataAccess.Models;
|
||||
|
||||
public class WunschInfoModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string BildPrompt { get; set; }
|
||||
public string Wunsch { get; set; }
|
||||
public string BildBeschreibung { get; set; }
|
||||
public DateTime Datum { get; set; }
|
||||
public string GPTModel { get; set; }
|
||||
/// <summary>
|
||||
/// Id eines vorherigen Wunsches, z.B. wenn ein Wunsch überarbeitet wird, wird der original wunsch hier referenziert.
|
||||
/// Ist <see langword="null"/> für den initialien Wunsch.
|
||||
/// </summary>
|
||||
public int? VorherigerWunsch { get; set; }
|
||||
}
|
||||
@ -3,7 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33829.357
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KIKunstKirstenKlöckner", "KIKunstKirstenKlöckner\KIKunstKirstenKlöckner.csproj", "{0085541E-50D4-42A5-9BFD-6CE402FB8B26}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KIKunstKirstenKlöckner", "KIKunstKirstenKlöckner\KIKunstKirstenKlöckner.csproj", "{0085541E-50D4-42A5-9BFD-6CE402FB8B26}"
|
||||
EndProject
|
||||
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "KiKunstDatenbank", "KiKunstDatenbank\KiKunstDatenbank.sqlproj", "{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataAccess", "DataAccess\DataAccess.csproj", "{0880FD07-236B-42C1-9CA3-2A6F695A623C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -15,6 +19,16 @@ Global
|
||||
{0085541E-50D4-42A5-9BFD-6CE402FB8B26}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0085541E-50D4-42A5-9BFD-6CE402FB8B26}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0085541E-50D4-42A5-9BFD-6CE402FB8B26}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A19CD19A-FE5B-4D4E-896B-DCC43B45F734}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{0880FD07-236B-42C1-9CA3-2A6F695A623C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0880FD07-236B-42C1-9CA3-2A6F695A623C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0880FD07-236B-42C1-9CA3-2A6F695A623C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0880FD07-236B-42C1-9CA3-2A6F695A623C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
12
KIKunstKirstenKlöckner/.config/dotnet-tools.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": 1,
|
||||
"isRoot": true,
|
||||
"tools": {
|
||||
"dotnet-ef": {
|
||||
"version": "7.0.9",
|
||||
"commands": [
|
||||
"dotnet-ef"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,14 @@
|
||||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
@using OpenAI_API
|
||||
@using OpenAI_API.Chat
|
||||
@using OpenAI_API.Models
|
||||
@using Microsoft.AspNetCore.Components
|
||||
@using KIKunstKirstenKlöckner.Data
|
||||
|
||||
|
||||
@inject IConfiguration Config
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
@ -6,7 +16,54 @@
|
||||
<NotFound>
|
||||
<PageTitle>Not found</PageTitle>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p role="alert">Sorry, there's nothing at this address.</p>
|
||||
<p style="text-align:center;" role="alert">@_text</p>
|
||||
@* @_mus *@
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
||||
|
||||
@code {
|
||||
private MarkupString _mus = new MarkupString();
|
||||
private string _text = "";
|
||||
private OpenAIAPI _openAiApi;
|
||||
private Conversation? _conversation;
|
||||
private string _openAiApiKey = "";
|
||||
private string _urlPath;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
var uri = new Uri(NavigationManager.Uri);
|
||||
_urlPath = uri.AbsolutePath; // Dies gibt den Pfadteil der URL zurück
|
||||
|
||||
// Optional: Entfernen Sie den führenden Schrägstrich, falls vorhanden
|
||||
if (_urlPath.StartsWith("/"))
|
||||
{
|
||||
_urlPath = _urlPath.Substring(1);
|
||||
}
|
||||
|
||||
_openAiApiKey = Config.GetValue<string>("API:OpenAI");
|
||||
|
||||
_openAiApi = new OpenAIAPI(_openAiApiKey);
|
||||
|
||||
//string ideaBasePrompt = "Stelle dir vor du bist ein berliner Bösewicht und ich gehe auf deine Internetseite, die sich mit der generierung von Wunschbildern mittels KI beschäftigt, und bemerke, dass es die Seite nicht gibt. Denke dir eine witzige und unterschwellige Beleidigung für diesen Sachverhalt gerichtet an mich aus. Ich würde mich freuen, wenn du etwas ausfallender mir gegenüber werden könntest. Antworte mit Berliner Schnauze. Die Seite die ich versucht habe zu erreichen, ist: " + _urlPath;
|
||||
string ideaBasePrompt = "Stelle dir vor du bist ein berliner Bösewicht und ich gehe auf deine Internetseite und bemerke, dass es die Seite nicht gibt. Denke dir eine witzige und unterschwellige Beleidigung für diesen Sachverhalt gerichtet an mich aus. Ich würde mich freuen, wenn du etwas ausfallender mir gegenüber werden könntest. Antworte mit Berliner Schnauze. Die Seite die ich versucht habe zu erreichen, ist: " + _urlPath;
|
||||
//string ideaBasePrompt = "Stelle dir vor jemand geht auf eine Seite einer Internetseite und bemerkt, dass es die Seite nicht gibt. Denke dir eine witzige idee als html code aus, um der Person zu präsentieren, dass die seite nicht existiert. Es soll unterschwellig beleidigend sein aber niemanden offensichtlich beleidigen. sei kreativ und denke daran, nur html und css zu generieren. Der css teil soll im html teil schon drin sein. Die seite die nicht gefunden wurde ist: " + _urlPath;
|
||||
|
||||
ChatRequest chatRequest = new ChatRequest
|
||||
{
|
||||
Temperature = 0.9,
|
||||
Model = Model.ChatGPTTurbo //ChatGPT.GPT4Turbo
|
||||
};
|
||||
|
||||
_conversation = _openAiApi.Chat.CreateConversation(chatRequest);
|
||||
|
||||
// Wunsch an GPT senden und Bild Idee anfordern
|
||||
_conversation.AppendUserInput(ideaBasePrompt);
|
||||
_text = await _conversation.GetResponseFromChatbotAsync();
|
||||
_mus = new MarkupString(_text);
|
||||
StateHasChanged();
|
||||
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
16
KIKunstKirstenKlöckner/Data/AiArtPageData.cs
Normal file
@ -0,0 +1,16 @@
|
||||
namespace KIKunstKirstenKlöckner.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Enthält Daten für die AiArt
|
||||
/// </summary>
|
||||
public class AiArtPageData
|
||||
{
|
||||
private readonly ImageGenerator _imageGenerator;
|
||||
|
||||
public ImageGenerator ImageGenerator => _imageGenerator;
|
||||
|
||||
public AiArtPageData(ImageGenerator imageGenerator)
|
||||
{
|
||||
_imageGenerator = imageGenerator;
|
||||
}
|
||||
}
|
||||
9
KIKunstKirstenKlöckner/Data/ChatGPT.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using OpenAI_API.Models;
|
||||
|
||||
namespace KIKunstKirstenKlöckner.Data;
|
||||
|
||||
public class ChatGPT
|
||||
{
|
||||
public static Model GPT4Turbo => new Model("gpt-4-turbo") { OwnedBy = "openai" };
|
||||
public static Model GPT4o => new Model("gpt-4o") { OwnedBy = "openai" };
|
||||
}
|
||||
129
KIKunstKirstenKlöckner/Data/ImageGenerator.cs
Normal file
@ -0,0 +1,129 @@
|
||||
using DataAccess.Data;
|
||||
using DataAccess.Models;
|
||||
using System.Diagnostics;
|
||||
using SixLabors.ImageSharp;
|
||||
|
||||
namespace KIKunstKirstenKlöckner.Data;
|
||||
|
||||
public class ImageGenerator
|
||||
{
|
||||
private readonly HttpClient _client = new();
|
||||
private readonly BildInfoData _bildInfoData;
|
||||
|
||||
private readonly IConfiguration _config;
|
||||
|
||||
//private string ModelName => _config.GetValue<string>("StableDiffusionModel") ?? "No Model Defined";
|
||||
|
||||
public ImageGenerator(IConfiguration config, BildInfoData bildInfoData)
|
||||
{
|
||||
_config = config;
|
||||
_bildInfoData = bildInfoData;
|
||||
|
||||
string? inferenceApiKey = config.GetValue<string>("API:HF_Inference");
|
||||
|
||||
_client.DefaultRequestHeaders.Clear();
|
||||
_client.DefaultRequestHeaders.Add("Authorization", $"Bearer {inferenceApiKey}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Geneiert ein Bild für den gegebenen Wunsch.
|
||||
/// </summary>
|
||||
/// <param name="imagePrompt">Der Prompt für den das Bild erzeugt wird.</param>
|
||||
/// <param name="wunschInfo">Der Wunsch zu dem ein Bild generiert werden soll.</param>
|
||||
/// <param name="width">Die breite des zu generierenden Bildes. <see langword="null"/> für Standardbreite des Modells</param>
|
||||
/// <param name="height">Die höhe des zu generierenden Bildes. <see langword="null"/> für Standardhöhe des Modells</param>
|
||||
/// <param name="negativePromt">Begriffe, die explizit nicht generiert werden sollen.</param>
|
||||
/// <returns>Die BildInfo des generierten Bildes; oder null, wenn ein Fehler auftrat.</returns>
|
||||
public async Task<BildInfoModel?> GenerateImageAsync(string imagePrompt, string modelName, WunschInfoModel wunschInfo, int? width = null, int? height = null, string negativePromt = "")
|
||||
{
|
||||
var postData = new
|
||||
{
|
||||
inputs = imagePrompt,
|
||||
parameters = new
|
||||
{
|
||||
negative_prompt = negativePromt, //"photorealistic, highly detailed, 8K, portrait",
|
||||
width = width,
|
||||
height = height
|
||||
},
|
||||
options = new
|
||||
{
|
||||
// https://huggingface.co/docs/api-inference/detailed_parameters
|
||||
// Cache deaktivieren, damit Huggingface für den selben Prompt unterschiedliche Ergebnisse liefert
|
||||
use_cache = false,
|
||||
// Ignoriert 503-Fehler. Diese treten auf wenn Hugging Face das Model noch nicht geladen hat.
|
||||
// Mit true ignorieren wir den Fehler und schlagen erst fehl, wenn wir einen timeout haben.
|
||||
wait_for_model = true
|
||||
}
|
||||
};
|
||||
|
||||
JsonContent content = JsonContent.Create(postData);
|
||||
|
||||
try
|
||||
{
|
||||
var inferenceModelUrl = $"https://api-inference.huggingface.co/models/{modelName}";
|
||||
|
||||
var response = await _client.PostAsync(inferenceModelUrl, content);
|
||||
|
||||
if (response?.IsSuccessStatusCode == true)
|
||||
{
|
||||
await using Stream imageStream = await response.Content.ReadAsStreamAsync();
|
||||
|
||||
DateTime imageDate = DateTime.Now;
|
||||
|
||||
BildInfoModel bildInfo = new()
|
||||
{
|
||||
// Die tatsächliche Url wird in SaveImageStreamAsync gesetzt.
|
||||
Dateiname = "PlaceHolder",
|
||||
Datum = imageDate,
|
||||
ImageModel = modelName,
|
||||
WunschId = wunschInfo.Id,
|
||||
Prompt = imagePrompt
|
||||
};
|
||||
|
||||
await SaveImageStreamAsync(imageStream, bildInfo);
|
||||
|
||||
return bildInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine($"Image conversion failed: {response}");
|
||||
|
||||
if (Debugger.IsAttached)
|
||||
Debugger.Break();
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Console.WriteLine($"Image request failed: {exception}");
|
||||
|
||||
if (Debugger.IsAttached)
|
||||
Debugger.Break();
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Speichert den Inhalt des gegebenen Datenstroms als Bild ab.
|
||||
/// </summary>
|
||||
/// <param name="dataStream">Der Datenstrom, der das Bild enthält.</param>
|
||||
/// <param name="bildInfo">Die BildInfo des Bildes. Der Dateiname wird nach dem Speichern aktualisiert.</param>
|
||||
private async Task SaveImageStreamAsync(Stream dataStream, BildInfoModel bildInfo)
|
||||
{
|
||||
using Image image = await Image.LoadAsync(dataStream);
|
||||
|
||||
// Speichert BildInfo in der Datenbank, aktualisiert Id der bildInfo
|
||||
await _bildInfoData.InsertBildInfoAsync(bildInfo);
|
||||
|
||||
string imageUrl = $"generated_images/Image_{bildInfo.Id}.jpg";
|
||||
|
||||
string imageFilePath = $"./wwwroot/{imageUrl}";
|
||||
await image.SaveAsJpegAsync(imageFilePath);
|
||||
|
||||
// Speichert den geänderten Dateinamen in der Datenbank
|
||||
bildInfo.Dateiname = imageUrl;
|
||||
await _bildInfoData.UpdateBildInfoDateinameAsync(bildInfo);
|
||||
}
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
namespace KIKunstKirstenKlöckner.Data;
|
||||
|
||||
public class WeatherForecast
|
||||
{
|
||||
public DateOnly Date { get; set; }
|
||||
|
||||
public int TemperatureC { get; set; }
|
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
|
||||
public string? Summary { get; set; }
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
namespace KIKunstKirstenKlöckner.Data;
|
||||
|
||||
public class WeatherForecastService
|
||||
{
|
||||
private static readonly string[] Summaries = new[]
|
||||
{
|
||||
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
|
||||
};
|
||||
|
||||
public Task<WeatherForecast[]> GetForecastAsync(DateOnly startDate)
|
||||
{
|
||||
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
|
||||
{
|
||||
Date = startDate.AddDays(index),
|
||||
TemperatureC = Random.Shared.Next(-20, 55),
|
||||
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
|
||||
}).ToArray());
|
||||
}
|
||||
}
|
||||
23
KIKunstKirstenKlöckner/Extensions/ListExtension.cs
Normal file
@ -0,0 +1,23 @@
|
||||
namespace KIKunstKirstenKlöckner.Extensions
|
||||
{
|
||||
public static class ListExtension
|
||||
{
|
||||
public static IEnumerable<T> PickRandom<T>(this List<T> list, int n)
|
||||
{
|
||||
if (list.Count == 0)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
if (n <= 0)
|
||||
{
|
||||
throw new ArgumentException("n must be greater than 0: ", nameof(n));
|
||||
}
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
int index = Random.Shared.Next(list.Count);
|
||||
yield return list[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,22 +1,26 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>c1bf616d-d992-465d-91b1-995a57ba483d</UserSecretsId>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<LangVersion>12</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="HuggingFace" Version="0.2.3" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
|
||||
<PackageReference Include="OpenAI" Version="1.7.2" />
|
||||
<PackageReference Include="Radzen.Blazor" Version="4.14.4" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
|
||||
<PackageReference Include="OpenAI" Version="1.11.0" />
|
||||
<PackageReference Include="Radzen.Blazor" Version="4.33.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="wwwroot\NewFolder\" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DataAccess\DataAccess.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -1,181 +1,377 @@
|
||||
@page "/aiart"
|
||||
|
||||
@using OpenAI_API
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using OpenAI_API.Chat
|
||||
@using OpenAI_API.Models
|
||||
@using DataAccess.Data
|
||||
@using DataAccess.Models
|
||||
@using KIKunstKirstenKlöckner.Data
|
||||
@using KIKunstKirstenKlöckner.Extensions
|
||||
@using System.Diagnostics
|
||||
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject IConfiguration Config
|
||||
@inject TooltipService TooltipService
|
||||
@inject NotificationService NotificationService
|
||||
@inject DialogService DialogService
|
||||
|
||||
@inject IJSRuntime JSRuntime;
|
||||
@inject ImageGenerator ImageGenerator;
|
||||
@inject BildInfoData BildInfoData;
|
||||
@inject WunschInfoData WunschInfoData;
|
||||
|
||||
<PageTitle>AiArt</PageTitle>
|
||||
@implements IAsyncDisposable
|
||||
|
||||
<h1>Wunschbilder von KI nur für dich</h1>
|
||||
<style>
|
||||
.invisible-rectangle {
|
||||
width: 100%;
|
||||
height: 600px;
|
||||
opacity: 0;
|
||||
background-color: transparent;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@*<EditForm Model="@exampleModel" OnSubmit="@DoStuff">
|
||||
<InputText @bind-Value="exampleModel.Name" />
|
||||
.invisible-rectangle-small {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
opacity: 0;
|
||||
background-color: transparent;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</EditForm>*@
|
||||
<PageTitle>Wunschbild Generator</PageTitle>
|
||||
|
||||
<!-- Dies ist das Textfeld -->
|
||||
@*<input type="text" @bind="request" placeholder="Text eingeben..." />
|
||||
*@
|
||||
<!-- Dies ist der Button -->
|
||||
@*<button @onclick="DoStuff">Klick mich</button>*@
|
||||
<section class="about_section" style="background-image: url('images/5KeineAngstvorFehlern2014.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
|
||||
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Center">
|
||||
<div class="hero_area hero-area-visible">
|
||||
|
||||
<!-- slider section -->
|
||||
<section class="slider_section" style="background-image: url('images/3730Kilo2015.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 ">
|
||||
<div class="detail_box">
|
||||
<h1>
|
||||
Hier werden <br>
|
||||
deine Wünsche <br>
|
||||
Wirklichkeit
|
||||
</h1>
|
||||
<p>
|
||||
Weiter unten findest du meinen Assistenten. Gebe ihm deinen Wunsch und er wird sich etwas tolles dazu überlegen. Es lohnt sich geduldig zu sein. <br>
|
||||
Scrolle einfach nach unten!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-6 offset-lg-1">
|
||||
<div class="img_content">
|
||||
<div class="img_container">
|
||||
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
|
||||
<div class="carousel-inner">
|
||||
@if (_allBildInfos != null)
|
||||
{
|
||||
@foreach (var bildInfo in _allBildInfos)
|
||||
{
|
||||
if (_indexForCarusell == 0)
|
||||
{
|
||||
<div class="carousel-item active">
|
||||
<div class="img-box">
|
||||
<img src="@bildInfo.Dateiname"/>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="@bildInfo.Dateiname"/>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
_indexForCarusell++;
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end slider section -->
|
||||
</div>
|
||||
<div class="invisible-rectangle-small"></div>
|
||||
|
||||
<!-- start entry section -->
|
||||
<section id="entrySection" class="section-animate-left" @ref="animatedEntrySection">
|
||||
<div class="container">
|
||||
|
||||
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Center">
|
||||
<h1>Wunschbilder von KI nur für dich</h1>
|
||||
<RadzenText TextStyle="TextStyle.H2">Nenne uns deinen Wunsch:</RadzenText>
|
||||
<RadzenTextBox @bind-Value=@_userIdea Placeholder="Dein Wunsch"/>
|
||||
|
||||
@* Zusätzliche Optionen *@
|
||||
<RadzenPanel AllowCollapse="true" Style="width: 500px;" Text="Mehr Optionen">
|
||||
<ChildContent>
|
||||
<RadzenCard class="rz-mt-4">
|
||||
<RadzenStack Orientation="Orientation.Horizontal"
|
||||
MouseEnter="@(args => ShowTemperatureTooltip(args))"
|
||||
MouseLeave="TooltipService.Close"
|
||||
AlignItems="AlignItems.Center" Wrap="FlexWrap.Wrap">
|
||||
<RadzenText>Temperature:</RadzenText>
|
||||
<RadzenSlider @bind-Value=@_temperature TValue="float"
|
||||
Step="0.1" Min="0.0m" Max="2.0m">
|
||||
</RadzenSlider>
|
||||
<RadzenText>@_temperature</RadzenText>
|
||||
</RadzenStack>
|
||||
<RadzenStack Orientation="Orientation.Horizontal"
|
||||
AlignItems="AlignItems.Center" Wrap="FlexWrap.Wrap">
|
||||
<RadzenText>Resolution:</RadzenText>
|
||||
<RadzenStack Orientation="Orientation.Horizontal">
|
||||
<RadzenNumeric ShowUpDown = "false" TValue = "int?" @bind-Value=@_imageWidth />
|
||||
x
|
||||
<RadzenNumeric ShowUpDown = "false" TValue = "int?" @bind-Value=@_imageHeight />
|
||||
</RadzenStack>
|
||||
</RadzenStack>
|
||||
<RadzenRadioButtonList @bind-Value=@_usedGptModel TValue="GptModel" class="mb-5">
|
||||
<Items>
|
||||
<RadzenRadioButtonListItem Text="GPT-3.5 Turbo" Value="GptModel.Gpt3_5_turbo"
|
||||
MouseEnter="@(args => ShowTooltip("Schnell aber nicht sonderlich clever.", args))"
|
||||
MouseLeave="TooltipService.Close">
|
||||
</RadzenRadioButtonListItem>
|
||||
<RadzenRadioButtonListItem Text="GPT-4 Turbo" Value="GptModel.Gpt4_turbo"
|
||||
MouseEnter="@(args => ShowTooltip("Etwas langsamer, aber recht klug.", args))"
|
||||
MouseLeave="TooltipService.Close">
|
||||
</RadzenRadioButtonListItem>
|
||||
<RadzenRadioButtonListItem Text="GPT-4o" Value="GptModel.Gpt4o"
|
||||
MouseEnter="@(args => ShowTooltip("Schnell, gut und günstig. Warum gibt es überhaupt eine Auswahlmöglichkeit?", args))"
|
||||
MouseLeave="TooltipService.Close">
|
||||
</RadzenRadioButtonListItem>
|
||||
</Items>
|
||||
</RadzenRadioButtonList>
|
||||
@* <RadzenRadioButtonList Data="@_imageModels" @bind-Value=@_selectedImageModel TValue="ModelInfo" TextProperty="Name" class="mb-5"> *@
|
||||
<RadzenRadioButtonList Data="@_imageModels" @bind-Value=@_selectedImageModel TValue="ModelInfo" TextProperty="Name" ValueProperty="" class="mb-5">
|
||||
<Items>
|
||||
<RadzenRadioButtonListItem Text="Zufällig" Value="@null" TValue="ModelInfo"
|
||||
MouseEnter="@(args => ShowTooltip("Für jedes Bild wird zufällig ein Generator ausgewählt.", args))"
|
||||
MouseLeave="TooltipService.Close"/>
|
||||
</Items>
|
||||
</RadzenRadioButtonList>
|
||||
</RadzenCard>
|
||||
</ChildContent>
|
||||
</RadzenPanel>
|
||||
|
||||
<RadzenButton Visible=@_buttonVisible Click="@OnGenerateButtonClickAsync">Generate</RadzenButton>
|
||||
</RadzenStack>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end entry section -->
|
||||
|
||||
<!-- start image section -->
|
||||
<section id="imageSection">
|
||||
<div class="container">
|
||||
@if (_imageSectionVisible)
|
||||
{
|
||||
<section id="imageSection">
|
||||
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Center">
|
||||
<RadzenText TextStyle="TextStyle.H4">Die Idee, die gemalt wird:</RadzenText>
|
||||
|
||||
<RadzenCard class="rz-mt-4" Style="width: 800px;">
|
||||
<RadzenText>@_imageIdea</RadzenText>
|
||||
</RadzenCard>
|
||||
|
||||
<RadzenProgressBarCircular Visible=@_progressVisible ProgressBarStyle="ProgressBarStyle.Secondary" Value="100" ShowValue="false" Mode="ProgressBarMode.Indeterminate" />
|
||||
<RadzenText Visible=@_progressVisible TextStyle="TextStyle.H6" Text=@BusyMessage></RadzenText>
|
||||
|
||||
<RadzenImage Path=@_imageUrl></RadzenImage>
|
||||
|
||||
<RadzenText Visible=@_addonsVisible TextStyle="TextStyle.H2">Verändere hier dein Bild durch Worte:</RadzenText>
|
||||
<RadzenTextBox Visible=@_addonsVisible @bind-Value=@_updateRequest Placeholder="z.B. Mehr Farben" />
|
||||
<RadzenButton Visible=@_bothVisible Click=@(async ()=> await UpdateImagesAsync())>Generate</RadzenButton>
|
||||
|
||||
<RadzenCard>
|
||||
<RadzenRow Style="width:24.5em" Gap="0.5rem" RowGap="0.5rem">
|
||||
<RadzenColumn Size="6">
|
||||
<FlippingImage ImageUrl="@_imageUrls[0]" HideImage="false"
|
||||
Show="@(_imageStates[0] == ImageState.FadeIn)" FlipTo="FlippingImage.FlipDirection.Up"
|
||||
Click="() => ShowImageDialog(_imageUrls[0])" />
|
||||
<RadzenPanel AllowCollapse="true" Collapsed="true" Text="Info">
|
||||
@_imagePromts[0]
|
||||
<br />
|
||||
Model: @_bildInfos[0]?.ImageModel
|
||||
</RadzenPanel>
|
||||
</RadzenColumn>
|
||||
<RadzenColumn Size="6">
|
||||
<FlippingImage ImageUrl="@_imageUrls[1]" HideImage="false"
|
||||
Show="@(_imageStates[1] == ImageState.FadeIn)" FlipTo="FlippingImage.FlipDirection.Right" FlipDelay="200"
|
||||
Click="() => ShowImageDialog(_imageUrls[1])" />
|
||||
<RadzenPanel AllowCollapse="true" Collapsed="true" Text="Info">
|
||||
@_imagePromts[1]
|
||||
<br />
|
||||
Model: @_bildInfos[1]?.ImageModel
|
||||
</RadzenPanel>
|
||||
</RadzenColumn>
|
||||
<RadzenColumn Size="6">
|
||||
<FlippingImage ImageUrl="@_imageUrls[2]" HideImage="false"
|
||||
Show="@(_imageStates[2] == ImageState.FadeIn)" FlipTo="FlippingImage.FlipDirection.Left" FlipDelay="600"
|
||||
Click="() => ShowImageDialog(_imageUrls[2])" />
|
||||
<RadzenPanel AllowCollapse="true" Collapsed="true" Text="Info">
|
||||
@_imagePromts[2]
|
||||
<br />
|
||||
Model: @_bildInfos[2]?.ImageModel
|
||||
</RadzenPanel>
|
||||
</RadzenColumn>
|
||||
<RadzenColumn Size="6">
|
||||
<FlippingImage ImageUrl="@_imageUrls[3]" HideImage="false"
|
||||
Show="@(_imageStates[3] == ImageState.FadeIn)" FlipTo="FlippingImage.FlipDirection.Down" FlipDelay="400"
|
||||
Click="() => ShowImageDialog(_imageUrls[3])" />
|
||||
<RadzenPanel AllowCollapse="true" Collapsed="true" Text="Info">
|
||||
@_imagePromts[3]
|
||||
<br />
|
||||
Model: @_bildInfos[3]?.ImageModel
|
||||
</RadzenPanel>
|
||||
</RadzenColumn>
|
||||
</RadzenRow>
|
||||
</RadzenCard>
|
||||
</RadzenStack>
|
||||
</section>
|
||||
}
|
||||
@if (!_imageSectionVisible)
|
||||
{
|
||||
<div class="invisible-rectangle"></div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
<!-- end image section -->
|
||||
|
||||
<RadzenText TextStyle="TextStyle.H2">Nenne uns deinen Wunsch:</RadzenText>
|
||||
<RadzenTextBox @bind-Value=@request Placeholder="Dein Wunsch"/>
|
||||
|
||||
<RadzenPanel AllowCollapse="true" Style="width: 500px;" Text="Mehr Optionen">
|
||||
<ChildContent>
|
||||
<RadzenCard class="rz-mt-4">
|
||||
<RadzenStack Orientation="Orientation.Horizontal"
|
||||
MouseEnter="@(args => ShowTemperatureTooltip(args))"
|
||||
MouseLeave="TooltipService.Close"
|
||||
AlignItems="AlignItems.Center" Wrap="FlexWrap.Wrap">
|
||||
<RadzenText>Temperature:</RadzenText>
|
||||
<RadzenSlider @bind-Value=@temperature TValue="float"
|
||||
Step="0.1" Min="0.0m" Max="2.0m">
|
||||
</RadzenSlider>
|
||||
<RadzenText>@temperature</RadzenText>
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
</ChildContent>
|
||||
</RadzenPanel>
|
||||
|
||||
<RadzenButton Visible=@_buttonVisible Click=@(async ()=> await DoStuff(true))>Generate</RadzenButton>
|
||||
|
||||
<RadzenPanel AllowCollapse="true" Style="width: 500px;" Text="Zeige Prompt">
|
||||
<ChildContent>
|
||||
<RadzenCard class="rz-mt-4">
|
||||
<RadzenStack Orientation="Orientation.Horizontal"
|
||||
MouseEnter="@(args => ShowTemperatureTooltip(args))"
|
||||
MouseLeave="TooltipService.Close"
|
||||
AlignItems="AlignItems.Center" Wrap="FlexWrap.Wrap">
|
||||
<RadzenText>@_imagePrompt</RadzenText>
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
</ChildContent>
|
||||
</RadzenPanel>
|
||||
|
||||
<RadzenText TextStyle="TextStyle.H4">Die Idee, die gemalt wird:</RadzenText>
|
||||
<RadzenText>@_imageDescription</RadzenText>
|
||||
|
||||
<RadzenProgressBarCircular Visible=@_progressVisible ProgressBarStyle="ProgressBarStyle.Secondary" Value="100" ShowValue="false" Mode="ProgressBarMode.Indeterminate" />
|
||||
<RadzenText Visible=@_progressVisible TextStyle="TextStyle.H6" Text=@BusyMessage></RadzenText>
|
||||
|
||||
<RadzenImage Path=@_imageUrl></RadzenImage>
|
||||
|
||||
<RadzenText Visible=@_addonsVisible TextStyle="TextStyle.H2">Verändere hier dein Bild durch Worte:</RadzenText>
|
||||
<RadzenTextBox Visible=@_addonsVisible @bind-Value=@addons Placeholder="Mehr Farben" />
|
||||
<RadzenButton Visible=@_bothVisible Click=@(async ()=> await DoStuff(false))>Generate</RadzenButton>
|
||||
|
||||
</RadzenStack>
|
||||
</section>
|
||||
|
||||
@code {
|
||||
// Animation stuff
|
||||
private int _indexForCarusell = 0;
|
||||
private ElementReference animatedEntrySection;
|
||||
private List<ElementReference> animatedElements = new List<ElementReference>();
|
||||
|
||||
private Func<Task> removeScrollListener;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
animatedElements.Add(animatedEntrySection);
|
||||
|
||||
removeScrollListener = await JSRuntime.InvokeAsync<Func<Task>>(
|
||||
"initHeroAreaScrollAnimation"
|
||||
);
|
||||
|
||||
await JSRuntime.InvokeVoidAsync("initScrollAnimations", animatedElements);
|
||||
}
|
||||
}
|
||||
|
||||
private bool isDisposed = false;
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (!isDisposed)
|
||||
{
|
||||
if (removeScrollListener != null)
|
||||
{
|
||||
await removeScrollListener.Invoke();
|
||||
}
|
||||
isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task OnGenerateButtonClickAsync()
|
||||
{
|
||||
_imageSectionVisible = true;
|
||||
StateHasChanged();
|
||||
await Task.Delay(100);
|
||||
await JSRuntime.InvokeVoidAsync("scrollToElement", "imageSection");
|
||||
await GenerateImagesAsync();
|
||||
}
|
||||
|
||||
IEnumerable<BildInfoModel>? _allBildInfos;
|
||||
|
||||
enum GptModel
|
||||
{
|
||||
Gpt3_5_turbo,
|
||||
Gpt4_turbo,
|
||||
Gpt4o
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Das ChatGPT Model, das zur Erzeugung der Idee und Bild-Promts verwendet wird.
|
||||
/// </summary>
|
||||
private GptModel _usedGptModel = GptModel.Gpt3_5_turbo;
|
||||
|
||||
private int maxAddons = 2;
|
||||
private int amountOfAddons = 0; // wird später geändert
|
||||
private string _imageDescriptionPrompt = "Zusätzlich zu dem Promt erkläre kurz auf deutsch, warum du dich für diese Umsetzung des Titels entschieden hast und gib zusätzlich eine Interpretation des Bildes an. Beginne diesen Teil immer mit \"Beschreibung: \". Zuletzt Beschreibe das Bild und die verbundenen Emotionen mit drei Worten und beginne den Teil mit \"Keywords: \".";
|
||||
private bool _progressVisible = false;
|
||||
private bool _buttonVisible = true;
|
||||
private bool _addonsVisible = false;
|
||||
private bool _bothVisible = false;
|
||||
private bool _imageSectionVisible = false;
|
||||
|
||||
public string BusyMessage { get; set; } = "Initial Message";
|
||||
|
||||
// Busy dialog from markup
|
||||
async Task ShowBusyDialog()
|
||||
private string?[] _imageUrls = new string?[4];
|
||||
private string?[] _imagePromts = new string?[4];
|
||||
private BildInfoModel?[] _bildInfos = new BildInfoModel?[4];
|
||||
private ImageState[] _imageStates = new ImageState[4];
|
||||
|
||||
enum ImageState
|
||||
{
|
||||
await DialogService.OpenAsync("", ds =>
|
||||
@<RadzenStack AlignItems="AlignItems.Center" Gap="2rem" Class="rz-p-12">
|
||||
<RadzenProgressBarCircular ProgressBarStyle="ProgressBarStyle.Secondary" Value="100" ShowValue="false" Mode="ProgressBarMode.Indeterminate"/>
|
||||
<RadzenText TextStyle="TextStyle.H6" Text=@BusyMessage></RadzenText>
|
||||
</RadzenStack>, new DialogOptions() { ShowTitle = false, Style = "min-height:auto;min-width:auto;width:auto", CloseDialogOnEsc = false });
|
||||
FadeOut,
|
||||
FadeIn
|
||||
}
|
||||
|
||||
// Busy dialog from string
|
||||
async Task BusyDialog(string message)
|
||||
async Task ShowImageDialog(string imageUrl)
|
||||
{
|
||||
await DialogService.OpenAsync("", ds =>
|
||||
{
|
||||
RenderFragment content = b =>
|
||||
{
|
||||
b.OpenElement(0, "RadzenRow");
|
||||
|
||||
b.OpenElement(1, "RadzenColumn");
|
||||
b.AddAttribute(2, "Size", "12");
|
||||
|
||||
b.AddContent(3, message);
|
||||
|
||||
b.CloseElement();
|
||||
b.CloseElement();
|
||||
};
|
||||
return content;
|
||||
}, new DialogOptions() { ShowTitle = false, Style = "min-height:auto;min-width:auto;width:auto", CloseDialogOnEsc = false });
|
||||
var result = await DialogService.OpenAsync("", ds =>
|
||||
@<div>
|
||||
<RadzenImage Style="object-fit: contain; width: 100%; height:100%;" Path="@imageUrl"/>
|
||||
</div>, new DialogOptions() { CloseDialogOnOverlayClick = true });
|
||||
}
|
||||
|
||||
void ShowTooltip(ElementReference elementReference, string text, TooltipOptions? options = null) => TooltipService.Open(elementReference, text, options);
|
||||
|
||||
void ShowTemperatureTooltip(ElementReference elementReference) => TooltipService.Open(elementReference, ds =>
|
||||
@<div>
|
||||
Gibt an, wie <em>kreativ</em> ChatGPT sein soll.<br />
|
||||
Ich glaube, eigentlich bedeutet es eher, wie <em>deterministisch</em> die Ausgabe ist.<br />
|
||||
Bei 0.0 kommt immer fast die selbe Antwort. Bei zu hohen Werten kommt nur noch Schwachsinn.<br />
|
||||
OpenAI empfielt einen Wert von ca. 0.9 für kreative Anwendungen.
|
||||
Gibt an, wie <em>kreativ</em> ChatGPT sein soll.<br/>
|
||||
</div>
|
||||
,
|
||||
new() { Position = TooltipPosition.Bottom, Duration = null});
|
||||
|
||||
private string _imagePrompt = "\"Painting of a soccer match with the Hamburger SV team scoring multiple goals, vibrant colors and dynamic brushstrokes.\" Watercolor + ink on paper, Pen drawing, wet-on-wet technique, dry-on-dry technique, dabbing technique.";
|
||||
private string _imageDescription = "Ich habe mich für diese Interpretation des Titels entschieden, um die Dynamik und den Erfolg des Hamburger SV Fußballvereins darzustellen. Durch die Darstellung eines Spiels, in dem der HSV viele Tore schießt, wird die Leidenschaft und das Streben nach Erfolg hervorgehoben. Die lebendigen Farben und die dynamischen Pinselstriche sollen die Energie und Aufregung des Spiels wiedergeben.";
|
||||
void ShowTooltip(string text, ElementReference elementReference) => TooltipService.Open(elementReference, ds =>
|
||||
@<div>@text</div>
|
||||
,
|
||||
new() { Position = TooltipPosition.Bottom, Duration = null});
|
||||
|
||||
private float temperature = 0.9f;
|
||||
private string request = "";
|
||||
private string addons = "";
|
||||
private OpenAIAPI api = new OpenAIAPI("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");
|
||||
private Conversation converse;
|
||||
private string _imageIdea = "";
|
||||
|
||||
private float _temperature = 0.9f;
|
||||
private int? _imageWidth = null;
|
||||
private int? _imageHeight = null;
|
||||
private string _userIdea = "";
|
||||
private string _updateRequest = "";
|
||||
private OpenAIAPI _openAiApi;
|
||||
private Conversation? _conversation;
|
||||
|
||||
private string _basePrompt;
|
||||
private string _ideaPrompt;
|
||||
|
||||
private string _imageUrl;
|
||||
|
||||
//protected override async Task OnInitializedAsync()
|
||||
//{
|
||||
// _basePrompt = await File.ReadAllTextAsync($"{Directory.GetCurrentDirectory()}{@"\wwwroot\prompt.txt"}");
|
||||
//}
|
||||
|
||||
private async Task FunnyMessageSwitcher_ImageGen(CancellationToken cancellationToken)
|
||||
{
|
||||
Stopwatch sw = Stopwatch.StartNew();
|
||||
|
||||
await Task.Delay(1000, cancellationToken);
|
||||
|
||||
await UpdateBusyMessage("Dauert noch eine Weile...");
|
||||
|
||||
await Task.Delay(1000, cancellationToken);
|
||||
|
||||
await UpdateBusyMessage("Gut Ding hat Weil...");
|
||||
|
||||
await Task.Delay(1000, cancellationToken);
|
||||
|
||||
await UpdateBusyMessage("Sach ma, was issn da l... achso, er ist auf Klo gegangen... Er ist bestimmt gleich wieder da...");
|
||||
|
||||
await Task.Delay(1000, cancellationToken);
|
||||
|
||||
await UpdateBusyMessage("Na, also langsam verlier ich hier die Geduld, ich dachte KI soll alles schneller machen...");
|
||||
|
||||
while (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
await Task.Delay(1000, cancellationToken);
|
||||
|
||||
await UpdateBusyMessage($"Keine Sorge, er arbeitet noch. Die Bilder werden gemalt... ({sw.Elapsed.Seconds}s)");
|
||||
}
|
||||
}
|
||||
private WunschInfoModel? _wunschInfo;
|
||||
|
||||
async Task UpdateBusyMessage(string newMessage)
|
||||
{
|
||||
@ -183,69 +379,208 @@
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
public async Task GenerateImage()
|
||||
private string _openAiApiKey = "";
|
||||
|
||||
class ModelInfo
|
||||
{
|
||||
//await JSRuntime.InvokeVoidAsync("DoSexyStuffBridge", _imagePrompt);
|
||||
_imageUrl = await JSRuntime.InvokeAsync<string>("DoSexyStuffBridge", _imagePrompt);
|
||||
public string Name { get; set; }
|
||||
public string StableDiffusionModel { get; set; }
|
||||
public string PromptFormat { get; set; }
|
||||
}
|
||||
|
||||
private List<ModelInfo> _imageModels;
|
||||
|
||||
private async Task DoStuff(bool newPic)
|
||||
private ModelInfo? _selectedImageModel = null;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
_allBildInfos = (await BildInfoData.GetAllBildInfosAsync()).ToList().PickRandom(10);
|
||||
//await InvokeAsync(StateHasChanged);
|
||||
|
||||
_openAiApiKey = Config.GetValue<string>("API:OpenAI");
|
||||
|
||||
_openAiApi = new OpenAIAPI(_openAiApiKey);
|
||||
|
||||
_imageModels = Config.GetSection("ImageModels").Get<List<ModelInfo>>();
|
||||
//_selectedImageModel = _imageModels[0];
|
||||
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setzt alle Felder zurück, die zu einem bestimmten Wunsch gehören.
|
||||
/// </summary>
|
||||
private void ClearOldGeneration()
|
||||
{
|
||||
// Bilder verbergen
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
_imageStates[i] = ImageState.FadeOut;
|
||||
_imagePromts[i] = null;
|
||||
}
|
||||
|
||||
_imageIdea = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt ChatGPT den Wunsch und erlangt die Bild Idee.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private async Task RequestImageIdeaAsync()
|
||||
{
|
||||
string ideaBasePrompt = await File.ReadAllTextAsync($"{Directory.GetCurrentDirectory()}{@"/wwwroot/idea_prompt.txt"}");
|
||||
|
||||
ChatRequest chatRequest = new ChatRequest
|
||||
{
|
||||
Temperature = _temperature,
|
||||
Model = _usedGptModel switch
|
||||
{
|
||||
GptModel.Gpt3_5_turbo => Model.ChatGPTTurbo,
|
||||
GptModel.Gpt4_turbo => ChatGPT.GPT4Turbo,
|
||||
GptModel.Gpt4o => ChatGPT.GPT4o,
|
||||
_ => throw new ArgumentOutOfRangeException()
|
||||
}
|
||||
};
|
||||
|
||||
_conversation = _openAiApi.Chat.CreateConversation(chatRequest);
|
||||
|
||||
// Wunsch an GPT senden und Bild Idee anfordern
|
||||
_conversation.AppendUserInput(ideaBasePrompt + " " + _userIdea);
|
||||
_imageIdea = await _conversation.GetResponseFromChatbotAsync();
|
||||
}
|
||||
/// <summary>
|
||||
/// Fordert für mehrere Bilder Bild-Prompts an und generiert die dazugehörigen Bilder.
|
||||
/// </summary>
|
||||
private async Task RequestImagesAsync(WunschInfoModel wunschInfo, string requestImagePrompt)
|
||||
{
|
||||
// Nachricht mit Bildpromt anfrage senden
|
||||
_conversation!.AppendUserInput(requestImagePrompt);
|
||||
|
||||
// Task-Liste, damit wir parallel Prompts anfordern und Bilder generieren können.
|
||||
Task[] imagePromts = new Task[4];
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
imagePromts[i] = RequestImagePromptAndGenerateImageAsync(i, wunschInfo);
|
||||
}
|
||||
|
||||
await Task.WhenAll(imagePromts);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fordert einen Bild Prompt an und generiert ein Bild für diesen.
|
||||
/// </summary>
|
||||
/// <param name="index">Der Index des Bildes (für UI zeug)</param>
|
||||
/// <param name="wunschInfo">Der Wunsch für den ein Bild erzeugt wird.</param>
|
||||
private async Task RequestImagePromptAndGenerateImageAsync(int index, WunschInfoModel wunschInfo)
|
||||
{
|
||||
ModelInfo imageModel = _selectedImageModel ?? _imageModels[Random.Shared.Next(_imageModels.Count)];
|
||||
|
||||
// Bild Prompt von ChatGPT anfordern
|
||||
string imagePrompt = await _conversation!.GetResponseFromChatbotAsync();
|
||||
|
||||
// Keywords anhängen um Kirstens Stil zu aktivieren.
|
||||
// TODO: Gucken, ob wir dem Watercolor bums brauchen
|
||||
imagePrompt = string.Format(imageModel.PromptFormat, imagePrompt);//"kkkk " + imagePrompt;// + " kkkk Watercolor + ink on paper, Pen drawing, wet-on-wet technique, dry-on-dry technique, dabbing technique. ";
|
||||
|
||||
// Debug only: Promt anzeigen
|
||||
_imagePromts[index] = imagePrompt;
|
||||
await InvokeAsync(StateHasChanged);
|
||||
|
||||
BildInfoModel? bildInfo = await GenerateImageAsync(imagePrompt, imageModel.StableDiffusionModel, wunschInfo);
|
||||
|
||||
// TODO: Fehler im UI anzeigen (zur Zeit bleibt einfach Ladebalken)
|
||||
_imageUrls[index] = bildInfo?.Dateiname;
|
||||
_bildInfos[index] = bildInfo;
|
||||
_imageStates[index] = ImageState.FadeIn;
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Erzeugt ein Bild für den gegebenen Prompt und Wunsch.
|
||||
/// </summary>
|
||||
/// <param name="imagePrompt">Der Bild Prompt</param>
|
||||
/// <param name="wunschInfo">Der Wunsch.</param>
|
||||
/// <returns>Die URL, falls das Bild generiert wurde; oder null, wenn kein Bild generiert werden konnte.</returns>
|
||||
private async Task<BildInfoModel?> GenerateImageAsync(string imagePrompt, string modelName, WunschInfoModel wunschInfo)
|
||||
{
|
||||
try
|
||||
{
|
||||
BildInfoModel? bildInfo = await ImageGenerator.GenerateImageAsync(imagePrompt, modelName, wunschInfo, _imageWidth, _imageHeight);
|
||||
|
||||
// Kein Bild -> Fehler
|
||||
if (bildInfo == null)
|
||||
{
|
||||
bool? retry = await DialogService.Confirm(
|
||||
"Leider konnte das Bild nicht gemalt werden. Möchtest du es noch eimal versuchen?",
|
||||
"Ups, ein Fehler ist aufgetreten...",
|
||||
new ConfirmOptions { OkButtonText = "Ja", CancelButtonText = "Nein" });
|
||||
|
||||
if (retry == true)
|
||||
{
|
||||
bildInfo = await ImageGenerator.GenerateImageAsync(imagePrompt, modelName, wunschInfo, _imageWidth, _imageHeight);
|
||||
}
|
||||
}
|
||||
|
||||
return bildInfo;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
NotificationService.Notify(new NotificationMessage()
|
||||
{
|
||||
Summary = "Es ist ein Fehler beim Erzeugen der Bilder aufgetreten, bitte versuche es erneut."
|
||||
});
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generiert Bilder oder aktualisiert sie mit dem neuen Prompt.
|
||||
/// </summary>
|
||||
private async Task GenerateImagesAsync()
|
||||
{
|
||||
// Der Dialog blokiert so lange, wie der er offen ist, deshalb dürfen wir hier nicht warten, da wir sonst nie mit der Arbeit anfangen...
|
||||
//Task busyDialog = ShowBusyDialog();
|
||||
_progressVisible = true;
|
||||
_buttonVisible = false;
|
||||
|
||||
if (converse == null || newPic)
|
||||
{
|
||||
amountOfAddons = maxAddons;
|
||||
_addonsVisible = false;
|
||||
_bothVisible = _buttonVisible && _addonsVisible;
|
||||
await UpdateBusyMessage("Kirstens Assistent zerbricht sich über deine Idee den Kopf...");
|
||||
_basePrompt = await File.ReadAllTextAsync($"{Directory.GetCurrentDirectory()}{@"/wwwroot/test_prompt.txt"}");
|
||||
ClearOldGeneration();
|
||||
|
||||
ChatRequest chatRequest = new ChatRequest
|
||||
{
|
||||
Temperature = temperature,
|
||||
Model = Model.ChatGPTTurbo,
|
||||
};
|
||||
amountOfAddons = maxAddons;
|
||||
_addonsVisible = false;
|
||||
_bothVisible = _buttonVisible && _addonsVisible;
|
||||
await UpdateBusyMessage("Kirstens Assistent zerbricht sich über deine Idee den Kopf...");
|
||||
|
||||
converse = api.Chat.CreateConversation(chatRequest);
|
||||
converse.AppendUserInput(_basePrompt + " " + request);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (amountOfAddons > 0)
|
||||
{
|
||||
amountOfAddons--;
|
||||
_bothVisible = _buttonVisible && _addonsVisible;
|
||||
await UpdateBusyMessage("Kirstens Assistent passt das Bild an deine Wünsche an...");
|
||||
string addonsPrompt1 = "Erstelle einen neuen Prompt auf englisch mit den gleichen Restriktionen auf Basis des Alten mit folgender Anpassung: ";
|
||||
string addonsPrompt2 = ". Denke daran nur den Prompt zu generieren und noch keine Beschreibung oder ähnliches.";
|
||||
|
||||
converse.AppendUserInput(addonsPrompt1 + addons + addonsPrompt2);
|
||||
}
|
||||
}
|
||||
|
||||
_imagePrompt = await converse.GetResponseFromChatbotAsync();
|
||||
_imagePrompt += " Watercolor + ink on paper, Pen drawing, wet-on-wet technique, dry-on-dry technique, dabbing technique.";
|
||||
converse.AppendUserInput(_imageDescriptionPrompt);
|
||||
_imageDescription = await converse.GetResponseFromChatbotAsync();
|
||||
await RequestImageIdeaAsync();
|
||||
|
||||
await UpdateBusyMessage("Kirstens Assistent hat eine Idee! Er wird sie nun malen...");
|
||||
Task makeImagesTask = GenerateImage();
|
||||
|
||||
//CancellationTokenSource cancelFunnyMessages = new CancellationTokenSource();
|
||||
_wunschInfo = new()
|
||||
{
|
||||
BildBeschreibung = _imageIdea,
|
||||
BildPrompt = "Individuelle Bild Prompts",
|
||||
Datum = DateTime.Now,
|
||||
GPTModel = _conversation!.Model,
|
||||
Wunsch = _userIdea,
|
||||
VorherigerWunsch = null
|
||||
};
|
||||
|
||||
//Task funnyMessagesTask = FunnyMessageSwitcher_ImageGen(cancelFunnyMessages.Token);
|
||||
try
|
||||
{
|
||||
await WunschInfoData.AddWunschInfoAsync(_wunschInfo);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
NotificationService.Notify(new NotificationMessage()
|
||||
{
|
||||
Summary = "Es ist ein Fehler aufgetreten, bitte versuche es erneut."
|
||||
});
|
||||
|
||||
// Wichtig, erst Bilder awaiten, dann die lustingen Sprüche, sonst warten wir ewig...
|
||||
await makeImagesTask;
|
||||
return;
|
||||
}
|
||||
|
||||
//cancelFunnyMessages.Cancel();
|
||||
string requestImagePrompt = await File.ReadAllTextAsync($"{Directory.GetCurrentDirectory()}{@"/wwwroot/image_prompt.txt"}");
|
||||
|
||||
//await funnyMessagesTask;
|
||||
await RequestImagesAsync(_wunschInfo, requestImagePrompt);
|
||||
|
||||
_progressVisible = false;
|
||||
_buttonVisible = true;
|
||||
@ -262,4 +597,36 @@
|
||||
}
|
||||
}
|
||||
|
||||
private async Task UpdateImagesAsync()
|
||||
{
|
||||
Debug.Assert(_conversation != null);
|
||||
|
||||
string updatePrompt = $"Gebe nun einen neuen Prompt unter berücksichtigung vorheriger Anweisungen und passe ihn folgender Maßen an: {_updateRequest}";
|
||||
|
||||
_wunschInfo = new()
|
||||
{
|
||||
BildBeschreibung = _updateRequest,
|
||||
BildPrompt = "Individuelle Bild Prompts",
|
||||
Datum = DateTime.Now,
|
||||
GPTModel = _conversation.Model,
|
||||
Wunsch = _userIdea,
|
||||
VorherigerWunsch = _wunschInfo!.Id
|
||||
};
|
||||
|
||||
try
|
||||
{
|
||||
await WunschInfoData.AddWunschInfoAsync(_wunschInfo);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
NotificationService.Notify(new NotificationMessage()
|
||||
{
|
||||
Summary = "Es ist ein Fehler aufgetreten, bitte versuche es erneut."
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
await RequestImagesAsync(_wunschInfo, updatePrompt);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
@page "/counter"
|
||||
|
||||
<PageTitle>Counter</PageTitle>
|
||||
|
||||
<h1>Counter</h1>
|
||||
|
||||
<p role="status">Current count: @currentCount</p>
|
||||
|
||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
private int currentCount = 0;
|
||||
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
}
|
||||
@ -1,47 +0,0 @@
|
||||
@page "/fetchdata"
|
||||
@using KIKunstKirstenKlöckner.Data
|
||||
@inject WeatherForecastService ForecastService
|
||||
|
||||
<PageTitle>Weather forecast</PageTitle>
|
||||
|
||||
<h1>Weather forecast</h1>
|
||||
|
||||
<p>This component demonstrates fetching data from a service.</p>
|
||||
|
||||
@if (forecasts == null)
|
||||
{
|
||||
<p><em>Loading...</em></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Temp. (C)</th>
|
||||
<th>Temp. (F)</th>
|
||||
<th>Summary</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var forecast in forecasts)
|
||||
{
|
||||
<tr>
|
||||
<td>@forecast.Date.ToShortDateString()</td>
|
||||
<td>@forecast.TemperatureC</td>
|
||||
<td>@forecast.TemperatureF</td>
|
||||
<td>@forecast.Summary</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
|
||||
@code {
|
||||
private WeatherForecast[]? forecasts;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
forecasts = await ForecastService.GetForecastAsync(DateOnly.FromDateTime(DateTime.Now));
|
||||
}
|
||||
}
|
||||
162
KIKunstKirstenKlöckner/Pages/FlippingImage.razor
Normal file
@ -0,0 +1,162 @@
|
||||
<style>
|
||||
.flip-card {
|
||||
background-color: transparent;
|
||||
width: 12em;
|
||||
height: 12em;
|
||||
perspective: 30em;
|
||||
transition: transform 0.2s;
|
||||
z-index: auto;
|
||||
}
|
||||
|
||||
.flip-card:hover {
|
||||
transform: scale(1.1, 1.1);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.flip-card-inner {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
|
||||
.flip-card_up .flip-card-inner {
|
||||
transition: transform 0.6s var(--delay);
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
|
||||
.flip-card_down .flip-card-inner {
|
||||
transition: transform 0.6s var(--delay);
|
||||
transform: rotateX(-180deg);
|
||||
}
|
||||
|
||||
.flip-card_left .flip-card-inner {
|
||||
transition: transform 0.6s var(--delay);
|
||||
transform: rotateY(-180deg);
|
||||
}
|
||||
|
||||
.flip-card_right .flip-card-inner {
|
||||
transition: transform 0.6s var(--delay);
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
.fade-out-flipped-5 {
|
||||
animation: fadeOut 5s;
|
||||
animation-fill-mode: forwards;
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
.flip-card-front, .flip-card-back_up, .flip-card-back_down, .flip-card-back_left, .flip-card-back_right {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
/* Rückseite beider Karten-Seiten verstecken wird nicht angezeigt */
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
|
||||
}
|
||||
/* Rückseite der Karte ist 180 Grad gedreht */
|
||||
.flip-card-front {
|
||||
/*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);*/
|
||||
}
|
||||
|
||||
.flip-card-back_up {
|
||||
transform: rotateX(-180deg);
|
||||
}
|
||||
|
||||
.flip-card-back_down {
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
|
||||
.flip-card-back_left {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
.flip-card-back_right {
|
||||
transform: rotateY(-180deg);
|
||||
}
|
||||
|
||||
.flip-card-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="flip-card @(Show ? "" : _flipperClassName)">
|
||||
<div class="flip-card-inner" style="--delay: @(FlipDelay)ms;">
|
||||
<div class="@(Show ? "fade-out-5 flip-card-front" : _backClassName)" style="@(HideImage ? "opacity: 0;": "opacity: 1;")">
|
||||
<div class="d-flex justify-content-center align-items-center flip-card-content">
|
||||
<div class="d-flex justify-content-center align-items-center">
|
||||
<RadzenProgressBarCircular ProgressBarStyle="ProgressBarStyle.Primary" ShowValue="false" Mode="ProgressBarMode.Indeterminate"
|
||||
Style="width:12em;height:12em; " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flip-card-front" style="@(HideImage ? "opacity: 0;": "opacity: 1;")">
|
||||
<RadzenImage Path="@ImageUrl" Style="width:12em;height:12em;" Click="@Click" class="@(Show ? "fade-in-5" : "")" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public bool Show { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool HideImage { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string ImageUrl { get; set; } = "images/robot_painting.jpg";
|
||||
|
||||
public enum FlipDirection
|
||||
{
|
||||
Up,
|
||||
Down,
|
||||
Left,
|
||||
Right
|
||||
}
|
||||
|
||||
private string _flipperClassName;
|
||||
private string _backClassName;
|
||||
private FlipDirection _flipTo;
|
||||
|
||||
[Parameter]
|
||||
public FlipDirection FlipTo
|
||||
{
|
||||
get => _flipTo;
|
||||
set
|
||||
{
|
||||
_flipTo = value;
|
||||
_flipperClassName = _flipTo switch
|
||||
{
|
||||
FlipDirection.Up => "flip-card_up",
|
||||
FlipDirection.Down => "flip-card_down",
|
||||
FlipDirection.Left => "flip-card_left",
|
||||
FlipDirection.Right => "flip-card_right",
|
||||
_ => throw new ArgumentOutOfRangeException()};
|
||||
_backClassName = _flipTo switch
|
||||
{
|
||||
FlipDirection.Up => "flip-card-back_up",
|
||||
FlipDirection.Down => "flip-card-back_down",
|
||||
FlipDirection.Left => "flip-card-back_left",
|
||||
FlipDirection.Right => "flip-card-back_right",
|
||||
_ => throw new ArgumentOutOfRangeException()};
|
||||
}
|
||||
}
|
||||
|
||||
[Parameter]
|
||||
public double FlipDelay { get; set; } = 0.0;
|
||||
|
||||
/// <summary>Gets or sets the click callback.</summary>
|
||||
/// <value>The click callback.</value>
|
||||
[Parameter]
|
||||
public EventCallback<MouseEventArgs> Click { get; set; }
|
||||
}
|
||||
99
KIKunstKirstenKlöckner/Pages/Gallery.razor
Normal file
@ -0,0 +1,99 @@
|
||||
@page "/gallery"
|
||||
|
||||
@using DataAccess.Data
|
||||
@using DataAccess.Models
|
||||
|
||||
@inject DialogService DialogService;
|
||||
@inject BildInfoData BildInfoData;
|
||||
@inject WunschInfoData WunschInfoData;
|
||||
|
||||
<style>
|
||||
.small-image {
|
||||
width: 10em;
|
||||
height: 10em;
|
||||
z-index: auto;
|
||||
margin: 0.5em;
|
||||
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
|
||||
border-radius: 1em;
|
||||
/* Gibt an, dass Änderungen an der transform-Eigenschaft innerhalb von 0.2s angewandt werden.*/
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
/* Style, der angewendet wird, wenn über small-image gehovert wird. */
|
||||
.small-image:hover {
|
||||
transform: scale(1.1, 1.1);
|
||||
z-index: 100;
|
||||
}
|
||||
</style>
|
||||
|
||||
<RadzenDataList WrapItems="@true" AllowPaging="true" PageSize="40" Data="@_bildInfos" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
|
||||
<Template Context="bildInfo">
|
||||
<RadzenImage class="small-image" Src="@bildInfo.Dateiname" Click="@(args => ShowImageDialog(bildInfo))" />
|
||||
</Template>
|
||||
</RadzenDataList>
|
||||
|
||||
@code {
|
||||
List<BildInfoModel>? _bildInfos;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
_bildInfos = (await BildInfoData.GetAllBildInfosAsync()).ToList();
|
||||
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
|
||||
async Task ShowImageDialog(BildInfoModel bildInfo)
|
||||
{
|
||||
WunschInfoModel wunschInfo = await WunschInfoData.GetWunschInfoAsync(bildInfo.WunschId);
|
||||
|
||||
int listIndex = _bildInfos.IndexOf(_bildInfos.First(info => info.Id == bildInfo.Id));
|
||||
|
||||
List<BildInfoModel> bilderVomWunsch = _bildInfos!.Where(info => info.WunschId == wunschInfo.Id).ToList();
|
||||
|
||||
async Task ButtonLeft()
|
||||
{
|
||||
listIndex = (listIndex != 0) ? listIndex - 1 : 0;
|
||||
bildInfo = _bildInfos[listIndex];
|
||||
wunschInfo = await WunschInfoData.GetWunschInfoAsync(bildInfo.WunschId);
|
||||
bilderVomWunsch = _bildInfos!.Where(info => info.WunschId == wunschInfo.Id).ToList();
|
||||
DialogService.Refresh();
|
||||
}
|
||||
|
||||
async Task ButtonRight()
|
||||
{
|
||||
listIndex = (listIndex != _bildInfos.Count - 1) ? listIndex + 1 : _bildInfos.Count - 1;
|
||||
bildInfo = _bildInfos[listIndex];
|
||||
wunschInfo = await WunschInfoData.GetWunschInfoAsync(bildInfo.WunschId);
|
||||
bilderVomWunsch = _bildInfos!.Where(info => info.WunschId == wunschInfo.Id).ToList();
|
||||
DialogService.Refresh();
|
||||
}
|
||||
|
||||
|
||||
var result = await DialogService.OpenAsync(wunschInfo.Wunsch, ds =>
|
||||
@<div>
|
||||
<RadzenStack Orientation="Orientation.Horizontal" Wrap="FlexWrap.Wrap">
|
||||
<RadzenStack Orientation="Orientation.Horizontal">
|
||||
<RadzenButton Click=@(async ()=> await ButtonLeft()) Disabled="(listIndex == 0)" Style="border-radius: 0%" Text="<"></RadzenButton>
|
||||
<div>
|
||||
<RadzenStack Orientation="Orientation.Vertical">
|
||||
<RadzenImage Style="width: 400px; height: 400px;" Path="@bildInfo.Dateiname" />
|
||||
</RadzenStack>
|
||||
<RadzenText Text="@wunschInfo.BildBeschreibung" />
|
||||
</div>
|
||||
<RadzenButton Click=@(async ()=> await ButtonRight()) Disabled="(listIndex == _bildInfos.Count - 1)" Style="border-radius: 0%" Text=">"></RadzenButton>
|
||||
</RadzenStack>
|
||||
@foreach (var bild in bilderVomWunsch)
|
||||
{
|
||||
<RadzenImage class="small-image" Path="@bild.Dateiname"
|
||||
Click="() => { bildInfo = bild; listIndex = _bildInfos.IndexOf(_bildInfos.First(info => info.Id == bildInfo.Id)); DialogService.Refresh(); }" />
|
||||
}
|
||||
</RadzenStack>
|
||||
</div>
|
||||
,
|
||||
new DialogOptions() { CloseDialogOnOverlayClick = true, Width = "50%" });
|
||||
}
|
||||
|
||||
|
||||
[Inject]
|
||||
private IWebHostEnvironment _environment { get; set; }
|
||||
}
|
||||
191
KIKunstKirstenKlöckner/Pages/Home.razor
Normal file
@ -0,0 +1,191 @@
|
||||
|
||||
@page "/"
|
||||
|
||||
@inject IJSRuntime JSRuntime
|
||||
@implements IAsyncDisposable
|
||||
|
||||
@* linear-gradient(to bottom, #ffffff 0%, transparent 1%, transparent 99.5%, #f3f0f6 100%)
|
||||
*@
|
||||
|
||||
<section class="about_section" style="background-image: url('images/5KeineAngstvorFehlern2014.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
|
||||
<div class="hero_area hero-area-visible">
|
||||
|
||||
<!-- slider section -->
|
||||
<section class="slider_section" style="background-image: url('images/118EinfacherFrieden2017.jpg'); border-image: url('images/0000.png') 30 / 19px repeat; border-image-slice: 0 0 100% 0; border-image-width: 0 0 100px 0; background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 ">
|
||||
<div class="detail_box">
|
||||
<h1>
|
||||
Wo Wünsche <br>
|
||||
Wirklichkeit <br>
|
||||
werden
|
||||
</h1>
|
||||
<p>
|
||||
Willkommen auf meiner Webseite, wo Kunst und Technologie sich treffen. Ich freue mich, euch "Meine Wunschprogramm-Assistentin" vorzustellen, ein Projekt, das mir am Herzen liegt und das meine künstlerische Reise in eine aufregende neue Richtung führt.
|
||||
</p>
|
||||
<a href="/aiart" class="">
|
||||
Probier es aus!
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-6 offset-lg-1">
|
||||
<div class="img_content">
|
||||
<div class="img_container">
|
||||
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
|
||||
<div class="carousel-inner">
|
||||
<div class="carousel-item active">
|
||||
<div class="img-box">
|
||||
<img src="images/keks.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img2.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img3.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!-- end slider section -->
|
||||
|
||||
|
||||
@* <!-- explaining section -->
|
||||
<div class="container">
|
||||
|
||||
</div>
|
||||
*@
|
||||
|
||||
|
||||
<!-- about section -->
|
||||
<section class="about_section layout_padding section-animate-left" @ref="animatedAboutSection1">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about4.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<h2>
|
||||
Was ist der Wunschprogramm-Assistent?
|
||||
</h2>
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Seit Jahren habe ich Wünsche in Aquarelle verwandelt, sie humorvoll und ironisch interpretiert und ihnen eine neue Dimension gegeben. Jetzt habe ich einen mutigen Schritt gemacht und Künstliche Intelligenz (KI) als meine persönliche Assistentin in dieses kreative Unterfangen einbezogen.
|
||||
Auf meiner Webseite Wunschprogramm.ai könnt ihr nun eure Wünsche äußern, die von meiner Wunschprogramm-Assistentin umgesetzt werden. Egal, ob es sich um einen „Happy End“, „Anerkennung“, „Ein Sportwagen“ oder „Sanfter Tod“ handelt, ich interpretiere eure Wünsche fantasievoll und gebe ihnen eine neue inhaltliche Dimension. Die „Wunschprogramm-Assistentin“ generiert in wenigen Momenten ein Bild, das ihr bestellen könnt. Wenn euch die Bilder gefallen, könnt ihr sie als hochwertigen Kunstdruck bestellen, und ich werde sie für euch als Originale handsignieren.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="about_section layout_padding section-animate-right" @ref="animatedAboutSection2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Auch politische Persönlichkeiten wie Bundespräsident Frank Walter Steinmeier oder Katarina Barley sowie show-Promis wie Micaela Schäfer und Carlo von Tiedemann haben mir bereits ihre Wünsche anvertraut, und ich lade euch ein, dasselbe zu tun. Es ist eine Gelegenheit, Teil eines kreativen Dialogs zu werden, der über die traditionellen Grenzen der Kunst hinausgeht.
|
||||
Auf dieser Webseite findet ihr alle Informationen über mein bisheriges Wunschprogramm, über meinen künstlerischen Werdegang und über die Entstehung und Realisierung dieses Projektes. "Meine Wunschprogramm-Assistentin" ist mehr als nur ein Projekt; es ist eine Erkundung dessen, was Kunst sein kann, wenn sie mit der Technologie von heute verknüpft wird. Ich lade euch ein, diese Reise mit mir zu teilen, eure Wünsche zu äußern und zu sehen, wie sie in Kunst verwandelt werden.
|
||||
Besucht Wunschprogramm.ai und entdeckt, was möglich ist, wenn Wünsche, Kunst und Technologie aufeinandertreffen. Ich freue mich darauf, eure Wünsche in Kunst zu verwandeln.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about1.jpg" alt="" />
|
||||
</div>
|
||||
<div class="img-box b2">
|
||||
<img src="images/about2.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end about section -->
|
||||
</section>
|
||||
|
||||
|
||||
@code {
|
||||
private ElementReference animatedAboutSection1;
|
||||
private ElementReference animatedAboutSection2;
|
||||
|
||||
private List<ElementReference> animatedElements = new List<ElementReference>();
|
||||
|
||||
private Func<Task> removeScrollListener;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
animatedElements.Add(animatedAboutSection1);
|
||||
animatedElements.Add(animatedAboutSection2);
|
||||
|
||||
removeScrollListener = await JSRuntime.InvokeAsync<Func<Task>>(
|
||||
"initHeroAreaScrollAnimation"
|
||||
);
|
||||
|
||||
await JSRuntime.InvokeVoidAsync("initScrollAnimations", animatedElements);
|
||||
}
|
||||
}
|
||||
|
||||
private bool isDisposed = false;
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (!isDisposed)
|
||||
{
|
||||
if (removeScrollListener != null)
|
||||
{
|
||||
await removeScrollListener.Invoke();
|
||||
}
|
||||
isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
@page "/"
|
||||
|
||||
<PageTitle>Index</PageTitle>
|
||||
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
Welcome to your new app.
|
||||
|
||||
<SurveyPrompt Title="How is Blazor working for you?" />
|
||||
183
KIKunstKirstenKlöckner/Pages/Kirsten.razor
Normal file
@ -0,0 +1,183 @@
|
||||
@page "/kirstenkloeckner"
|
||||
|
||||
@inject IJSRuntime JSRuntime
|
||||
@implements IAsyncDisposable
|
||||
|
||||
<section class="about_section" style="background-image: url('images/5KeineAngstvorFehlern2014.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
|
||||
<div class="hero_area hero-area-visible">
|
||||
|
||||
<!-- slider section -->
|
||||
<section class=" slider_section" style="background-image: url('images/36GefleckteKatze2015.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 ">
|
||||
<div class="detail_box">
|
||||
<h1>
|
||||
Wer ist <br>
|
||||
Kirsten <br>
|
||||
Klöckner?
|
||||
</h1>
|
||||
<p>
|
||||
Kirsten Klöckner, geboren 1962 in Braunschweig, hat die deutsche Kunstszene mit ihren humorvollen und hintergründigen Arbeiten bereichert.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-6 offset-lg-1">
|
||||
<div class="img_content">
|
||||
<div class="img_container">
|
||||
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
|
||||
<div class="carousel-inner">
|
||||
<div class="carousel-item active">
|
||||
<div class="img-box">
|
||||
<img src="images/Kirsten_draussen.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img2.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img3.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end slider section -->
|
||||
</div>
|
||||
<!-- explaining section -->
|
||||
<div class="container">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- about section -->
|
||||
<section class="about_section layout_padding section-animate-left" @ref="animatedAboutSection1">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about4.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<h2>
|
||||
Was ist der Wunschprogramm-Assistent?
|
||||
</h2>
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Ihre kreative Reise begann mit einem Studium der Bildhauerei an der Kunstakademie Münster, wo sie von 1983 bis 1986 unter der Leitung von Reiner Ruthenbeck studierte. Nach ihrem Studium zog sie nach Düsseldorf, um dort bis 2001 zu leben und zu arbeiten. Berlin wurde 2002 ihr neues Zuhause, ein Ort, der ihr die Konzentration auf ihre Kunst ermöglichte.
|
||||
Klöckner's künstlerische Ausbildung war geprägt von einer tiefen Leidenschaft für die Bildhauerei. Ihre Zeit in Münster legte den Grundstein für eine Karriere, die sich durch Vielseitigkeit und Kreativität auszeichnet. Nach ihrem Umzug nach Düsseldorf begann sie, ihre künstlerische Stimme zu finden, und Berlin bot ihr schließlich die Plattform, um sich voll und ganz auf ihre Kunst zu konzentrieren.
|
||||
Ihr Werk ist vielseitig und reicht von Bildhauerei über Malerei bis hin zur Verlagsarbeit. Seit den 1990er Jahren produziert sie Multiples, kleine Objekte in begrenzter Auflagenzahl, die am Rand des Kunstmarkts gehandelt, geliebt und verschenkt werden. Ihr "Wunschbilder-Programm" ist ein zentrales Thema, in dem sie Wünsche ihrer Mitmenschen humorvoll und ironisch in Aquarellen umsetzt.
|
||||
Im Laufe ihrer Karriere hat Kirsten Klöckner zahlreiche bemerkenswerte Ausstellungen gehabt, darunter "Science fiction, Teil 1: der Plan" (1992), "Eingemachtes" (1997), "Aquarelle + Multiples" (2004), und "Wunschbilder" (2015). Ihre Werke wurden in der Akademie der Künste in Berlin und in großen Galerien bundesweit ausgestellt. Sie hat auch an vielen Gruppenausstellungen teilgenommen, die ihre Vielseitigkeit und ihren Einfluss in der Kunstszene unterstreichen.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="about_section layout_padding section-animate-right" @ref="animatedAboutSection2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Ihre Kunst ist in renommierten Sammlungen wie dem Kunstmuseum Düsseldorf, der Sammlung Falckenberg in Hamburg und der Kunstsammlung der Landesbank Baden-Württemberg in Stuttgart vertreten. Klöckner hat auch eine beeindruckende Liste von Veröffentlichungen, darunter "Heimatmelodie" (1989) und "Musenbesuch - BeuteKunst II" (2013), die einen tieferen Einblick in ihre kreativen Prozesse bieten.
|
||||
Als "eine der humorvollsten" Künstlerinnen von Klaus Staeck, dem Präsidenten der Berliner Akademie der Künste, bezeichnet, wird Kirsten Klöckner sowohl von der Kunstgemeinschaft als auch von der breiten Öffentlichkeit geschätzt und anerkannt. Ihre kreative Zusammenarbeit mit APROTO - Aktionen und Projekte pro Toleranz - hat besondere Aufmerksamkeit erregt. Das „Toleranz-Virus“, ein Aquarell und eine Skulptur von Kirsten Klöckner, wurde umgesetzt, um Toleranz in schwierigen Zeiten zu fördern. Das Aquarell und die Skulptur werden als APROTO-Toleranzpreis verliehen.
|
||||
Kirsten Klöckner's Reise durch die Kunstwelt ist eine, die von Humor, Intelligenz und einem unermüdlichen Streben nach kreativem Ausdruck geprägt ist. Ihre Werke und ihr Einfluss auf die Kunstszene zeugen von der Bedeutung und dem Wert ihrer Arbeit, und ihre fortwährende Innovation und ihr Engagement für Toleranz und Verständnis machen sie zu einer herausragenden Figur in der zeitgenössischen Kunst.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about1.jpg" alt="" />
|
||||
</div>
|
||||
<div class="img-box b2">
|
||||
<img src="images/about2.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end about section -->
|
||||
</section>
|
||||
|
||||
|
||||
@code {
|
||||
private ElementReference animatedAboutSection1;
|
||||
private ElementReference animatedAboutSection2;
|
||||
|
||||
private List<ElementReference> animatedElements = new List<ElementReference>();
|
||||
|
||||
private Func<Task> removeScrollListener;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
animatedElements.Add(animatedAboutSection1);
|
||||
animatedElements.Add(animatedAboutSection2);
|
||||
|
||||
removeScrollListener = await JSRuntime.InvokeAsync<Func<Task>>(
|
||||
"initHeroAreaScrollAnimation"
|
||||
);
|
||||
|
||||
await JSRuntime.InvokeVoidAsync("initScrollAnimations", animatedElements);
|
||||
}
|
||||
}
|
||||
|
||||
private bool isDisposed = false;
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (!isDisposed)
|
||||
{
|
||||
if (removeScrollListener != null)
|
||||
{
|
||||
await removeScrollListener.Invoke();
|
||||
}
|
||||
isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
181
KIKunstKirstenKlöckner/Pages/Projekt.razor
Normal file
@ -0,0 +1,181 @@
|
||||
@page "/projekt"
|
||||
|
||||
@inject IJSRuntime JSRuntime
|
||||
@implements IAsyncDisposable
|
||||
|
||||
<section class="about_section" style="background-image: url('images/5KeineAngstvorFehlern2014.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
|
||||
<div class="hero_area hero-area-visible">
|
||||
|
||||
<!-- slider section -->
|
||||
<section class="slider_section" style="background-image: url('images/3Umsatz2014.png'); background-size: cover; background-repeat: no-repeat;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 ">
|
||||
<div class="detail_box">
|
||||
<h1>
|
||||
Das <br>
|
||||
Projekt <br>
|
||||
</h1>
|
||||
<p>
|
||||
Zusammentreffen von Talent, Technologie und sozialer Verantwortung: Die Entstehung eines einzigartigen Projekts
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-6 offset-lg-1">
|
||||
<div class="img_content">
|
||||
<div class="img_container">
|
||||
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
|
||||
<div class="carousel-inner">
|
||||
<div class="carousel-item active">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img1.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img2.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="carousel-item">
|
||||
<div class="img-box">
|
||||
<img src="images/slider-img3.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end slider section -->
|
||||
</div>
|
||||
<!-- explaining section -->
|
||||
<div class="container">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- about section -->
|
||||
<section class="about_section layout_padding section-animate-left" @ref="animatedAboutSection1">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about4.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<h2>
|
||||
Wie entstand das Wunschprogramm Projekt?
|
||||
</h2>
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Das Projekt "Wunschprogramm-Assistentin" ist ein lebendiges Beispiel für kreative Zusammenarbeit, Innovation und Engagement, das sich selbstverständlich in einem ständigen Prozess der Entwicklung und Entfaltung befindet. Es vereint die Talente und Visionen von Künstlern, Journalisten, Studenten und einem engagierten Verein, um etwas wirklich Einzigartiges zu schaffen.
|
||||
In enger Zusammenarbeit mit einem Team von IT-Studenten an der Leibniz-Universität in Hannover und dem Verein APROTO – Aktionen und Projekte pro Toleranz, bringt die Berliner Künstlerin Kirsten Klöckner dieses einzigartige Projekt zum Leben. APROTO e.V., ein Verein, der sich für Toleranz und Verständigung einsetzt, hat bereits in der Vergangenheit durch Kunstprojekte Brücken zwischen verschiedenen Kulturen und Gesellschaftsgruppen gebaut.
|
||||
Die Journalistin Meike Wolff, Vorstand von APROTO e.V., trägt durch ihre Texte und ihre Kommunikationsfähigkeiten dazu bei, das Projekt in die Öffentlichkeit zu bringen. Ihre Arbeit spiegelt den dynamischen Charakter des Projekts wider, das sich ständig weiterentwickelt und wächst.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="about_section layout_padding section-animate-right" @ref="animatedAboutSection2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Die Idee zu diesem innovativen Projekt stammt von dem Journalisten Till-Matthias Jürgens. In enger Abstimmung mit den IT-Studenten und der Künstlerin Kirsten Klöckner überwacht er die Gesamtkonzeption und stellt sicher, dass das Projekt in Bewegung bleibt, sich anpasst und innovativ bleibt.
|
||||
Die technische Umsetzung liegt in den fähigen Händen von Jan Kaminski, Meiko Remiorz, Simon Lübeß und Timm Kleipsties, KI-Studenten der Leibniz-Universität in Hannover. Sie arbeiten kontinuierlich an der Entwicklung des KI-Modells und seiner Daten-Einspeisung. Jan Kaminski, der auch für die grafische Umsetzung der Webseite verantwortlich ist, fungiert als kommunikative Schnittstelle und sorgt dafür, dass die technische und kreative Seite des Projekts nahtlos zusammenarbeiten.
|
||||
Das Projekt "Wunschprogramm-Assistentin" ist mehr als nur eine künstlerische Unternehmung; es ist ein Zusammentreffen von Talent, Technologie und sozialer Verantwortung. Es zeigt, wie Kunst, Wissenschaft und Gemeinschaft zusammenarbeiten können, um etwas zu schaffen, das sowohl schön als auch bedeutungsvoll ist. Es ist ein Beweis dafür, dass die Grenzen zwischen diesen Bereichen nicht festgelegt sind und dass durch Zusammenarbeit und Innovation neue Wege beschritten werden können. Es ist ein aufregender Blick in die Zukunft der Kunst, eine Zukunft, die jetzt stattfindet, und ein Projekt, das sich in einem ständigen Prozess der Entdeckung und Erneuerung befindet.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about1.jpg" alt="" />
|
||||
</div>
|
||||
<div class="img-box b2">
|
||||
<img src="images/about2.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end about section -->
|
||||
</section>
|
||||
|
||||
|
||||
@code {
|
||||
private ElementReference animatedAboutSection1;
|
||||
private ElementReference animatedAboutSection2;
|
||||
|
||||
private List<ElementReference> animatedElements = new List<ElementReference>();
|
||||
|
||||
private Func<Task> removeScrollListener;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
animatedElements.Add(animatedAboutSection1);
|
||||
animatedElements.Add(animatedAboutSection2);
|
||||
|
||||
removeScrollListener = await JSRuntime.InvokeAsync<Func<Task>>(
|
||||
"initHeroAreaScrollAnimation"
|
||||
);
|
||||
|
||||
await JSRuntime.InvokeVoidAsync("initScrollAnimations", animatedElements);
|
||||
}
|
||||
}
|
||||
|
||||
private bool isDisposed = false;
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (!isDisposed)
|
||||
{
|
||||
if (removeScrollListener != null)
|
||||
{
|
||||
await removeScrollListener.Invoke();
|
||||
}
|
||||
isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
144
KIKunstKirstenKlöckner/Pages/Wunschbilder.razor
Normal file
@ -0,0 +1,144 @@
|
||||
@page "/wunschprogramm"
|
||||
|
||||
@inject IJSRuntime JSRuntime
|
||||
@implements IAsyncDisposable
|
||||
|
||||
<section class="about_section" style="background-image: url('images/5KeineAngstvorFehlern2014.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:lighten">
|
||||
|
||||
<div class="hero_area hero-area-visible">
|
||||
|
||||
<!-- slider section -->
|
||||
<section class="slider_section" style="background-image: url('images/3730Kilo2015.jpeg'); background-size: cover; background-repeat: no-repeat; background-blend-mode:hard-light ;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 ">
|
||||
<div class="detail_box">
|
||||
<h1>
|
||||
Das <br>
|
||||
Wunschprogramm
|
||||
</h1>
|
||||
<p>
|
||||
Ich mache mich zur Komplizin der Wünschenden.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end slider section -->
|
||||
</div>
|
||||
|
||||
<!-- about section -->
|
||||
<section class="about_section layout_padding section-animate-left" @ref="animatedAboutSection1">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about4.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<h2>
|
||||
Was ist der Wunschprogramm-Assistent?
|
||||
</h2>
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
Das Wunschprogramm von Kirsten Klöckner ist eine Reise in die Welt der Wünsche, eine faszinierende Verschmelzung von Kunst und menschlicher Sehnsucht. In einer Zeit, in der Kunst oft mit hohen Erwartungen konfrontiert ist, stellt Klöckner die Frage: Was, wenn Kunst auch Wünsche erfüllen könnte? Mit ihrem einzigartigen „Wunschbilder-Programm“ tut sie genau das.
|
||||
Kirsten Klöckner hat sich auf die humorvolle und ironische Umwandlung von Wünschen ihrer Mitmenschen in Aquarelle spezialisiert. Sie interpretiert die Wünsche fantasievoll, gibt ihnen Substanz und verwandelt sie in Kunstwerke. Egal, ob es sich um einfache oder komplizierte Wünsche, kleine oder riesige, alberne oder ernsthafte Wünsche handelt, sie nimmt sie alle an und macht sie zu einem Teil ihres kreativen Prozesses. Selbst prominente Persönlichkeiten wie Bundespräsident Frank Walter Steinmeier und Showpromis wie Micaela Schäfer haben ihre Wünsche anvertraut.
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="about_section layout_padding section-animate-right" @ref="animatedAboutSection2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="detail-box">
|
||||
<div class="heading_container">
|
||||
<img src="images/plug.png" alt="">
|
||||
</div>
|
||||
<p>
|
||||
In ihren eigenen Worten beschreibt Klöckner das Wunschprogramm als eine Möglichkeit, sich etwas zu wünschen, in einer Welt, in der die Kunst oft schwer beschäftigt ist. „Ich lebe in einer Zeit, in der das Wünschen hilft“, sagt sie und fügt hinzu: „Ich mache mich zur Komplizin der Wünschenden.“
|
||||
Das „Wunschprogramm“ von Kirsten Klöckner ist mehr als nur eine künstlerische Technik. Es ist eine Einladung, über unsere Wünsche nachzudenken und sie in die Welt der Kunst zu bringen. Es ist eine Möglichkeit, unsere tiefsten Sehnsüchte und Träume in einer Form zu sehen, die sowohl schön als auch nachdenklich ist. Es ist eine Erinnerung daran, dass die Kunst immer noch die Kraft hat, uns zu überraschen, zu inspirieren und uns etwas zu wünschen.
|
||||
Die Kunst des Wünschens, wie sie von Klöckner praktiziert wird, ist ein lebendiger Dialog zwischen dem Künstler und dem Betrachter, eine Möglichkeit, die oft flüchtigen Gedanken und Sehnsüchte in etwas Greifbares und Bleibendes zu verwandeln. Es ist eine Reise, die uns alle einlädt, Teilnehmer und Zeugen der Transformation von Wünschen in Kunst zu sein, und es ist ein Beweis dafür, dass Kunst immer noch die Macht hat, uns auf unerwartete und wunderbare Weise zu berühren.
|
||||
|
||||
|
||||
</p>
|
||||
<a href="">
|
||||
Read More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="img_container">
|
||||
<div class="img-box b1">
|
||||
<img src="images/about1.jpg" alt="" />
|
||||
</div>
|
||||
<div class="img-box b2">
|
||||
<img src="images/about2.jpg" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end about section -->
|
||||
</section>
|
||||
|
||||
|
||||
@code {
|
||||
private ElementReference animatedAboutSection1;
|
||||
private ElementReference animatedAboutSection2;
|
||||
|
||||
private List<ElementReference> animatedElements = new List<ElementReference>();
|
||||
|
||||
private Func<Task> removeScrollListener;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
animatedElements.Add(animatedAboutSection1);
|
||||
animatedElements.Add(animatedAboutSection2);
|
||||
|
||||
removeScrollListener = await JSRuntime.InvokeAsync<Func<Task>>(
|
||||
"initHeroAreaScrollAnimation"
|
||||
);
|
||||
|
||||
await JSRuntime.InvokeVoidAsync("initScrollAnimations", animatedElements);
|
||||
}
|
||||
}
|
||||
|
||||
private bool isDisposed = false;
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (!isDisposed)
|
||||
{
|
||||
if (removeScrollListener != null)
|
||||
{
|
||||
await removeScrollListener.Invoke();
|
||||
}
|
||||
isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -18,6 +18,33 @@
|
||||
<!-- Radzen.Blazor -->
|
||||
<link rel="stylesheet" href="_content/Radzen.Blazor/css/humanistic-base.css">
|
||||
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
|
||||
|
||||
<!-- Basic -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<!-- Mobile Metas -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
<!-- Site Metas -->
|
||||
<meta name="keywords" content="" />
|
||||
<meta name="description" content="" />
|
||||
<meta name="author" content="" />
|
||||
|
||||
<title>KI Kunst Kirsten </title>
|
||||
|
||||
<!-- slider stylesheet -->
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.1.3/assets/owl.carousel.min.css" />
|
||||
|
||||
<!-- bootstrap core css -->
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
|
||||
|
||||
<!-- fonts style -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:400,600,700&display=swap" rel="stylesheet">
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="css/style.css" rel="stylesheet" />
|
||||
<!-- responsive style -->
|
||||
<link href="css/responsive.css" rel="stylesheet" />
|
||||
<!-- animations style -->
|
||||
<link href="css/animations.css" rel="stylesheet" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<component type="typeof(App)" render-mode="ServerPrerendered" />
|
||||
@ -34,25 +61,11 @@
|
||||
</div>
|
||||
|
||||
<script src="_framework/blazor.server.js"></script>
|
||||
|
||||
<script type="module" src="scripts/ImageMaster3000.js"></script>
|
||||
|
||||
<script>
|
||||
window.DoSexyStuffBridge = async function (prompt)
|
||||
{
|
||||
// Stellen Sie sicher, dass das Modul geladen und die Funktion verfügbar ist
|
||||
if (typeof DoSexyStuff === "function")
|
||||
{
|
||||
return await DoSexyStuff(prompt);
|
||||
}
|
||||
else
|
||||
{
|
||||
console.error("Die Funktion DoSexyStuff ist nicht verfügbar.");
|
||||
|
||||
return "Error";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="js/jquery-3.4.1.min.js"></script>
|
||||
<script src="js/bootstrap.js"></script>
|
||||
<script src="js/animator.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using DataAccess.Data;
|
||||
using DataAccess.DbAccess;
|
||||
using KIKunstKirstenKlöckner.Data;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Radzen;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@ -8,10 +8,17 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorPages();
|
||||
builder.Services.AddServerSideBlazor();
|
||||
builder.Services.AddSingleton<WeatherForecastService>();
|
||||
|
||||
builder.Services.AddScoped<TooltipService>();
|
||||
builder.Services.AddScoped<DialogService>();
|
||||
builder.Services.AddScoped<NotificationService>();
|
||||
builder.Services.AddScoped<ImageGenerator>();
|
||||
|
||||
builder.Services.AddScoped<AiArtPageData>();
|
||||
|
||||
builder.Services.AddSingleton<ISqlDataAccess, SqlDataAccess>();
|
||||
builder.Services.AddSingleton<BildInfoData>();
|
||||
builder.Services.AddSingleton<WunschInfoData>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
@ -3,18 +3,133 @@
|
||||
<PageTitle>KIKunstKirstenKlöckner</PageTitle>
|
||||
|
||||
<div class="page">
|
||||
<div class="sidebar">
|
||||
<NavMenu />
|
||||
</div>
|
||||
|
||||
<main>
|
||||
<div class="top-row px-4">
|
||||
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
|
||||
</div>
|
||||
<!-- header section strats -->
|
||||
<header class="header_section">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg custom_nav-container ">
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="images/robot_painting_small.jpg" alt="">
|
||||
<span>
|
||||
KI-Wunschprogramm
|
||||
</span>
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="s-1"> </span>
|
||||
<span class="s-2"> </span>
|
||||
<span class="s-3"> </span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<div class="d-flex ml-auto flex-column flex-lg-row align-items-center">
|
||||
<ul class="navbar-nav ">
|
||||
<NavLink class="nav-item" href="" Match="NavLinkMatch.All">
|
||||
<span class="nav-link">Start</span>
|
||||
</NavLink>
|
||||
<NavLink class="nav-item" href="aiart" Match="NavLinkMatch.All">
|
||||
<span class="nav-link">Generieren</span>
|
||||
</NavLink>
|
||||
<NavLink class="nav-item" href="wunschprogramm" Match="NavLinkMatch.All">
|
||||
<span class="nav-link">Wunschprogramm</span>
|
||||
</NavLink>
|
||||
<NavLink class="nav-item" href="kirstenkloeckner" Match="NavLinkMatch.All">
|
||||
<span class="nav-link">Kirsten</span>
|
||||
</NavLink>
|
||||
<NavLink class="nav-item" href="projekt" Match="NavLinkMatch.All">
|
||||
<span class="nav-link">Projekt</span>
|
||||
</NavLink>
|
||||
<NavLink class="nav-item" href="gallery" Match="NavLinkMatch.All">
|
||||
<span class="nav-link">Galerie</span>
|
||||
</NavLink>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- end header section -->
|
||||
|
||||
<article class="content px-4">
|
||||
@Body
|
||||
</article>
|
||||
|
||||
<!-- info section -->
|
||||
|
||||
<section class="info_section layout_padding">
|
||||
<div class="container">
|
||||
<div class="info_contact">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<a href="">
|
||||
<img src="images/location-white.png" alt="">
|
||||
<span>
|
||||
Kirsten Klöckners KI-Atelier
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<a href="">
|
||||
<img src="images/telephone-white.png" alt="">
|
||||
<span>
|
||||
+012334567890
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<a href="">
|
||||
<img src="images/envelope-white.png" alt="">
|
||||
<span>
|
||||
nackenbox@gmail.com
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-3">
|
||||
<div class="info_social">
|
||||
<div>
|
||||
<a href="https://www.facebook.com/kirsten.kloeckner">
|
||||
<img src="images/fb.png" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://twitter.com/kkbeutekunst">
|
||||
<img src="images/twitter.png" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://de.linkedin.com/in/kirsten-kl%C3%B6ckner-2a123393">
|
||||
<img src="images/linkedin.png" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://www.instagram.com/kirstenkloeckner/">
|
||||
<img src="images/instagram.png" alt="">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end info section -->
|
||||
<!-- footer section -->
|
||||
<footer class="container-fluid footer_section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-7 col-md-9 mx-auto">
|
||||
<p>
|
||||
© 2022 All Rights Reserved By Nackenbox GMBH und Co. KG
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- footer section -->
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,16 +0,0 @@
|
||||
<div class="alert alert-secondary mt-4">
|
||||
<span class="oi oi-pencil me-2" aria-hidden="true"></span>
|
||||
<strong>@Title</strong>
|
||||
|
||||
<span class="text-nowrap">
|
||||
Please take our
|
||||
<a target="_blank" class="font-weight-bold link-dark" href="https://go.microsoft.com/fwlink/?linkid=2186158">brief survey</a>
|
||||
</span>
|
||||
and tell us what you think.
|
||||
</div>
|
||||
|
||||
@code {
|
||||
// Demonstrates how a parent component can supply parameters
|
||||
[Parameter]
|
||||
public string? Title { get; set; }
|
||||
}
|
||||
@ -1,9 +1,12 @@
|
||||
{
|
||||
"DetailedErrors": true,
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
"DetailedErrors": true,
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"Default": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=KiKunstDatenbank;Integrated Security=True;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,33 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"API": {
|
||||
"OpenAI": "<put OpenAI Key here>",
|
||||
"HF_Inference": "<put Hugging Face inference API Key here>"
|
||||
},
|
||||
"ImageModels": [
|
||||
{
|
||||
"Name": "Der O.G.",
|
||||
"StableDiffusionModel": "Nacken/ki-kunst-kirsten-kloeckner-colab",
|
||||
"PromptFormat": "{0} Watercolor + ink on paper, Pen drawing, wet-on-wet technique, dry-on-dry technique, dabbing technique."
|
||||
},
|
||||
{
|
||||
"Name": "Gen 6",
|
||||
"StableDiffusionModel": "Nacken/Gen6",
|
||||
"PromptFormat": "{0}"
|
||||
},
|
||||
{
|
||||
"Name": "Gen 25",
|
||||
"StableDiffusionModel": "Nacken/Gen_25_Refiner",
|
||||
"PromptFormat": "{0}"
|
||||
}
|
||||
],
|
||||
"ConnectionStrings": {
|
||||
"Default": "<put Connection String here>"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
||||
63
KIKunstKirstenKlöckner/wwwroot/css/animations.css
Normal file
@ -0,0 +1,63 @@
|
||||
.text-animate {
|
||||
opacity: 0;
|
||||
transition: opacity 1s ease-in-out;
|
||||
}
|
||||
|
||||
.text-animate.visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.image-animate-left {
|
||||
position: relative;
|
||||
opacity: 0;
|
||||
left: -100%;
|
||||
transition: left 2s ease-in-out, opacity 2s ease-in-out;
|
||||
}
|
||||
|
||||
.image-animate-left.visible {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.section-animate-left {
|
||||
width: 100% margin-left: auto;
|
||||
margin-right: auto;
|
||||
opacity: 0;
|
||||
left: -100%;
|
||||
transition: left 1.2s ease-in-out, opacity 2s ease-in-out;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.section-animate-left.visible {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.section-animate-right {
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
opacity: 0;
|
||||
transform: translateX(100%);
|
||||
transition: transform 1.2s ease-in-out, opacity 2s ease-in-out;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.section-animate-right.visible {
|
||||
transform: translateX(0%);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hero-area-visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
transition: opacity 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.hero-area-hidden {
|
||||
opacity: 0;
|
||||
transform: translateY(-100%);
|
||||
transition: opacity 0.3s ease-in-out, transform 0.8s ease-in-out;
|
||||
}
|
||||
10038
KIKunstKirstenKlöckner/wwwroot/css/bootstrap.css
vendored
Normal file
118
KIKunstKirstenKlöckner/wwwroot/css/responsive.css
Normal file
@ -0,0 +1,118 @@
|
||||
@media (max-width: 1120px) {}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
|
||||
.hero_area {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.header_section {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#navbarSupportedContent {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.slider_section {
|
||||
|
||||
padding-top: 75px;
|
||||
padding-bottom: 150px;
|
||||
|
||||
}
|
||||
|
||||
.about_section .img-box {
|
||||
margin: 0 5%;
|
||||
}
|
||||
|
||||
.about_section .detail-box {
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
.service_section .service_container .box {
|
||||
-ms-flex-preferred-size: 48%;
|
||||
flex-basis: 48%;
|
||||
}
|
||||
|
||||
.about_section .img_container .img-box.b2 {
|
||||
margin-top: -5%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
|
||||
.slider_section .detail_box {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.slider_section .img_content {
|
||||
margin-top: 55px;
|
||||
}
|
||||
|
||||
.contact_section .map_container {
|
||||
margin-top: 45px;
|
||||
}
|
||||
|
||||
.info_section .info_contact a {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.info_section .info_social {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.service_section .service_container .box {
|
||||
flex-basis: 98%;
|
||||
}
|
||||
|
||||
.contact_section form {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.info_section .info_contact a {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.about_section .img_container .img-box.b1 {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.about_section .img_container .img-box.b2 {
|
||||
width: 55%;
|
||||
}
|
||||
|
||||
.info_section .info_form form {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.info_section .info_form form input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.info_section .info_form form button {
|
||||
margin-top: 15px;
|
||||
padding: 10px 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
|
||||
.slider_section .carousel-control-prev,
|
||||
.slider_section .carousel-control-next {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
max-width: 1170px;
|
||||
}
|
||||
}
|
||||
@ -63,6 +63,56 @@ a, .btn-link {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.blazor-error-boundary::after {
|
||||
content: "An error has occurred."
|
||||
.blazor-error-boundary::after {
|
||||
content: "An error has occurred."
|
||||
}
|
||||
|
||||
.fade-in-5 {
|
||||
animation: fadeIn 5s;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
.fade-out-5 {
|
||||
animation: fadeOut 5s;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.flip-image {
|
||||
animation: flip 0.6s;
|
||||
animation-fill-mode: forwards;
|
||||
-webkit-backface-visibility: hidden;
|
||||
transition: transform 0.6s;
|
||||
transform-style: preserve-3d;
|
||||
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
@keyframes flip {
|
||||
0% {
|
||||
transform: rotateY(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
693
KIKunstKirstenKlöckner/wwwroot/css/style.css
Normal file
@ -0,0 +1,693 @@
|
||||
body {
|
||||
font-family: "Poppins", sans-serif;
|
||||
color: #0c0c0c;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.layout_padding {
|
||||
padding-top: 90px;
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
|
||||
.layout_padding2 {
|
||||
padding-top: 45px;
|
||||
padding-bottom: 45px;
|
||||
}
|
||||
|
||||
.layout_padding2-top {
|
||||
padding-top: 45px;
|
||||
}
|
||||
|
||||
.layout_padding2-bottom {
|
||||
padding-bottom: 45px;
|
||||
}
|
||||
|
||||
.layout_padding-top {
|
||||
padding-top: 90px;
|
||||
}
|
||||
|
||||
.layout_padding-bottom {
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
|
||||
.heading_container {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: start;
|
||||
-ms-flex-pack: start;
|
||||
justify-content: flex-start;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.heading_container h2 {
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.heading_container img {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
/*header section*/
|
||||
.hero_area {
|
||||
height: 98vh;
|
||||
position: relative;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
background-color: #eae6f5;
|
||||
}
|
||||
|
||||
.sub_page .hero_area {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.header_section .container {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.header_section .nav_container {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-nav .nav-item .nav-link {
|
||||
padding: 7px 20px;
|
||||
margin: 10px 15px;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
border-radius: 35px;
|
||||
text-transform: uppercase;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-nav .nav-item.active .nav-link, .custom_nav-container .navbar-nav .nav-item:hover .nav-link {
|
||||
background-color: #4b208c;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
a,
|
||||
a:hover,
|
||||
a:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: initial;
|
||||
}
|
||||
|
||||
.btn,
|
||||
.btn:focus {
|
||||
outline: none !important;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.custom_nav-container .nav_search-btn {
|
||||
background-image: url(../images/search-icon.png);
|
||||
background-size: 22px;
|
||||
background-repeat: no-repeat;
|
||||
background-position-y: 7px;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.navbar-brand img {
|
||||
margin-right: 5px;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.navbar-brand span {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #4b208c;
|
||||
}
|
||||
|
||||
.custom_nav-container {
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.navbar-expand-lg .navbar-collapse {
|
||||
-webkit-box-align: end;
|
||||
-ms-flex-align: end;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler {
|
||||
padding: 0;
|
||||
width: 37px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler span {
|
||||
display: block;
|
||||
width: 35px;
|
||||
height: 4px;
|
||||
background-color: #190734;
|
||||
margin: 7px 0;
|
||||
-webkit-transition: all .3s;
|
||||
transition: all .3s;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler[aria-expanded="true"] .s-1 {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
margin: 0;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler[aria-expanded="true"] .s-2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler[aria-expanded="true"] .s-3 {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
margin: 0;
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler[aria-expanded="false"] .s-1,
|
||||
.custom_nav-container .navbar-toggler[aria-expanded="false"] .s-2,
|
||||
.custom_nav-container .navbar-toggler[aria-expanded="false"] .s-3 {
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/*end header section*/
|
||||
/* slider section */
|
||||
.slider_section {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
color: #3b3a3a;
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
|
||||
|
||||
.slider_section .row {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.slider_section .detail_box {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.slider_section .detail_box h1 {
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.slider_section .detail_box p {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.slider_section .detail_box a {
|
||||
display: inline-block;
|
||||
padding: 10px 40px;
|
||||
background-color: #4b208c;
|
||||
color: #ffffff;
|
||||
border-radius: 35px;
|
||||
margin-top: 35px;
|
||||
}
|
||||
|
||||
.slider_section .detail_box a:hover {
|
||||
background-color: #5625a1;
|
||||
}
|
||||
|
||||
.slider_section .img_container {
|
||||
border: 7px solid #7b57b2;
|
||||
border-radius: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.slider_section .img_container div#carouselExampleContarols {
|
||||
width: 100%;
|
||||
position: unset;
|
||||
}
|
||||
|
||||
.slider_section .img_container .img-box img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.slider_section .carousel-control-prev,
|
||||
.slider_section .carousel-control-next {
|
||||
top: initial;
|
||||
left: initial;
|
||||
bottom: 5%;
|
||||
right: 10%;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
border: none;
|
||||
border-radius: 100%;
|
||||
opacity: 1;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 8px;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.slider_section .carousel-control-prev {
|
||||
background-image: url(../images/prev.png);
|
||||
background-color: #ffffff;
|
||||
-webkit-transform: translate(-85px, 30px);
|
||||
transform: translate(-85px, 30px);
|
||||
}
|
||||
|
||||
.slider_section .carousel-control-next {
|
||||
background-image: url(../images/next.png);
|
||||
background-color: #4b208c;
|
||||
-webkit-transform: translate(-45px, 0);
|
||||
transform: translate(-45px, 0);
|
||||
}
|
||||
|
||||
.service_section {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.service_section .heading_container {
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.service_section .service_container {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
padding: 35px 0;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.service_section .service_container .box {
|
||||
margin: 25px 1%;
|
||||
-ms-flex-preferred-size: 31%;
|
||||
flex-basis: 31%;
|
||||
padding: 35px 25px 25px;
|
||||
border-radius: 15px;
|
||||
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
|
||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
|
||||
border-top: 15px solid transparent;
|
||||
overflow: hidden;
|
||||
-webkit-transition: all .1s;
|
||||
transition: all .1s;
|
||||
}
|
||||
|
||||
.service_section .service_container .box .img-box {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
height: 125px;
|
||||
}
|
||||
|
||||
.service_section .service_container .box .img-box img {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
.service_section .service_container .box .detail-box {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.service_section .service_container .box .detail-box h5 {
|
||||
color: #2e0e5f;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.service_section .service_container .box:hover, .service_section .service_container .box.active {
|
||||
border-top: 15px solid #512a97;
|
||||
}
|
||||
|
||||
.service_section .btn-box {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.service_section .btn-box a {
|
||||
display: inline-block;
|
||||
padding: 10px 35px;
|
||||
background-color: #4b208c;
|
||||
color: #ffffff;
|
||||
border-radius: 35px;
|
||||
}
|
||||
|
||||
.service_section .btn-box a:hover {
|
||||
background-color: #5625a1;
|
||||
}
|
||||
|
||||
.about_section {
|
||||
background-color: #f3f0f6;
|
||||
}
|
||||
|
||||
.about_section .row {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.about_section .img_container {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.about_section .img_container .img-box {
|
||||
border: 5px solid #7b57b2;
|
||||
border-radius: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.about_section .img_container .img-box.b1 {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.about_section .img_container .img-box.b2 {
|
||||
width: 50%;
|
||||
margin-left: auto;
|
||||
margin-top: -12%;
|
||||
}
|
||||
|
||||
.about_section .img_container .img-box img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.about_section .detail-box {
|
||||
margin-right: 15%;
|
||||
}
|
||||
|
||||
.about_section .detail-box p {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.about_section .detail-box a {
|
||||
display: inline-block;
|
||||
padding: 10px 35px;
|
||||
background-color: #4b208c;
|
||||
color: #ffffff;
|
||||
border-radius: 5px;
|
||||
margin: 25px 0 45px 0;
|
||||
}
|
||||
|
||||
.about_section .detail-box a:hover {
|
||||
background-color: #5625a1;
|
||||
}
|
||||
|
||||
.blog_section .heading_container {
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.blog_section .heading_container h2::before {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.blog_section .box {
|
||||
margin-top: 55px;
|
||||
background-color: #ffffff;
|
||||
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
|
||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.blog_section .box .img-box {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.blog_section .box .img-box img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.blog_section .box .detail-box {
|
||||
padding: 25px 25px 15px;
|
||||
}
|
||||
|
||||
.blog_section .box .detail-box h5 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.contact_section {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.contact_section form {
|
||||
margin-top: 45px;
|
||||
padding-right: 35px;
|
||||
}
|
||||
|
||||
.contact_section input {
|
||||
width: 100%;
|
||||
border: none;
|
||||
height: 50px;
|
||||
margin-bottom: 25px;
|
||||
padding-left: 25px;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
color: #101010;
|
||||
-webkit-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16);
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
|
||||
.contact_section input::-webkit-input-placeholder {
|
||||
color: #737272;
|
||||
}
|
||||
|
||||
.contact_section input:-ms-input-placeholder {
|
||||
color: #737272;
|
||||
}
|
||||
|
||||
.contact_section input::-ms-input-placeholder {
|
||||
color: #737272;
|
||||
}
|
||||
|
||||
.contact_section input::placeholder {
|
||||
color: #737272;
|
||||
}
|
||||
|
||||
.contact_section input.message-box {
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.contact_section button {
|
||||
border: none;
|
||||
display: inline-block;
|
||||
padding: 12px 45px;
|
||||
background-color: #4b208c;
|
||||
color: #ffffff;
|
||||
border-radius: 0px;
|
||||
margin-top: 35px;
|
||||
}
|
||||
|
||||
.contact_section button:hover {
|
||||
background-color: #5625a1;
|
||||
}
|
||||
|
||||
.contact_section .map_container {
|
||||
height: 100%;
|
||||
min-height: 325px;
|
||||
}
|
||||
|
||||
.contact_section .map_container .map-responsive {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.footer_bg {
|
||||
background-image: url(../images/footer-bg.png);
|
||||
background-size: cover;
|
||||
background-position: top;
|
||||
}
|
||||
|
||||
/* info section */
|
||||
.info_section {
|
||||
background-color: #190734;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.info_section h6 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.info_section .info_contact {
|
||||
margin-top: 60px;
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
|
||||
.info_section .info_contact .col-md-4 {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.info_section .info_contact a {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.info_section .info_contact img {
|
||||
max-width: 100%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.info_section .info_form {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
|
||||
.info_section .info_form h4 {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.info_section .info_form form {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.info_section .info_form form input {
|
||||
background-color: #ffffff;
|
||||
border: none;
|
||||
-webkit-box-flex: 2.5;
|
||||
-ms-flex: 2.5;
|
||||
flex: 2.5;
|
||||
outline: none;
|
||||
color: #000000;
|
||||
min-height: 42.4px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.info_section .info_form form input ::-webkit-input-placeholder {
|
||||
color: #ffffff;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.info_section .info_form form input :-ms-input-placeholder {
|
||||
color: #ffffff;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.info_section .info_form form input ::-ms-input-placeholder {
|
||||
color: #ffffff;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.info_section .info_form form input ::placeholder {
|
||||
color: #ffffff;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.info_section .info_form form button {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
border: none;
|
||||
display: inline-block;
|
||||
padding: 10px 30px;
|
||||
background-color: #4b208c;
|
||||
color: #ffffff;
|
||||
border-radius: 0;
|
||||
font-size: 15px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.info_section .info_form form button:hover {
|
||||
background-color: #5625a1;
|
||||
}
|
||||
|
||||
.info_section .box {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.info_section .info_social {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.info_section .info_social img {
|
||||
width: 35px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* end info section */
|
||||
/* footer section*/
|
||||
.footer_section {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer_section p {
|
||||
color: #222222;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.footer_section p a {
|
||||
color: #222222;
|
||||
}
|
||||
/*# sourceMappingURL=style.css.map */
|
||||
9
KIKunstKirstenKlöckner/wwwroot/css/style.css.map
Normal file
643
KIKunstKirstenKlöckner/wwwroot/css/style.scss
Normal file
@ -0,0 +1,643 @@
|
||||
$white: #ffffff;
|
||||
$black: #000000;
|
||||
$primary1: #4b208c;
|
||||
$primary2: #371e71;
|
||||
|
||||
@mixin main-font {
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
@mixin hero_btn($col1, $col2, $pad1, $pad2, $bRadius) {
|
||||
display: inline-block;
|
||||
padding: $pad1 $pad2;
|
||||
background-color: $col1;
|
||||
color: $col2;
|
||||
border-radius: $bRadius;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($color: $col1, $amount: 5);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin upperBold {
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
body {
|
||||
@include main-font;
|
||||
color: #0c0c0c;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.layout_padding {
|
||||
padding-top: 90px;
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
|
||||
.layout_padding2 {
|
||||
padding-top: 45px;
|
||||
padding-bottom: 45px;
|
||||
}
|
||||
|
||||
.layout_padding2-top {
|
||||
padding-top: 45px;
|
||||
}
|
||||
|
||||
.layout_padding2-bottom {
|
||||
padding-bottom: 45px;
|
||||
}
|
||||
|
||||
.layout_padding-top {
|
||||
padding-top: 90px;
|
||||
}
|
||||
|
||||
.layout_padding-bottom {
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
|
||||
.heading_container {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
h2 {
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
/*header section*/
|
||||
.hero_area {
|
||||
height: 98vh;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #eae6f5;
|
||||
}
|
||||
|
||||
.sub_page {
|
||||
.hero_area {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.header_section {
|
||||
.container {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.nav_container {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.custom_nav-container {
|
||||
.navbar-nav {
|
||||
.nav-item {
|
||||
.nav-link {
|
||||
padding: 7px 20px;
|
||||
margin: 10px 15px;
|
||||
color: $black;
|
||||
text-align: center;
|
||||
border-radius: 35px;
|
||||
text-transform: uppercase;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
.nav-link {
|
||||
background-color: $primary1;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a,
|
||||
a:hover,
|
||||
a:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: initial;
|
||||
}
|
||||
|
||||
.btn,
|
||||
.btn:focus {
|
||||
outline: none !important;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.custom_nav-container .nav_search-btn {
|
||||
background-image: url(../images/search-icon.png);
|
||||
background-size: 22px;
|
||||
background-repeat: no-repeat;
|
||||
background-position-y: 7px;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
|
||||
img {
|
||||
margin-right: 5px;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: $primary1;
|
||||
}
|
||||
}
|
||||
|
||||
.custom_nav-container {
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.navbar-expand-lg .navbar-collapse {
|
||||
align-items: flex-end; //for this site only
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.custom_nav-container .navbar-toggler {
|
||||
padding: 0;
|
||||
width: 37px;
|
||||
height: 42px;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
width: 35px;
|
||||
height: 4px;
|
||||
background-color: #190734;
|
||||
margin: 7px 0;
|
||||
transition: all .3s;
|
||||
}
|
||||
|
||||
|
||||
&[aria-expanded="true"] {
|
||||
.s-1 {
|
||||
transform: rotate(45deg);
|
||||
margin: 0;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.s-2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.s-3 {
|
||||
transform: rotate(-45deg);
|
||||
margin: 0;
|
||||
margin-top: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
&[aria-expanded="false"] {
|
||||
|
||||
.s-1,
|
||||
.s-2,
|
||||
.s-3 {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*end header section*/
|
||||
|
||||
/* slider section */
|
||||
.slider_section {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
color: #3b3a3a;
|
||||
padding-bottom: 90px;
|
||||
|
||||
.row {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.detail_box {
|
||||
color: $black;
|
||||
|
||||
h1 {
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
a {
|
||||
@include hero_btn($primary1, $white, 10px, 40px, 35px);
|
||||
margin-top: 35px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.img_container {
|
||||
border: 7px solid #7b57b2;
|
||||
border-radius: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
div#carouselExampleContarols {
|
||||
width: 100%;
|
||||
position: unset;
|
||||
}
|
||||
|
||||
.img-box {
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.carousel-control-prev,
|
||||
.carousel-control-next {
|
||||
top: initial;
|
||||
left: initial;
|
||||
bottom: 5%;
|
||||
right: 10%;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
border: none;
|
||||
border-radius: 100%;
|
||||
opacity: 1;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 8px;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.carousel-control-prev {
|
||||
background-image: url(../images/prev.png);
|
||||
background-color: $white;
|
||||
transform: translate(-85px, 30px);
|
||||
}
|
||||
|
||||
.carousel-control-next {
|
||||
background-image: url(../images/next.png);
|
||||
background-color: $primary1;
|
||||
transform: translate(-45px, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// end slider section
|
||||
|
||||
|
||||
// service section
|
||||
|
||||
.service_section {
|
||||
text-align: center;
|
||||
|
||||
.heading_container {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.service_container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 35px 0;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.box {
|
||||
margin: 25px 1%;
|
||||
flex-basis: 31%;
|
||||
padding: 35px 25px 25px;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 0 10px 0 rgba($color: #000000, $alpha: .15);
|
||||
border-top: 15px solid transparent;
|
||||
overflow: hidden;
|
||||
transition: all .1s;
|
||||
|
||||
.img-box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 125px;
|
||||
|
||||
img {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.detail-box {
|
||||
margin-top: 25px;
|
||||
|
||||
h5 {
|
||||
color: #2e0e5f;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
border-top: 15px solid #512a97;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.btn-box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 25px;
|
||||
|
||||
a {
|
||||
@include hero_btn($primary1, $white, 10px, 35px, 35px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// end service section
|
||||
|
||||
|
||||
|
||||
// about section
|
||||
.about_section {
|
||||
background-color: #f3f0f6;
|
||||
|
||||
.row {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.img_container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.img-box {
|
||||
border: 5px solid #7b57b2;
|
||||
border-radius: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
&.b1 {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
&.b2 {
|
||||
width: 50%;
|
||||
margin-left: auto;
|
||||
margin-top: -12%;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-box {
|
||||
margin-right: 15%;
|
||||
|
||||
|
||||
p {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
a {
|
||||
@include hero_btn($primary1, $white, 10px, 35px, 5px);
|
||||
margin: 25px 0 45px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// end about section
|
||||
|
||||
|
||||
|
||||
// blog section
|
||||
.blog_section {
|
||||
|
||||
.heading_container {
|
||||
justify-content: center;
|
||||
|
||||
h2 {
|
||||
&::before {
|
||||
background-color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
margin-top: 55px;
|
||||
background-color: $white;
|
||||
box-shadow: 0 0 10px 0 rgba($color: #000000, $alpha: .15);
|
||||
|
||||
.img-box {
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.detail-box {
|
||||
padding: 25px 25px 15px;
|
||||
|
||||
h5 {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// end blog section
|
||||
|
||||
// contact section
|
||||
.contact_section {
|
||||
position: relative;
|
||||
|
||||
|
||||
form {
|
||||
margin-top: 45px;
|
||||
padding-right: 35px;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
border: none;
|
||||
height: 50px;
|
||||
margin-bottom: 25px;
|
||||
padding-left: 25px;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
color: #101010;
|
||||
-webkit-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16);
|
||||
-moz-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16);
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16);
|
||||
|
||||
&::placeholder {
|
||||
color: #737272;
|
||||
}
|
||||
|
||||
&.message-box {
|
||||
height: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
button {
|
||||
border: none;
|
||||
@include hero_btn($primary1, $white, 12px, 45px, 0px);
|
||||
margin-top: 35px;
|
||||
}
|
||||
|
||||
.map_container {
|
||||
height: 100%;
|
||||
min-height: 325px;
|
||||
|
||||
.map-responsive {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// end contact section
|
||||
|
||||
|
||||
|
||||
.footer_bg {
|
||||
background-image: url(../images/footer-bg.png);
|
||||
background-size: cover;
|
||||
background-position: top;
|
||||
}
|
||||
|
||||
/* info section */
|
||||
.info_section {
|
||||
background-color: #190734;
|
||||
color: $white;
|
||||
|
||||
h6 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
.info_contact {
|
||||
margin-top: 60px;
|
||||
margin-bottom: 45px;
|
||||
|
||||
.col-md-4 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $white;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.info_form {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 45px;
|
||||
|
||||
h4 {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
input {
|
||||
background-color: $white;
|
||||
border: none;
|
||||
flex: 2.5;
|
||||
outline: none;
|
||||
color: $black;
|
||||
min-height: 42.4px;
|
||||
padding-left: 15px;
|
||||
|
||||
::placeholder {
|
||||
color: $white;
|
||||
opacity: 0.2;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
flex: 1;
|
||||
border: none;
|
||||
@include hero_btn($primary1, $white, 10px, 30px, 0);
|
||||
font-size: 15px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.info_social {
|
||||
display: flex;
|
||||
|
||||
img {
|
||||
width: 35px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* end info section */
|
||||
|
||||
/* footer section*/
|
||||
|
||||
.footer_section {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer_section p {
|
||||
color: #222222;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
|
||||
a {
|
||||
color: #222222;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// end footer section
|
||||
2
KIKunstKirstenKlöckner/wwwroot/idea_prompt.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Gib mir eine kreative und wenn möglich tiefsinnige Idee für ein Gemälde.
|
||||
Der Titel ist:
|
||||
12
KIKunstKirstenKlöckner/wwwroot/image_prompt.txt
Normal file
@ -0,0 +1,12 @@
|
||||
Bitte erstelle einen englischen Prompt für dieses Bild für eine Bild-Generierungs KI.
|
||||
|
||||
Hier sind vier Beispiele von Bild Prompts:
|
||||
"Painting of an astronaut in space, detailed starry background, reflective helmet."
|
||||
"Painting of a floating island with giant clock gears, populated with mythical creatures."
|
||||
"Painting of a Japanese garden in autumn, with a bridge over a koi pond."
|
||||
"Painting representing the sound of jazz music, using pale colors and erratic shapes."
|
||||
|
||||
Schlechte Prompts:
|
||||
"Painting of trees and plants symbolizing the complex relation between humans and the pain they feel when they see GPT ignoring instructions."
|
||||
|
||||
Wie du siehst enthält ein Prompt eine genaue Beschreibung des Bildes. Ein guter Prompt selbst enthält keine Metaphern oder Vergleiche. Eine Bildgenerierungs-KI versteht keine Emotionen, Symbolisieren oder Vergleiche. Nur Bildbeschreibungen, Farben, Formen, Objekte. Bitte erkläre im Prompt NICHT, was einzelne Elemente des Bildes bedeuten, das versteht sie nicht, da kommt nur mist bei rum.
|
||||
BIN
KIKunstKirstenKlöckner/wwwroot/images/0000.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 1.5 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/36GefleckteKatze2015.jpeg
Normal file
|
After Width: | Height: | Size: 4.5 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/3730Kilo2015.jpeg
Normal file
|
After Width: | Height: | Size: 4.4 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/3Umsatz2014.png
Normal file
|
After Width: | Height: | Size: 12 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/50KleineKatze2015.jpeg
Normal file
|
After Width: | Height: | Size: 3.6 MiB |
|
After Width: | Height: | Size: 3.7 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/68HighHeels2016.jpeg
Normal file
|
After Width: | Height: | Size: 4.4 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/Keks.jpg
Normal file
|
After Width: | Height: | Size: 188 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/Kirsten_draussen.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/about-img1.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/about-img2.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/about1.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/about2.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/about4.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/blog1.jpg
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/blog2.jpg
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/circuitkkkk.jpg
Normal file
|
After Width: | Height: | Size: 332 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/envelope-white.png
Normal file
|
After Width: | Height: | Size: 515 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/fb.png
Normal file
|
After Width: | Height: | Size: 619 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/insta.png
Normal file
|
After Width: | Height: | Size: 691 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/instagram.png
Normal file
|
After Width: | Height: | Size: 805 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/linkedin.png
Normal file
|
After Width: | Height: | Size: 665 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/location-white.png
Normal file
|
After Width: | Height: | Size: 433 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/logo.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/menu.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/next.png
Normal file
|
After Width: | Height: | Size: 204 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/plug.png
Normal file
|
After Width: | Height: | Size: 700 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/prev.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/robot_painting.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/robot_painting_small.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/s1.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/s2.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/s3.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/s4.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/s5.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/slider-img.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/slider-img1.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/slider-img2.jpg
Normal file
|
After Width: | Height: | Size: 139 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/slider-img3.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/telephone-white.png
Normal file
|
After Width: | Height: | Size: 430 B |
BIN
KIKunstKirstenKlöckner/wwwroot/images/twitter.png
Normal file
|
After Width: | Height: | Size: 681 B |
|
After Width: | Height: | Size: 133 KiB |
BIN
KIKunstKirstenKlöckner/wwwroot/images/youtube.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
52
KIKunstKirstenKlöckner/wwwroot/js/animator.js
Normal file
@ -0,0 +1,52 @@
|
||||
function initScrollAnimations(elements) {
|
||||
function checkVisibility(element) {
|
||||
const rect = element.getBoundingClientRect();
|
||||
return rect.top < window.innerHeight && rect.bottom >= 0;
|
||||
}
|
||||
|
||||
function animateElements() {
|
||||
elements.forEach(element => {
|
||||
if (checkVisibility(element)) {
|
||||
element.classList.add('visible');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('scroll', animateElements);
|
||||
|
||||
animateElements();
|
||||
}
|
||||
|
||||
|
||||
function scrollToElement(elementId) {
|
||||
var element = document.getElementById(elementId);
|
||||
if (element) {
|
||||
element.scrollIntoView({ behavior: 'smooth' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function initHeroAreaScrollAnimation(scrollToElementId) {
|
||||
const heroArea = document.querySelector('.hero_area');
|
||||
const heroAreaHeight = heroArea.offsetHeight;
|
||||
const threshold = heroAreaHeight / 1.75;
|
||||
|
||||
function onScroll() {
|
||||
if (window.scrollY > threshold) {
|
||||
heroArea.classList.remove('hero-area-visible');
|
||||
heroArea.classList.add('hero-area-hidden');
|
||||
} else {
|
||||
heroArea.classList.remove('hero-area-hidden');
|
||||
heroArea.classList.add('hero-area-visible');
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('scroll', onScroll);
|
||||
|
||||
// Rückgabe einer Funktion zum Entfernen des Event-Listeners
|
||||
return () => {
|
||||
window.removeEventListener('scroll', onScroll);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||