diff --git a/.htaccess b/.htaccess index 4ad5bb2..299b989 100755 --- a/.htaccess +++ b/.htaccess @@ -1,9 +1,9 @@ -AuthType Basic -AuthName "Geschützter Bereich" -AuthUserFile /FSST/Website/.htpasswd -Require valid-user - -# .htpasswd vor Auslieferung schützen - - Require all denied - +# AuthType Basic +# AuthName "Geschützter Bereich" +# AuthUserFile /FSST/Website/.htpasswd +# Require valid-user +# +# # .htpasswd vor Auslieferung schützen +# +# Require all denied +# diff --git a/README.md b/README.md index c66fad8..8b13789 100644 --- a/README.md +++ b/README.md @@ -1,156 +1 @@ -# Readme File -> ## ![Projekt Logins](https://send.bitwarden.com/#0sol_osHmkGnJrPXARShXA/AzFCC4rVoXqEqjQUEqBt1A) - -> ## ![Datenbank Design](https://dbdiagram.io/d/Geizkragen-695e708939fa3db27b5c7599) -> ![user](assets/images/DB_Design_user.png) -> ![products](assets/images/DB_Design_products.png) - -```sql -Table categories { - categoryID int [pk] - name varchar(255) - parentCategoryID int -} - -Ref: "categories"."parentCategoryID" < "categories"."categoryID" - -Table brands { - brandID int [pk] - name varchar(255) -} - -Table products { - productID int [pk] - categoryID int - brandID int - model varchar(255) - ean varchar(20) - description text -} - -Ref: "products"."categoryID" < "categories"."categoryID" -Ref: "products"."brandID" < "brands"."brandID" - -Table shops { - shopID int [pk] - name varchar(255) - website varchar(255) -} - -Table offers { - offerID int [pk] - productID int - shopID int - price decimal(10,2) - shippingCost decimal(10,2) - inStock boolean - productURL varchar(500) - lastUpdated timestamp -} - -Ref: "offers"."productID" < "products"."productID" -Ref: "offers"."shopID" < "shops"."shopID" - -Table attributes { - attributeID int [pk] - name varchar(255) - unit varchar(50) - dataType varchar(20) -} - -Table categoryAttributes { - categoryID int - attributeID int -} - -Ref: "categoryAttributes"."categoryID" < "categories"."categoryID" -Ref: "categoryAttributes"."attributeID" < "attributes"."attributeID" - -Table productAttributes { - productID int - attributeID int - valueString varchar(255) - valueNumber decimal(10,2) - valueBool boolean -} - -Ref: "productAttributes"."productID" < "products"."productID" -Ref: "productAttributes"."attributeID" < "attributes"."attributeID" - - - -Table users { - userID int [pk] - email varchar(255) - passwordHash varchar(255) - displayName varchar(255) - isActive boolean - createdAt timestamp -} - -Table roles { - roleID int [pk] - name varchar(50) -} - -Table userRoles { - userID int - roleID int -} - -Ref: "userRoles"."userID" < "users"."userID" -Ref: "userRoles"."roleID" < "roles"."roleID" - -Table userFavorites { - userID int - productID int - createdAt timestamp -} - -Ref: "userFavorites"."userID" < "users"."userID" -Ref: "userFavorites"."productID" < "products"."productID" - -Table priceAlerts { - alertID int [pk] - userID int - productID int - targetPrice decimal(10,2) - isActive boolean - createdAt timestamp -} - -Ref: "priceAlerts"."userID" < "users"."userID" -Ref: "priceAlerts"."productID" < "products"."productID" - -Table notifications { - notificationID int [pk] - userID int - title varchar(255) - message text - isRead boolean - createdAt timestamp -} - -Ref: "notifications"."userID" < "users"."userID" - -Table reviews { - reviewID int [pk] - userID int - productID int - rating int - comment text - createdAt timestamp -} - -Ref: "reviews"."userID" < "users"."userID" -Ref: "reviews"."productID" < "products"."productID" - -Table userSessions { - sessionID varchar(128) [pk] - userID int - expiresAt timestamp -} - -Ref: "userSessions"."userID" < "users"."userID" -``` \ No newline at end of file diff --git a/assets/css/catbar.css b/assets/css/catbar.css new file mode 100644 index 0000000..da7c338 --- /dev/null +++ b/assets/css/catbar.css @@ -0,0 +1,80 @@ +.home-nav { + width: 100%; + display: flex; + align-items: center; + background-color: #2d3b50; + padding: 1px 0; /* nur minimal größer als Buttons */ +} + +/* Inner zentriert */ +.home-nav__inner { + flex: 1; + width: 100%; + display: flex; + justify-content: center; + align-items: center; +} + +/* List: 5 gleich große Bereiche */ +.home-nav__list { + width: 100%; + display: flex; + list-style: none; + margin: 0; + padding: 0; +} + +/* LI nur als Container – KEINE Höhe hier */ +.home-nav__list li { + flex: 1; + position: relative; +} + +/* =============================== */ +/* HOME CATEGORY BUTTON */ +/* =============================== */ + +.home-nav__list li button[type="categorybutton"] { + width: 100%; + padding: 8px 0; /* <-- HIER steuerst du die Höhe */ + + background-color: #2d3b50; + color: #ffffff; + font-weight: bold; + font-size: 0.9rem; + + border: none; + cursor: pointer; + + display: flex; + align-items: center; + justify-content: center; + + transition: background-color 0.2s ease, box-shadow 0.2s ease; +} + +/* Hover */ +.home-nav__list li button[type="categorybutton"]:hover { + background-color: #3b4f6b; +} + +/* Active */ +.home-nav__list li button[type="categorybutton"]:active { + background-color: #1f2a3a; +} + +/* Fokus sichtbar aber clean */ +.home-nav__list li button[type="categorybutton"]:focus-visible { + box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); +} + +/* Trennstriche */ +.home-nav__list li:not(:last-child)::after { + content: ""; + position: absolute; + right: 0; + top: 0%; + height: 100%; + width: 2px; + background-color: rgba(255, 255, 255, 0.4); +} diff --git a/assets/images/logoText.png b/assets/images/logoText.png index 71890b6..2179032 100644 Binary files a/assets/images/logoText.png and b/assets/images/logoText.png differ diff --git a/catbar.php b/catbar.php new file mode 100644 index 0000000..09252fb --- /dev/null +++ b/catbar.php @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + diff --git a/header.php b/header.php index c749378..249577f 100644 --- a/header.php +++ b/header.php @@ -11,7 +11,7 @@ Geizkragen - +